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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 111.2 kB / 16.39 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001263, allocations: 190.2 kB / 17.32 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07327/0.07327, allocations: 15.3 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.91 kB / 425.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09251, allocations: 53.62 MB / 479.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004095/0.09665, allocations: 3.425 MB / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004628/0.1013, allocations: 4.728 MB / 487.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.1016, allocations: 11.94 kB / 487.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.1019, allocations: 107.1 kB / 487.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008248/0.1028, allocations: 448.8 kB / 488.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009111/0.1037, allocations: 0.5322 MB / 488.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.1043, allocations: 0.5805 MB / 489.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003799/0.1047, allocations: 376.3 kB / 489.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.1049, allocations: 275.2 kB / 489.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.1052, allocations: 310.8 kB / 490.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-05/0.1053, allocations: 56 kB / 490.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008687/0.1062, allocations: 475.3 kB / 490.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1063, allocations: 123.6 kB / 490.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.1065, allocations: 278.7 kB / 491.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.1076, allocations: 1.035 MB / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1076, allocations: 0 / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1077, allocations: 0 / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.1077, allocations: 0 / 492.1 MB, free: 9.168 MB / 366.1 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.001214/0.1089, allocations: 0.8577 MB / 493 MB, free: 8.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1089, allocations: 8.031 kB / 493 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.1093, allocations: 88.09 kB / 493.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.1098, allocations: 374.2 kB / 493.4 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.1098, allocations: 33.38 kB / 493.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.009e-05/0.1099, allocations: 48.31 kB / 493.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.1106, allocations: 462.7 kB / 494 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1106, allocations: 3.938 kB / 494 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.403e-05/0.1107, allocations: 16 kB / 494 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1107, allocations: 16 kB / 494 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.1114, allocations: 0.5076 MB / 494.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.1135, allocations: 1.526 MB / 496 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.1142, allocations: 366.6 kB / 496.4 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.1144, allocations: 120.8 kB / 496.5 MB, free: 4.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001971/0.1164, allocations: 1.569 MB / 498.1 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1164, allocations: 38.56 kB / 498.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.1164, allocations: 0 / 498.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01332/0.1298, allocations: 2.343 MB / 0.4887 GB, free: 336 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.1298, allocations: 55.41 kB / 0.4888 GB, free: 268 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.1302, allocations: 300.4 kB / 0.4891 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.1302, allocations: 33.7 kB / 0.4891 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.1303, allocations: 271.4 kB / 0.4894 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.1304, allocations: 102.5 kB / 0.4895 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.1305, allocations: 86.03 kB / 0.4895 GB, free: 15.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.1307, allocations: 342.7 kB / 0.4899 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1309, allocations: 136.8 kB / 0.49 GB, free: 14.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.1312, allocations: 264 kB / 0.4902 GB, free: 14.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005345/0.1317, allocations: 428.8 kB / 0.4907 GB, free: 14.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1317, allocations: 4 kB / 0.4907 GB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003603/0.1353, allocations: 0.8078 MB / 0.4914 GB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1354, allocations: 15.88 kB / 0.4915 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1354, allocations: 7.984 kB / 0.4915 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003189/0.1386, allocations: 409.8 kB / 0.4919 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.1388, allocations: 79.84 kB / 0.4919 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.1446, allocations: 3.969 MB / 0.4958 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/0.1449, allocations: 27.94 kB / 0.4958 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/0.145, allocations: 24 kB / 0.4959 GB, free: 8.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.1452, allocations: 169.8 kB / 0.496 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.1453, allocations: 39.55 kB / 0.4961 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/0.1497, allocations: 0.8352 MB / 0.4969 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1498, allocations: 0 / 0.4969 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1498, allocations: 4 kB / 0.4969 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1498, allocations: 4 kB / 0.4969 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007241/0.1505, allocations: 0.6231 MB / 0.4975 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1505, allocations: 0 / 0.4975 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1507, allocations: 56.17 kB / 0.4975 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004202/0.1549, allocations: 490 kB / 0.498 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.155, allocations: 15.94 kB / 0.498 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006419/0.1614, allocations: 5.295 MB / 0.5032 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.1614, allocations: 7.938 kB / 0.5032 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1944/0.3559, allocations: 1.119 MB / 0.5043 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.356, allocations: 109.5 kB / 0.5044 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.3561, allocations: 14.67 kB / 0.5044 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.3564, allocations: 10.22 kB / 0.5044 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.3565, allocations: 43.48 kB / 0.5045 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.3565, allocations: 16.97 kB / 0.5045 GB, free: 34.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.3568, allocations: 203 kB / 0.5047 GB, free: 34.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3568, allocations: 0.8125 kB / 0.5047 GB, free: 34.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000845/0.3576, allocations: 236.5 kB / 0.5049 GB, free: 34.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004558/0.3581, allocations: 296.1 kB / 0.5052 GB, free: 33.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.3593, allocations: 0.688 MB / 0.5059 GB, free: 33.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3593, allocations: 3.375 kB / 0.5059 GB, free: 33.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007793/0.3601, allocations: 0.6156 MB / 0.5065 GB, free: 33.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.3607, allocations: 108.2 kB / 0.5066 GB, free: 33.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.3622, allocations: 1.042 MB / 0.5076 GB, free: 32.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.3624, allocations: 0.8338 MB / 0.5084 GB, free: 32.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3626, allocations: 74.5 kB / 0.5085 GB, free: 32.21 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3626, allocations: 0 / 0.5085 GB, free: 32.21 MB / 382.1 MB Notification: Performance of Templates: time 0.014/0.3766, allocations: 12.05 MB / 0.5202 GB, free: 29.04 MB / 382.1 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)