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.001391/0.001391, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001634/0.001634, allocations: 214.4 kB / 22.25 MB, free: 5.258 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.548/1.548, allocations: 230.6 MB / 256 MB, free: 7.793 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.1596/0.1596, allocations: 23.88 MB / 336.3 MB, free: 10.96 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.002142/0.002142, allocations: 68.17 kB / 471.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3604, allocations: 59.86 MB / 0.5185 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.004684/0.3651, allocations: 3.214 MB / 0.5217 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.3702, allocations: 4.251 MB / 0.5258 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003512/0.3705, allocations: 8.094 kB / 0.5258 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.371, allocations: 99.28 kB / 0.5259 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.372, allocations: 452.4 kB / 0.5263 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.3733, allocations: 0.5284 MB / 0.5269 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006631/0.374, allocations: 0.5851 MB / 0.5274 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003838/0.3744, allocations: 299.2 kB / 0.5277 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.3747, allocations: 296.2 kB / 0.528 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004334/0.3752, allocations: 272.7 kB / 0.5283 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.944e-05/0.3752, allocations: 53.16 kB / 0.5283 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.3763, allocations: 450.4 kB / 0.5287 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.3764, allocations: 120.8 kB / 0.5289 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.3767, allocations: 235.8 kB / 0.5291 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.3782, allocations: 1.073 MB / 0.5301 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3782, allocations: 1.75 kB / 0.5301 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3782, allocations: 0 / 0.5301 GB, free: 2.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.3782, allocations: 0 / 0.5301 GB, free: 2.465 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.001406/0.3796, allocations: 0.7987 MB / 0.5309 GB, free: 1.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3797, allocations: 9.906 kB / 0.5309 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.726e-05/0.3798, allocations: 89.98 kB / 0.531 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003461/0.3801, allocations: 93.05 kB / 0.5311 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005818/0.3807, allocations: 313.9 kB / 0.5314 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.3807, allocations: 33.56 kB / 0.5314 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.949e-05/0.3808, allocations: 51.19 kB / 0.5315 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.3815, allocations: 457.4 kB / 0.5319 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.3816, allocations: 4 kB / 0.5319 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.3816, allocations: 16.28 kB / 0.5319 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3816, allocations: 10.66 kB / 0.5319 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008112/0.3824, allocations: 0.5041 MB / 0.5324 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/0.3846, allocations: 1.211 MB / 0.5336 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007246/0.3854, allocations: 336.6 kB / 0.5339 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.3855, allocations: 110.5 kB / 0.534 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001974/0.3875, allocations: 0.8837 MB / 0.5349 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.3875, allocations: 32.58 kB / 0.5349 GB, free: 15.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.733e-06/0.3875, allocations: 0 / 0.5349 GB, free: 15.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0168/0.4043, allocations: 2.113 MB / 0.537 GB, free: 15.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.4044, allocations: 60.47 kB / 0.5371 GB, free: 14.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004375/0.4048, allocations: 304.3 kB / 0.5373 GB, free: 14.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.4049, allocations: 31.8 kB / 0.5374 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.4051, allocations: 279.3 kB / 0.5376 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.4052, allocations: 114.2 kB / 0.5378 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.4054, allocations: 85.41 kB / 0.5378 GB, free: 14.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.4056, allocations: 344.5 kB / 0.5382 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.4058, allocations: 133.2 kB / 0.5383 GB, free: 14.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.4062, allocations: 267.8 kB / 0.5385 GB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.4068, allocations: 428.5 kB / 0.539 GB, free: 13.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.4068, allocations: 0.9375 kB / 0.539 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003947/0.4108, allocations: 0.8166 MB / 0.5398 GB, free: 13.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.4108, allocations: 6.328 kB / 0.5398 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.4108, allocations: 4.5 kB / 0.5398 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003354/0.4142, allocations: 413.7 kB / 0.5402 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.4144, allocations: 81.5 kB / 0.5402 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00677/0.4212, allocations: 3.743 MB / 0.5439 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004297/0.4216, allocations: 13.98 kB / 0.5439 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.4217, allocations: 20.78 kB / 0.5439 GB, free: 10.02 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.0002885/0.422, allocations: 179.9 kB / 0.5441 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4221, allocations: 39.22 kB / 0.5441 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004734/0.4268, allocations: 0.8234 MB / 0.5449 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.4268, allocations: 3.594 kB / 0.5449 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4268, allocations: 3.031 kB / 0.5449 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.4268, allocations: 2.016 kB / 0.5449 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.4279, allocations: 0.5396 MB / 0.5455 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.4279, allocations: 10.19 kB / 0.5455 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.4281, allocations: 54.33 kB / 0.5455 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00438/0.4325, allocations: 491.5 kB / 0.546 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.473e-05/0.4326, allocations: 13.97 kB / 0.546 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007723/0.4403, allocations: 4.939 MB / 0.5508 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/0.4403, allocations: 6.312 kB / 0.5508 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00523/0.4455, allocations: 1.118 MB / 0.5519 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.4457, allocations: 39.09 kB / 0.552 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.4458, allocations: 13.12 kB / 0.552 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002954/0.4461, allocations: 8.969 kB / 0.552 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.4462, allocations: 56.2 kB / 0.5521 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.4462, allocations: 16.48 kB / 0.5521 GB, free: 3.613 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.4465, allocations: 202.3 kB / 0.5523 GB, free: 3.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4465, allocations: 0 / 0.5523 GB, free: 3.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001013/0.4475, allocations: 240.1 kB / 0.5525 GB, free: 3.43 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.006006/0.4535, allocations: 1.837 MB / 0.5543 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4551, allocations: 0.6646 MB / 0.5549 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.4551, allocations: 5.375 kB / 0.5549 GB, free: 1.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.4563, allocations: 0.6023 MB / 0.5555 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007398/0.457, allocations: 101.3 kB / 0.5556 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0186/0.4756, allocations: 4.609 MB / 0.5601 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.476, allocations: 224.2 kB / 0.5603 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005115/0.4765, allocations: 82.83 kB / 0.5604 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.477, allocations: 175.3 kB / 0.5606 GB, free: 13.23 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.477, allocations: 3.938 kB / 0.5606 GB, free: 13.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08227/0.5593, allocations: 16.65 MB / 0.5768 GB, free: 12.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.33, allocations: 3.984 kB / 0.5768 GB, free: 12.79 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.HeatingOfWater_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_HeatingOfWater.fmu > Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.427848452236503] Failed to read output from testmodel.py, exit status != 0: 14.465362428221852 14.496563042 14.112613395 Calling exit ...