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.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.001379/0.001379, 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.001542/0.001542, allocations: 211.9 kB / 22.24 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.522/1.522, 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.1613/0.1613, 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.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_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.002101/0.002101, allocations: 74.86 kB / 471.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3912, allocations: 59.86 MB / 0.5185 GB, free: 9.578 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.07805/0.4693, allocations: 25.83 MB / 0.5437 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.4818, allocations: 7.238 MB / 0.5508 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.4832, allocations: 15.88 kB / 0.5508 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003088/0.4863, allocations: 0.7192 MB / 0.5515 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002021/0.4883, allocations: 0.5502 MB / 0.5521 GB, free: 6.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.4913, allocations: 0.7421 MB / 0.5528 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002719/0.4941, allocations: 1.129 MB / 0.5539 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.4945, allocations: 152.6 kB / 0.554 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007218/0.4952, allocations: 384.7 kB / 0.5544 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000635/0.4958, allocations: 374.6 kB / 0.5548 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.496, allocations: 84 kB / 0.5548 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003258/0.4992, allocations: 0.9562 MB / 0.5558 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003496/0.4996, allocations: 267 kB / 0.556 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005169/0.5001, allocations: 412.3 kB / 0.5564 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.5052, allocations: 2.313 MB / 0.5587 GB, free: 496 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.5052, allocations: 4 kB / 0.5587 GB, free: 492 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5052, allocations: 0 / 0.5587 GB, free: 492 kB / 398.1 MB Notification: Performance of Transformations before backend: time 3.571e-05/0.5053, allocations: 4 kB / 0.5587 GB, free: 488 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.003053/0.5083, allocations: 1.404 MB / 0.5601 GB, free: 15.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.5084, allocations: 15.91 kB / 0.5601 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002225/0.5086, allocations: 158.3 kB / 0.5602 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006723/0.5093, allocations: 209.1 kB / 0.5604 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.5104, allocations: 0.5362 MB / 0.561 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.5106, allocations: 184.8 kB / 0.5611 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.5108, allocations: 77.69 kB / 0.5612 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004586/0.5153, allocations: 3.792 MB / 0.5649 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.5154, allocations: 0 / 0.5649 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.5154, allocations: 36 kB / 0.5649 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.5156, allocations: 149.9 kB / 0.5651 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007562/0.5232, allocations: 6.752 MB / 0.5717 GB, free: 3.363 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.538, allocations: 8.996 MB / 0.5805 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.5408, allocations: 1.744 MB / 0.5822 GB, free: 8.531 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/0.5427, allocations: 1.348 MB / 0.5835 GB, free: 7.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001911/0.5446, allocations: 0.6298 MB / 0.5841 GB, free: 6.551 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.5447, allocations: 42.55 kB / 0.5841 GB, free: 6.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=42): time 3.267e-06/0.5447, allocations: 3.938 kB / 0.5841 GB, free: 6.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=68): time 0.0554/0.6001, allocations: 15.28 MB / 0.5991 GB, free: 7.164 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07435/0.6744, allocations: 21.98 MB / 0.6205 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.6761, allocations: 1.07 MB / 0.6216 GB, free: 15.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003286/0.6764, allocations: 37.7 kB / 0.6216 GB, free: 15.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005017/0.6769, allocations: 0.5161 MB / 0.6221 GB, free: 15.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004263/0.6774, allocations: 245.8 kB / 0.6223 GB, free: 14.99 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007261/0.6781, allocations: 266.5 kB / 0.6226 GB, free: 14.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.6783, allocations: 334 kB / 0.6229 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.6819, allocations: 2.423 MB / 0.6253 GB, free: 11.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/0.6856, allocations: 2.562 MB / 0.6278 GB, free: 9.355 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005262/0.6909, allocations: 3.337 MB / 0.631 GB, free: 5.969 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.6909, allocations: 4.188 kB / 0.631 GB, free: 5.965 MB / 478.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.01734/0.7082, allocations: 6.811 MB / 0.6377 GB, free: 15.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.7083, allocations: 18.58 kB / 0.6377 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.7083, allocations: 0 / 0.6377 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0148/0.7231, allocations: 3.453 MB / 0.6411 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002345/0.7254, allocations: 311.6 kB / 0.6414 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02365/0.7491, allocations: 13.31 MB / 0.6544 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.751, allocations: 87.92 kB / 0.6545 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003415/0.7514, allocations: 175.9 kB / 0.6546 GB, free: 13.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (70): * Single equations (assignments): 65 * Array equations: 2 * 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,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,8), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0008901/0.7522, allocations: 333.5 kB / 0.655 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/0.7526, allocations: 107.3 kB / 0.6551 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/0.7668, allocations: 4.441 MB / 0.6594 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01233/0.7792, allocations: 3.688 MB / 0.663 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/0.7792, allocations: 4 kB / 0.663 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/0.7792, allocations: 3.984 kB / 0.663 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/0.7975, allocations: 6.788 MB / 0.6696 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.7975, allocations: 4 kB / 0.6696 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.7991, allocations: 175.7 kB / 0.6698 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02968/0.8288, allocations: 3.704 MB / 0.6734 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002757/0.8291, allocations: 47.95 kB / 0.6735 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/0.8432, allocations: 6.331 MB / 0.6796 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05989/0.9031, allocations: 14.27 MB / 0.6936 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/0.9183, allocations: 5.717 MB / 0.6992 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006183/0.9189, allocations: 143.2 kB / 0.6993 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002977/0.9192, allocations: 23.86 kB / 0.6993 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.9206, allocations: 55.92 kB / 0.6994 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.921, allocations: 96.36 kB / 0.6995 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/0.9212, allocations: 83.94 kB / 0.6995 GB, free: 14.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00174/0.9229, allocations: 1.02 MB / 0.7005 GB, free: 13.87 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.9229, allocations: 0 / 0.7005 GB, free: 13.87 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002238/0.9252, allocations: 0.5816 MB / 0.7011 GB, free: 13.29 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 ($STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 1 ($cse15) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01523/0.9404, allocations: 6.069 MB / 0.707 GB, free: 7.137 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006903/0.9473, allocations: 3.673 MB / 0.7106 GB, free: 3.445 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.9473, allocations: 0.9375 kB / 0.7106 GB, free: 3.445 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003676/0.951, allocations: 1.48 MB / 0.7121 GB, free: 1.957 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.9525, allocations: 249.5 kB / 0.7123 GB, free: 1.719 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2965/1.249, allocations: 27.86 MB / 0.7395 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007439/1.25, allocations: 0.5374 MB / 0.74 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001345/1.251, allocations: 298.8 kB / 0.7403 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009502/1.252, allocations: 463.3 kB / 0.7408 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of SimCode: time 9.12e-07/1.252, allocations: 0 / 0.7408 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1053/1.357, allocations: 64.18 MB / 0.8034 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/17.23, allocations: 5.312 kB / 0.8034 GB, free: 133.7 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.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_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.204708230216056] Failed to read output from testmodel.py, exit status != 0: 17.38350410806015 17.395094983 16.887325524 Calling exit ...