Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2001/0.2001, allocations: 15.26 MB / 27.82 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 192.4 kB / 32.7 MB, free: 0.5156 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 221.4 MB / 258.8 MB, free: 12 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 108.3 kB / 314 MB, free: 15.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.665e-05, allocations: 3.938 kB / 376.5 MB, free: 1.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.4149, allocations: 54.6 MB / 431.1 MB, free: 50.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.5638, allocations: 99.62 MB / 0.5183 GB, free: 15.67 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003396/0.5642, allocations: 68.47 kB / 0.5183 GB, free: 15.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04017/0.6044, allocations: 15.52 MB / 0.5335 GB, free: 184 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6045, allocations: 0 / 0.5335 GB, free: 184 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.6045, allocations: 8 kB / 0.5335 GB, free: 176 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.00133/0.6058, allocations: 0.7299 MB / 0.5342 GB, free: 15.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.6059, allocations: 12.03 kB / 0.5342 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003531/0.6063, allocations: 103.3 kB / 0.5343 GB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006559/0.6069, allocations: 386.9 kB / 0.5347 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.607, allocations: 34.7 kB / 0.5347 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.677e-05/0.6071, allocations: 52 kB / 0.5348 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/0.6081, allocations: 0.6 MB / 0.5354 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.6081, allocations: 0.5625 kB / 0.5354 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.6081, allocations: 16 kB / 0.5354 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.6081, allocations: 12 kB / 0.5354 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.6092, allocations: 0.7965 MB / 0.5362 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.6121, allocations: 1.905 MB / 0.538 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008376/0.6129, allocations: 0.563 MB / 0.5386 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/0.6132, allocations: 225.3 kB / 0.5388 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.6134, allocations: 87.69 kB / 0.5389 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.6134, allocations: 38.56 kB / 0.5389 GB, free: 10.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.595e-06/0.6134, allocations: 0 / 0.5389 GB, free: 10.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=50): time 0.01795/0.6314, allocations: 3.537 MB / 0.5424 GB, free: 6.824 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007124/0.6386, allocations: 3.943 MB / 0.5462 GB, free: 2.574 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.639, allocations: 271.3 kB / 0.5465 GB, free: 2.309 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.6391, allocations: 33.7 kB / 0.5465 GB, free: 2.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.6393, allocations: 244.5 kB / 0.5467 GB, free: 2.027 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.6395, allocations: 173.5 kB / 0.5469 GB, free: 1.855 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.6395, allocations: 9.312 kB / 0.5469 GB, free: 1.848 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6396, allocations: 350.8 kB / 0.5472 GB, free: 1.496 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004954/0.6401, allocations: 361.1 kB / 0.5476 GB, free: 1.141 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.6407, allocations: 437.8 kB / 0.548 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.6412, allocations: 403.1 kB / 0.5484 GB, free: 300 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.6412, allocations: 0 / 0.5484 GB, free: 300 kB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005055/0.6463, allocations: 1.348 MB / 0.5497 GB, free: 14.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.6463, allocations: 8 kB / 0.5497 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.6463, allocations: 0 / 0.5497 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004043/0.6504, allocations: 0.5566 MB / 0.5503 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.6508, allocations: 97 kB / 0.5504 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007081/0.6579, allocations: 4.714 MB / 0.555 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007018/0.6587, allocations: 59.88 kB / 0.555 GB, free: 9.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.6587, allocations: 23.98 kB / 0.555 GB, free: 9.172 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.6589, allocations: 134.6 kB / 0.5552 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.122e-05/0.659, allocations: 31.62 kB / 0.5552 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00614/0.6652, allocations: 1.361 MB / 0.5565 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005776/0.671, allocations: 1.26 MB / 0.5578 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.671, allocations: 4 kB / 0.5578 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.671, allocations: 5.359 kB / 0.5578 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007893/0.6789, allocations: 2.535 MB / 0.5602 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.679, allocations: 8.031 kB / 0.5602 GB, free: 3.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.6793, allocations: 79.83 kB / 0.5603 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005451/0.6847, allocations: 0.6384 MB / 0.5609 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.59e-05/0.6848, allocations: 19.98 kB / 0.561 GB, free: 2.934 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007955/0.6928, allocations: 4.819 MB / 0.5657 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004671/0.6975, allocations: 2.08 MB / 0.5677 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00679/0.7043, allocations: 2.038 MB / 0.5697 GB, free: 9.398 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.7047, allocations: 123.6 kB / 0.5698 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.427e-05/0.7047, allocations: 19.95 kB / 0.5698 GB, free: 9.242 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004652/0.7052, allocations: 31.95 kB / 0.5699 GB, free: 9.211 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.7054, allocations: 59.92 kB / 0.5699 GB, free: 9.152 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.7055, allocations: 23.98 kB / 0.5699 GB, free: 9.129 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00028/0.7057, allocations: 215.1 kB / 0.5701 GB, free: 8.918 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7057, allocations: 3.938 kB / 0.5701 GB, free: 8.914 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001224/0.707, allocations: 311.8 kB / 0.5704 GB, free: 8.609 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 ($STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007738/0.7078, allocations: 324.1 kB / 0.5708 GB, free: 8.285 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.7098, allocations: 1.086 MB / 0.5718 GB, free: 7.176 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.7098, allocations: 0 / 0.5718 GB, free: 7.176 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.7111, allocations: 0.724 MB / 0.5725 GB, free: 6.426 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/0.7117, allocations: 103.2 kB / 0.5726 GB, free: 6.328 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.7135, allocations: 1.001 MB / 0.5736 GB, free: 5.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.7141, allocations: 0.8715 MB / 0.5745 GB, free: 4.352 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003707/0.7145, allocations: 71.06 kB / 0.5745 GB, free: 4.285 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.7146, allocations: 43.41 kB / 0.5746 GB, free: 4.242 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/0.7146, allocations: 0 / 0.5746 GB, free: 4.242 MB / 442.7 MB Notification: Performance of Templates: time 0.3012/1.016, allocations: 13.32 MB / 0.5876 GB, free: 121.2 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.HeatingOfWater.makefile (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & ./Chemical_Chemical.Examples.HeatingOfWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)