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.001074/0.001074, allocations: 109.1 kB / 16.41 MB, free: 6.469 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.001101/0.001101, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.268/1.268, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07552/0.07552, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 60.11 kB / 425.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09317, allocations: 53.61 MB / 479.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004399/0.0976, allocations: 3.436 MB / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005319/0.1029, allocations: 4.728 MB / 487.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002801/0.1032, allocations: 11.88 kB / 487.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000385/0.1036, allocations: 111.1 kB / 487.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1047, allocations: 444.8 kB / 488.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.1058, allocations: 0.5322 MB / 488.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007534/0.1065, allocations: 0.5805 MB / 489.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004804/0.107, allocations: 372.3 kB / 489.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.1074, allocations: 279.2 kB / 489.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004895/0.1079, allocations: 306.8 kB / 490.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.108, allocations: 60 kB / 490.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.1091, allocations: 475.3 kB / 490.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1092, allocations: 123.5 kB / 490.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002728/0.1095, allocations: 282.7 kB / 491.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.1109, allocations: 1.032 MB / 492.2 MB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1109, allocations: 0 / 492.2 MB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1109, allocations: 3.938 kB / 492.2 MB, free: 9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.111, allocations: 0 / 492.2 MB, free: 9 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.001572/0.1125, allocations: 0.8537 MB / 493 MB, free: 8.098 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1126, allocations: 15.97 kB / 493 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.113, allocations: 88.09 kB / 493.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005476/0.1135, allocations: 370.2 kB / 493.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.1136, allocations: 37.38 kB / 493.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.08e-05/0.1137, allocations: 48.38 kB / 493.6 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007714/0.1145, allocations: 450.7 kB / 494 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1145, allocations: 0 / 494 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.1145, allocations: 20 kB / 494 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1146, allocations: 16 kB / 494.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000798/0.1154, allocations: 0.5075 MB / 494.6 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.1177, allocations: 1.537 MB / 496.1 MB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000758/0.1185, allocations: 366.6 kB / 496.5 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.1187, allocations: 128.8 kB / 496.6 MB, free: 4.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002113/0.1208, allocations: 1.561 MB / 498.1 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.1208, allocations: 34.56 kB / 498.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 3.106e-06/0.1208, allocations: 4 kB / 498.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01409/0.1349, allocations: 2.339 MB / 0.4888 GB, free: 164 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.135, allocations: 55.41 kB / 0.4888 GB, free: 96 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.1353, allocations: 292.4 kB / 0.4891 GB, free: 15.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.1353, allocations: 33.7 kB / 0.4892 GB, free: 15.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.1355, allocations: 275.4 kB / 0.4894 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.479e-05/0.1356, allocations: 106.5 kB / 0.4895 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.1357, allocations: 86.03 kB / 0.4896 GB, free: 15.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1359, allocations: 350.7 kB / 0.4899 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.1361, allocations: 128.8 kB / 0.4901 GB, free: 14.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/0.1364, allocations: 268 kB / 0.4903 GB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005698/0.137, allocations: 424.8 kB / 0.4907 GB, free: 14.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.137, allocations: 4 kB / 0.4907 GB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003939/0.141, allocations: 0.8156 MB / 0.4915 GB, free: 13.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.141, allocations: 7.938 kB / 0.4915 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.141, allocations: 4 kB / 0.4915 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/0.1445, allocations: 417.8 kB / 0.4919 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.1448, allocations: 75.84 kB / 0.492 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006231/0.151, allocations: 3.972 MB / 0.4959 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.1514, allocations: 27.91 kB / 0.4959 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.1514, allocations: 24.03 kB / 0.4959 GB, free: 8.387 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.0002196/0.1516, allocations: 173.7 kB / 0.4961 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.033e-05/0.1517, allocations: 39.5 kB / 0.4961 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004855/0.1566, allocations: 0.8195 MB / 0.4969 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.1566, allocations: 7.922 kB / 0.4969 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1566, allocations: 0 / 0.4969 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.1567, allocations: 108.6 kB / 0.497 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.1568, allocations: 8.094 kB / 0.4971 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.157, allocations: 11.92 kB / 0.4971 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.1572, allocations: 39.94 kB / 0.4971 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002211/0.1594, allocations: 0.5933 MB / 0.4977 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008143/0.1602, allocations: 0.6249 MB / 0.4983 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000205/0.1604, allocations: 124.5 kB / 0.4984 GB, free: 5.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.1606, allocations: 199.1 kB / 0.4986 GB, free: 5.57 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.1606, allocations: 0 / 0.4986 GB, free: 5.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.1625, allocations: 0.8678 MB / 0.4994 GB, free: 4.672 MB / 382.1 MB Notification: Performance of SimCode: time 0.001693/0.1642, allocations: 1.465 MB / 0.5009 GB, free: 3.16 MB / 382.1 MB Notification: Performance of Templates: time 0.1831/0.3473, allocations: 10.24 MB / 0.5109 GB, free: 34.52 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)