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.001627/0.001627, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002198/0.002198, allocations: 219.2 kB / 23.03 MB, free: 4.945 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.603/1.603, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1678/0.1678, allocations: 23.87 MB / 337.1 MB, free: 10.99 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="cs",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.00202/0.00202, allocations: 55.91 kB / 471.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4322, allocations: 59.86 MB / 0.5193 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.00461/0.4368, allocations: 3.217 MB / 0.5224 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00531/0.4421, allocations: 4.239 MB / 0.5266 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005043/0.4426, allocations: 12.38 kB / 0.5266 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.4431, allocations: 103.9 kB / 0.5267 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.4443, allocations: 456.2 kB / 0.5271 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.446, allocations: 0.5288 MB / 0.5276 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008791/0.4469, allocations: 0.5807 MB / 0.5282 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005223/0.4474, allocations: 311 kB / 0.5285 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004107/0.4478, allocations: 287.4 kB / 0.5288 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004697/0.4483, allocations: 314 kB / 0.5291 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.922e-05/0.4484, allocations: 51.25 kB / 0.5291 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.4499, allocations: 463.1 kB / 0.5295 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.45, allocations: 123.3 kB / 0.5297 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.4503, allocations: 232.8 kB / 0.5299 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001986/0.4523, allocations: 1.074 MB / 0.5309 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4523, allocations: 0.6562 kB / 0.5309 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.4523, allocations: 0 / 0.5309 GB, free: 2.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.4523, allocations: 1.484 kB / 0.5309 GB, free: 2.363 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.001577/0.4539, allocations: 0.8056 MB / 0.5317 GB, free: 1.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.4539, allocations: 10.28 kB / 0.5317 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.076e-05/0.454, allocations: 13.5 kB / 0.5317 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.927e-05/0.4541, allocations: 84.92 kB / 0.5318 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004337/0.4545, allocations: 97.98 kB / 0.5319 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006052/0.4551, allocations: 309.3 kB / 0.5322 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.4551, allocations: 36.66 kB / 0.5323 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.4552, allocations: 47.88 kB / 0.5323 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008085/0.456, allocations: 454 kB / 0.5327 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4561, allocations: 4 kB / 0.5327 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.4561, allocations: 20.38 kB / 0.5328 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.4561, allocations: 11.55 kB / 0.5328 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000834/0.4569, allocations: 0.5038 MB / 0.5333 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.4592, allocations: 1.216 MB / 0.5344 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007591/0.4599, allocations: 340.9 kB / 0.5348 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.4601, allocations: 107.6 kB / 0.5349 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002141/0.4622, allocations: 0.8741 MB / 0.5357 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.4623, allocations: 38.19 kB / 0.5358 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.392e-06/0.4623, allocations: 0 / 0.5358 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01617/0.4784, allocations: 2.103 MB / 0.5378 GB, free: 14.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.4785, allocations: 55.3 kB / 0.5379 GB, free: 14.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.4789, allocations: 313.4 kB / 0.5382 GB, free: 14.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.737e-05/0.479, allocations: 30.48 kB / 0.5382 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.4792, allocations: 282.3 kB / 0.5385 GB, free: 14.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.4794, allocations: 111.6 kB / 0.5386 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.4795, allocations: 85 kB / 0.5387 GB, free: 14.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.4797, allocations: 344.8 kB / 0.539 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.48, allocations: 136.8 kB / 0.5391 GB, free: 13.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.4804, allocations: 259.8 kB / 0.5394 GB, free: 13.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.481, allocations: 432.9 kB / 0.5398 GB, free: 13.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.481, allocations: 0 / 0.5398 GB, free: 13.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004577/0.4856, allocations: 0.8167 MB / 0.5406 GB, free: 13.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.4856, allocations: 6.719 kB / 0.5406 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.4857, allocations: 5.266 kB / 0.5406 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004069/0.4897, allocations: 416.3 kB / 0.541 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.4901, allocations: 78.44 kB / 0.5411 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/0.4975, allocations: 3.738 MB / 0.5447 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005701/0.4981, allocations: 14.69 kB / 0.5447 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-05/0.4982, allocations: 28.09 kB / 0.5447 GB, free: 9.918 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.0004087/0.4986, allocations: 168.1 kB / 0.5449 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.4987, allocations: 39.02 kB / 0.5449 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/0.5042, allocations: 0.8242 MB / 0.5457 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.5042, allocations: 3.406 kB / 0.5458 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.5042, allocations: 1.969 kB / 0.5458 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.5042, allocations: 2.297 kB / 0.5458 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.5053, allocations: 0.5554 MB / 0.5463 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5053, allocations: 6.5 kB / 0.5463 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/0.5055, allocations: 49.97 kB / 0.5464 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005104/0.5106, allocations: 490.9 kB / 0.5468 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-05/0.5106, allocations: 19.27 kB / 0.5468 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00829/0.5189, allocations: 4.936 MB / 0.5517 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5189, allocations: 3.094 kB / 0.5517 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005761/0.5247, allocations: 1.126 MB / 0.5528 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.5249, allocations: 35.8 kB / 0.5528 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.542e-05/0.5249, allocations: 12.45 kB / 0.5528 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.5252, allocations: 12.09 kB / 0.5528 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.5254, allocations: 48.58 kB / 0.5529 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.5254, allocations: 16.31 kB / 0.5529 GB, free: 3.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.5257, allocations: 202.3 kB / 0.5531 GB, free: 3.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5257, allocations: 5.031 kB / 0.5531 GB, free: 3.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001215/0.5269, allocations: 239.5 kB / 0.5533 GB, free: 3.355 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.006748/0.5337, allocations: 1.84 MB / 0.5551 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.5353, allocations: 0.6646 MB / 0.5558 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.5353, allocations: 0.9688 kB / 0.5558 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.5364, allocations: 0.6117 MB / 0.5564 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008029/0.5372, allocations: 107.4 kB / 0.5565 GB, free: 1.004 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.5505, allocations: 4.599 MB / 0.5609 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.5508, allocations: 233 kB / 0.5612 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003189/0.5511, allocations: 75.02 kB / 0.5612 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.5514, allocations: 179.3 kB / 0.5614 GB, free: 13.24 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5514, allocations: 0 / 0.5614 GB, free: 13.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0541/0.6055, allocations: 16.46 MB / 0.5775 GB, free: 13.03 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.04, allocations: 15.97 kB / 0.5775 GB, free: 13.01 MB / 430.1 MB " [Timeout remaining time 645] (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: 18.119531073025428] Failed to read output from testmodel.py, exit status != 0: 15.226699623046443 15.242199741 14.786737934 Calling exit ...