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.00108/0.00108, allocations: 107 kB / 16.36 MB, free: 6.285 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.001107/0.001107, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08495/0.08495, allocations: 15.3 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 62.16 kB / 371.7 MB, free: 50.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08728/0.08852, allocations: 53.61 MB / 425.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003463/0.09202, allocations: 3.436 MB / 428.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.09567, allocations: 4.732 MB / 433.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.09588, allocations: 11.94 kB / 433.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.09621, allocations: 111.1 kB / 433.6 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000749/0.097, allocations: 444.9 kB / 434.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008078/0.09782, allocations: 0.5244 MB / 434.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.09826, allocations: 0.5766 MB / 435.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.0986, allocations: 372.3 kB / 435.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.09881, allocations: 287.1 kB / 435.8 MB, free: 2.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.0991, allocations: 310.8 kB / 436.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.09917, allocations: 52 kB / 436.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008305/0.1, allocations: 475.3 kB / 436.6 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.922e-05/0.1001, allocations: 119.6 kB / 436.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.1003, allocations: 278.7 kB / 437 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009844/0.1013, allocations: 1.039 MB / 438.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1013, allocations: 0 / 438.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1013, allocations: 0 / 438.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1013, allocations: 0 / 438.1 MB, free: 0.5508 MB / 302.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.001194/0.1025, allocations: 0.8693 MB / 438.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.1025, allocations: 8.031 kB / 438.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.1029, allocations: 88.25 kB / 439 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.1034, allocations: 366.4 kB / 439.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.1034, allocations: 33.38 kB / 439.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-05/0.1035, allocations: 48.38 kB / 439.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006944/0.1042, allocations: 458.7 kB / 439.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1043, allocations: 3.938 kB / 439.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.1043, allocations: 20 kB / 439.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1043, allocations: 12 kB / 439.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008164/0.1051, allocations: 0.5036 MB / 440.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.1074, allocations: 1.537 MB / 442 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007178/0.1081, allocations: 358.6 kB / 442.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.1083, allocations: 128.8 kB / 442.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002215/0.1105, allocations: 1.568 MB / 444 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1106, allocations: 42.5 kB / 444.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 3.246e-06/0.1106, allocations: 7.984 kB / 444.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.01498/0.1256, allocations: 2.333 MB / 446.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.1257, allocations: 55.41 kB / 446.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.126, allocations: 296.4 kB / 446.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.1261, allocations: 33.7 kB / 446.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.1263, allocations: 271.4 kB / 447.1 MB, free: 7.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.1264, allocations: 110.5 kB / 447.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.1265, allocations: 78.12 kB / 447.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1267, allocations: 350.7 kB / 447.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.1269, allocations: 132.8 kB / 447.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.1272, allocations: 260 kB / 448 MB, free: 6.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006461/0.1279, allocations: 429.6 kB / 448.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1279, allocations: 0 / 448.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004267/0.1322, allocations: 0.8195 MB / 449.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1322, allocations: 14.28 kB / 449.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1322, allocations: 4 kB / 449.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003663/0.1359, allocations: 409.7 kB / 449.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.1362, allocations: 79.91 kB / 449.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.1427, allocations: 3.973 MB / 453.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004412/0.1432, allocations: 12 kB / 453.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-05/0.1433, allocations: 28.03 kB / 453.7 MB, free: 15.94 MB / 334.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.000228/0.1435, allocations: 169.7 kB / 453.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-05/0.1436, allocations: 35.56 kB / 453.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005094/0.1487, allocations: 0.8272 MB / 454.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.1487, allocations: 7.984 kB / 454.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1487, allocations: 0 / 454.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1487, allocations: 7.938 kB / 454.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007739/0.1495, allocations: 0.6233 MB / 455.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1495, allocations: 4 kB / 455.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.1497, allocations: 48.17 kB / 455.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004686/0.1544, allocations: 490 kB / 455.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.1545, allocations: 19.94 kB / 455.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007283/0.1618, allocations: 5.315 MB / 461.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1618, allocations: 3.938 kB / 461.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005269/0.1671, allocations: 1.12 MB / 462.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.1673, allocations: 112.6 kB / 462.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.704e-05/0.1674, allocations: 12 kB / 462.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.1677, allocations: 12.06 kB / 462.5 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.1678, allocations: 47.81 kB / 462.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.1678, allocations: 20 kB / 462.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.1681, allocations: 199.1 kB / 462.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1681, allocations: 0 / 462.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008156/0.1689, allocations: 243.9 kB / 463 MB, free: 6.039 MB / 334.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.0004742/0.1694, allocations: 286.8 kB / 463.3 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.1707, allocations: 0.6934 MB / 464 MB, free: 5.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1708, allocations: 0 / 464 MB, free: 5.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009379/0.1717, allocations: 0.6174 MB / 464.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006295/0.1723, allocations: 108.7 kB / 464.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.174, allocations: 1.005 MB / 465.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.1744, allocations: 0.8236 MB / 466.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000235/0.1747, allocations: 79.17 kB / 466.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.1748, allocations: 55.34 kB / 466.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of SimCode: time 9.157e-06/0.1748, allocations: 4 kB / 466.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of Templates: time 0.0177/0.1925, allocations: 11.25 MB / 477.9 MB, free: 7.039 MB / 350.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)