Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.HeatingOfWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 220.1 kB / 22.25 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.153/0.153, allocations: 23.88 MB / 336.3 MB, free: 11.05 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.89 kB / 471.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.4071, allocations: 59.86 MB / 0.5185 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.005769/0.4129, allocations: 3.219 MB / 0.5217 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006297/0.4192, allocations: 4.241 MB / 0.5258 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005923/0.4198, allocations: 8.469 kB / 0.5258 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005178/0.4203, allocations: 112.2 kB / 0.5259 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.4217, allocations: 448.6 kB / 0.5263 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.4234, allocations: 0.5323 MB / 0.5269 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009414/0.4244, allocations: 0.585 MB / 0.5274 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005981/0.425, allocations: 307.2 kB / 0.5277 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004048/0.4254, allocations: 288.8 kB / 0.528 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000538/0.4259, allocations: 308.6 kB / 0.5283 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.47e-05/0.426, allocations: 52.12 kB / 0.5283 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.4274, allocations: 462.5 kB / 0.5288 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.4276, allocations: 124.8 kB / 0.5289 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.4279, allocations: 231.9 kB / 0.5291 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.4298, allocations: 1.074 MB / 0.5302 GB, free: 2.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.4298, allocations: 8.562 kB / 0.5302 GB, free: 2.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4298, allocations: 0.6562 kB / 0.5302 GB, free: 2.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.4298, allocations: 0.5938 kB / 0.5302 GB, free: 2.57 MB / 382.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.001739/0.4316, allocations: 0.8027 MB / 0.531 GB, free: 2.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4316, allocations: 9.75 kB / 0.531 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.4317, allocations: 84.28 kB / 0.5311 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.4321, allocations: 97.98 kB / 0.5312 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.4328, allocations: 302.9 kB / 0.5314 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.392e-05/0.4328, allocations: 43.69 kB / 0.5315 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.4329, allocations: 47.67 kB / 0.5315 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007922/0.4337, allocations: 458.6 kB / 0.532 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.4337, allocations: 0 / 0.532 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/0.4337, allocations: 20.41 kB / 0.532 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.4338, allocations: 10.5 kB / 0.532 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008672/0.4346, allocations: 0.5004 MB / 0.5325 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.437, allocations: 1.222 MB / 0.5337 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000793/0.4378, allocations: 329.1 kB / 0.534 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.438, allocations: 114.6 kB / 0.5341 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002017/0.44, allocations: 0.8724 MB / 0.535 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.4401, allocations: 36.84 kB / 0.535 GB, free: 15.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.542e-06/0.4401, allocations: 0 / 0.535 GB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01746/0.4575, allocations: 2.117 MB / 0.5371 GB, free: 15.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/0.4576, allocations: 56.5 kB / 0.5371 GB, free: 15.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004988/0.4581, allocations: 309.2 kB / 0.5374 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.4581, allocations: 30.95 kB / 0.5374 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.4584, allocations: 274.8 kB / 0.5377 GB, free: 14.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.4585, allocations: 119.3 kB / 0.5378 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.4587, allocations: 83.39 kB / 0.5379 GB, free: 14.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.4589, allocations: 345.7 kB / 0.5382 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.4592, allocations: 133.1 kB / 0.5383 GB, free: 14.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.4596, allocations: 263.7 kB / 0.5386 GB, free: 13.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007775/0.4604, allocations: 429.4 kB / 0.539 GB, free: 13.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4604, allocations: 0 / 0.539 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004855/0.4652, allocations: 0.817 MB / 0.5398 GB, free: 13.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.4653, allocations: 7.672 kB / 0.5398 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.4653, allocations: 7.969 kB / 0.5398 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004322/0.4696, allocations: 407.9 kB / 0.5402 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.47, allocations: 82.58 kB / 0.5403 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007801/0.4778, allocations: 3.74 MB / 0.5439 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005989/0.4784, allocations: 20.58 kB / 0.544 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.786e-05/0.4785, allocations: 23.27 kB / 0.544 GB, free: 10.12 MB / 398.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.0003765/0.4788, allocations: 165.7 kB / 0.5441 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.479, allocations: 35.06 kB / 0.5442 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.4849, allocations: 0.8265 MB / 0.545 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.4849, allocations: 3.625 kB / 0.545 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4849, allocations: 2.25 kB / 0.545 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4849, allocations: 2.016 kB / 0.545 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.4862, allocations: 0.5554 MB / 0.5455 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.4862, allocations: 2.609 kB / 0.5455 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.4864, allocations: 49.38 kB / 0.5456 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005406/0.4918, allocations: 492.8 kB / 0.546 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.915e-05/0.4919, allocations: 19.53 kB / 0.5461 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/0.5008, allocations: 4.931 MB / 0.5509 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5008, allocations: 6.156 kB / 0.5509 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006301/0.5071, allocations: 1.118 MB / 0.552 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.5073, allocations: 51.97 kB / 0.552 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.798e-05/0.5074, allocations: 7.656 kB / 0.552 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/0.5078, allocations: 17 kB / 0.5521 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.5079, allocations: 44.48 kB / 0.5521 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.508, allocations: 20.36 kB / 0.5521 GB, free: 3.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000291/0.5083, allocations: 199.2 kB / 0.5523 GB, free: 3.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5083, allocations: 0 / 0.5523 GB, free: 3.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001168/0.5094, allocations: 239.7 kB / 0.5525 GB, free: 3.508 MB / 398.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.007264/0.5167, allocations: 1.849 MB / 0.5543 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.5184, allocations: 0.6606 MB / 0.555 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.5184, allocations: 1.344 kB / 0.555 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.5195, allocations: 0.6028 MB / 0.5556 GB, free: 1.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/0.5203, allocations: 102.5 kB / 0.5557 GB, free: 1.168 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.5342, allocations: 4.61 MB / 0.5602 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.5346, allocations: 232.2 kB / 0.5604 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.5349, allocations: 79.19 kB / 0.5605 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.5352, allocations: 175.4 kB / 0.5606 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5352, allocations: 0 / 0.5606 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05981/0.595, allocations: 16.79 MB / 0.577 GB, free: 12.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/14.03, allocations: 18.33 kB / 0.5771 GB, free: 12.76 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_HeatingOfWater.fmu > Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.875670073000947] Failed to read output from testmodel.py, exit status != 0: 14.157281413994497 14.171879112 13.73890898 Calling exit ...