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.001171/0.001171, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 196.2 kB / 16.79 MB, free: 6.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2257/0.2257, allocations: 15.33 MB / 305.9 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 55.91 kB / 370.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1018, allocations: 53.6 MB / 423.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.005257/0.1071, allocations: 3.763 MB / 427.7 MB, free: 11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005877/0.113, allocations: 4.737 MB / 432.4 MB, free: 6.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004866/0.1136, allocations: 11.88 kB / 432.4 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004968/0.1141, allocations: 91.36 kB / 432.5 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1154, allocations: 401.7 kB / 432.9 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1167, allocations: 469.6 kB / 433.4 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007856/0.1175, allocations: 0.5532 MB / 433.9 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004728/0.118, allocations: 318.2 kB / 434.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004241/0.1185, allocations: 267.1 kB / 434.5 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004657/0.1189, allocations: 302.8 kB / 434.8 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.953e-05/0.119, allocations: 35.94 kB / 434.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1202, allocations: 459.2 kB / 435.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.1203, allocations: 107.5 kB / 435.4 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.1206, allocations: 262.8 kB / 435.6 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008032/0.1214, allocations: 0.767 MB / 436.4 MB, free: 2.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1214, allocations: 0 / 436.4 MB, free: 2.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1214, allocations: 0 / 436.4 MB, free: 2.238 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1214, allocations: 4 kB / 436.4 MB, free: 2.234 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.001363/0.1228, allocations: 0.8577 MB / 437.3 MB, free: 1.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1228, allocations: 8.031 kB / 437.3 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003557/0.1232, allocations: 95.98 kB / 437.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.1237, allocations: 358.4 kB / 437.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.1237, allocations: 29.38 kB / 437.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-05/0.1238, allocations: 48.38 kB / 437.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007296/0.1245, allocations: 458.6 kB / 438.2 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1245, allocations: 4 kB / 438.2 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/0.1246, allocations: 16 kB / 438.2 MB, free: 296 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1246, allocations: 12 kB / 438.3 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2345/0.3591, allocations: 0.5128 MB / 438.8 MB, free: 53.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003939/0.3631, allocations: 1.531 MB / 440.3 MB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.3643, allocations: 366.6 kB / 440.7 MB, free: 53.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.3646, allocations: 126.2 kB / 440.8 MB, free: 53.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00289/0.3675, allocations: 1.57 MB / 442.4 MB, free: 52.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.3675, allocations: 35 kB / 442.4 MB, free: 52.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.735e-06/0.3676, allocations: 0.8438 kB / 442.4 MB, free: 52.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.02595/0.3935, allocations: 2.344 MB / 444.7 MB, free: 51.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3936, allocations: 55.16 kB / 444.8 MB, free: 51.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004866/0.3941, allocations: 292.5 kB / 445.1 MB, free: 51.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.584e-05/0.3942, allocations: 32.86 kB / 445.1 MB, free: 51.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.3944, allocations: 278.7 kB / 445.4 MB, free: 51.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.3945, allocations: 108 kB / 445.5 MB, free: 51.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.3947, allocations: 83.83 kB / 445.6 MB, free: 51.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.3949, allocations: 345.1 kB / 445.9 MB, free: 50.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.3953, allocations: 133.4 kB / 446 MB, free: 50.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004758/0.3958, allocations: 269.2 kB / 446.3 MB, free: 50.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009082/0.3967, allocations: 424.7 kB / 446.7 MB, free: 50.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.3967, allocations: 3.156 kB / 446.7 MB, free: 50.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006613/0.4034, allocations: 0.8209 MB / 447.5 MB, free: 50.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.4034, allocations: 8.906 kB / 447.5 MB, free: 50.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4034, allocations: 3.219 kB / 447.5 MB, free: 50.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003747/0.4072, allocations: 416.2 kB / 447.9 MB, free: 50.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.4075, allocations: 76.09 kB / 448 MB, free: 50.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005711/0.4132, allocations: 3.711 MB / 451.7 MB, free: 47.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.4137, allocations: 26.47 kB / 451.8 MB, free: 47.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.4138, allocations: 28.2 kB / 451.8 MB, free: 47.29 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.000244/0.414, allocations: 178.9 kB / 452 MB, free: 47.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.4141, allocations: 33.69 kB / 452 MB, free: 47.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005095/0.4192, allocations: 0.8261 MB / 452.8 MB, free: 46.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.4192, allocations: 2.875 kB / 452.8 MB, free: 46.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4192, allocations: 6.062 kB / 452.8 MB, free: 46.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.4193, allocations: 3.328 kB / 452.8 MB, free: 46.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007399/0.42, allocations: 0.6356 MB / 453.5 MB, free: 46.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.42, allocations: 0 / 453.5 MB, free: 46.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.4202, allocations: 53.77 kB / 453.5 MB, free: 46.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004804/0.425, allocations: 492.4 kB / 454 MB, free: 46.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.4251, allocations: 17.12 kB / 454 MB, free: 46.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00625/0.4313, allocations: 4.907 MB / 458.9 MB, free: 41.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4314, allocations: 3.125 kB / 458.9 MB, free: 41.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005229/0.4366, allocations: 1.132 MB / 460.1 MB, free: 41.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.4368, allocations: 113.4 kB / 460.2 MB, free: 41.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.758e-05/0.4369, allocations: 15.06 kB / 460.2 MB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.4372, allocations: 17.06 kB / 460.2 MB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4373, allocations: 38.61 kB / 460.2 MB, free: 41.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.4374, allocations: 23.91 kB / 460.3 MB, free: 41.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.4376, allocations: 205.5 kB / 460.5 MB, free: 41.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4376, allocations: 0 / 460.5 MB, free: 41.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009063/0.4385, allocations: 237.3 kB / 460.7 MB, free: 41.12 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.0005535/0.4391, allocations: 288 kB / 461 MB, free: 41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.4403, allocations: 0.6759 MB / 461.7 MB, free: 40.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.4404, allocations: 0 / 461.7 MB, free: 40.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007763/0.4411, allocations: 0.6149 MB / 462.3 MB, free: 40.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006918/0.4419, allocations: 106.6 kB / 462.4 MB, free: 40.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.4436, allocations: 1.248 MB / 463.6 MB, free: 39.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.4439, allocations: 0.8256 MB / 464.4 MB, free: 38.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.444, allocations: 74.31 kB / 464.5 MB, free: 38.61 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4441, allocations: 0 / 464.5 MB, free: 38.61 MB / 366.1 MB Notification: Performance of Templates: time 0.01761/0.4617, allocations: 12.05 MB / 476.6 MB, free: 37.39 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)