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.001095/0.0011, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001088/0.001088, allocations: 194.2 kB / 16.14 MB, free: 6.668 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2073/0.2073, allocations: 15.31 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 67.89 kB / 369.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 53.61 MB / 423.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.0048/0.1093, allocations: 3.758 MB / 427 MB, free: 11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005204/0.1146, allocations: 4.745 MB / 431.8 MB, free: 6.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003062/0.1149, allocations: 11.94 kB / 431.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004184/0.1153, allocations: 99.3 kB / 431.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009281/0.1163, allocations: 389.7 kB / 432.2 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.1174, allocations: 469.6 kB / 432.7 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006082/0.1181, allocations: 0.5493 MB / 433.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003689/0.1184, allocations: 318.2 kB / 433.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002953/0.1187, allocations: 275.1 kB / 433.8 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003486/0.1191, allocations: 298.8 kB / 434.1 MB, free: 3.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.831e-05/0.1192, allocations: 36 kB / 434.2 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.1202, allocations: 455.2 kB / 434.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1204, allocations: 107.6 kB / 434.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.1206, allocations: 266.7 kB / 435 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.1218, allocations: 0.9731 MB / 435.9 MB, free: 2.027 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1218, allocations: 0 / 435.9 MB, free: 2.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1218, allocations: 4 kB / 435.9 MB, free: 2.023 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1218, allocations: 0 / 435.9 MB, free: 2.023 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.00139/0.1232, allocations: 0.8615 MB / 436.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1233, allocations: 8.031 kB / 436.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003611/0.1236, allocations: 96 kB / 436.9 MB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004257/0.1241, allocations: 354.4 kB / 437.3 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.1241, allocations: 37.38 kB / 437.3 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-05/0.1242, allocations: 52.36 kB / 437.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.125, allocations: 454.7 kB / 437.8 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.125, allocations: 0 / 437.8 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/0.125, allocations: 20 kB / 437.8 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1251, allocations: 15.94 kB / 437.8 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2187/0.3438, allocations: 0.5039 MB / 438.3 MB, free: 54.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.3459, allocations: 1.536 MB / 439.9 MB, free: 53.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/0.3466, allocations: 359.4 kB / 440.2 MB, free: 53.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.3468, allocations: 123 kB / 440.3 MB, free: 53.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001735/0.3485, allocations: 1.569 MB / 441.9 MB, free: 52.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.3486, allocations: 40.94 kB / 441.9 MB, free: 52.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.3486, allocations: 2.688 kB / 441.9 MB, free: 52.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01427/0.3628, allocations: 2.334 MB / 444.3 MB, free: 51.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.3629, allocations: 60.91 kB / 444.3 MB, free: 51.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.3632, allocations: 297.3 kB / 444.6 MB, free: 51.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.3632, allocations: 31.08 kB / 444.7 MB, free: 51.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.3633, allocations: 269.5 kB / 444.9 MB, free: 51.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.3634, allocations: 110.2 kB / 445 MB, free: 51.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.3635, allocations: 88.98 kB / 445.1 MB, free: 51.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.804e-05/0.3636, allocations: 345.2 kB / 445.5 MB, free: 51.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3638, allocations: 135.8 kB / 445.6 MB, free: 51.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.3641, allocations: 263.7 kB / 445.8 MB, free: 50.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.3645, allocations: 431.1 kB / 446.3 MB, free: 50.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3645, allocations: 0 / 446.3 MB, free: 50.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003898/0.3684, allocations: 0.814 MB / 447.1 MB, free: 50.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3685, allocations: 11.84 kB / 447.1 MB, free: 50.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3685, allocations: 6.969 kB / 447.1 MB, free: 50.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003535/0.372, allocations: 415.9 kB / 447.5 MB, free: 50.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.3723, allocations: 78.33 kB / 447.6 MB, free: 50.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005542/0.3779, allocations: 3.699 MB / 451.3 MB, free: 47.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.3783, allocations: 31.33 kB / 451.3 MB, free: 47.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.3783, allocations: 27.02 kB / 451.3 MB, free: 47.26 MB / 366.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.0002054/0.3786, allocations: 174.4 kB / 451.5 MB, free: 47.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.323e-05/0.3786, allocations: 35.88 kB / 451.5 MB, free: 47.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004955/0.3836, allocations: 0.8312 MB / 452.4 MB, free: 46.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.3836, allocations: 6.938 kB / 452.4 MB, free: 46.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.3836, allocations: 0 / 452.4 MB, free: 46.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3837, allocations: 2.906 kB / 452.4 MB, free: 46.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006854/0.3843, allocations: 0.6369 MB / 453 MB, free: 46.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3844, allocations: 3.969 kB / 453 MB, free: 46.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.3845, allocations: 46.77 kB / 453.1 MB, free: 46.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00474/0.3893, allocations: 489.1 kB / 453.5 MB, free: 46.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.3893, allocations: 13.78 kB / 453.6 MB, free: 46.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006015/0.3954, allocations: 4.92 MB / 458.5 MB, free: 41.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3954, allocations: 0 / 458.5 MB, free: 41.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005116/0.4005, allocations: 1.124 MB / 459.6 MB, free: 41.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.4007, allocations: 116.6 kB / 459.7 MB, free: 41.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.4007, allocations: 11.22 kB / 459.7 MB, free: 41.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.4011, allocations: 17.72 kB / 459.7 MB, free: 41.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.4012, allocations: 43.75 kB / 459.8 MB, free: 41.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.4012, allocations: 20.59 kB / 459.8 MB, free: 41.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.4014, allocations: 203.3 kB / 460 MB, free: 41.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4014, allocations: 0 / 460 MB, free: 41.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008145/0.4023, allocations: 239.7 kB / 460.2 MB, free: 41.09 MB / 366.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.0004366/0.4027, allocations: 289.9 kB / 460.5 MB, free: 40.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.4039, allocations: 0.6826 MB / 461.2 MB, free: 40.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4039, allocations: 0 / 461.2 MB, free: 40.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007849/0.4047, allocations: 0.6193 MB / 461.8 MB, free: 40.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.4053, allocations: 102.3 kB / 461.9 MB, free: 40.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.4069, allocations: 1.216 MB / 463.1 MB, free: 39.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.4072, allocations: 0.8225 MB / 464 MB, free: 38.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.4075, allocations: 80.62 kB / 464 MB, free: 38.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.4076, allocations: 67.53 kB / 464.1 MB, free: 38.59 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4076, allocations: 0 / 464.1 MB, free: 38.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01853/0.4261, allocations: 10.77 MB / 474.9 MB, free: 37.77 MB / 366.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)