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.00151/0.00151, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001804/0.001804, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.625/1.625, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.1524/0.1524, allocations: 23.85 MB / 332.7 MB, free: 12.36 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.002608/0.002608, allocations: 63.91 kB / 466 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5018/0.5044, allocations: 59.82 MB / 0.5135 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.005067/0.5094, allocations: 3.476 MB / 0.5169 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005912/0.5154, allocations: 4.789 MB / 0.5215 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004906/0.5158, allocations: 7.406 kB / 0.5215 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004878/0.5163, allocations: 108.6 kB / 0.5216 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001304/0.5176, allocations: 452.7 kB / 0.5221 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.5192, allocations: 0.5319 MB / 0.5226 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000849/0.5201, allocations: 0.5855 MB / 0.5232 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004409/0.5205, allocations: 309.3 kB / 0.5235 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.5209, allocations: 292.5 kB / 0.5237 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004212/0.5213, allocations: 308.4 kB / 0.524 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.401e-05/0.5214, allocations: 53.34 kB / 0.5241 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.523, allocations: 481.2 kB / 0.5245 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.5231, allocations: 122.3 kB / 0.5247 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.5234, allocations: 279.2 kB / 0.5249 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.5254, allocations: 1.074 MB / 0.526 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.5254, allocations: 0 / 0.526 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.5254, allocations: 1.844 kB / 0.526 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.5254, allocations: 0 / 0.526 GB, free: 0.9648 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.001529/0.5269, allocations: 0.8811 MB / 0.5268 GB, free: 316 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.527, allocations: 9.938 kB / 0.5269 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.5271, allocations: 88.25 kB / 0.5269 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.5275, allocations: 94.42 kB / 0.527 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.5281, allocations: 369.5 kB / 0.5274 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.417e-05/0.5282, allocations: 35.88 kB / 0.5274 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.5283, allocations: 50.67 kB / 0.5275 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.5292, allocations: 451.5 kB / 0.5279 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.5292, allocations: 0.6094 kB / 0.5279 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/0.5292, allocations: 20.16 kB / 0.5279 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.5293, allocations: 11.06 kB / 0.5279 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.5303, allocations: 0.5133 MB / 0.5284 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003075/0.5334, allocations: 1.538 MB / 0.5299 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008546/0.5342, allocations: 342.8 kB / 0.5303 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.5344, allocations: 106.5 kB / 0.5304 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002744/0.5372, allocations: 1.57 MB / 0.5319 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.5372, allocations: 39.69 kB / 0.5319 GB, free: 13.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.673e-06/0.5372, allocations: 1.094 kB / 0.5319 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01531/0.5525, allocations: 2.34 MB / 0.5342 GB, free: 12.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.5526, allocations: 55.47 kB / 0.5343 GB, free: 11.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006944/0.5533, allocations: 291.6 kB / 0.5345 GB, free: 11.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.363e-05/0.5534, allocations: 34.67 kB / 0.5346 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003268/0.5537, allocations: 283.1 kB / 0.5348 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.5539, allocations: 114.7 kB / 0.535 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.5541, allocations: 89.09 kB / 0.535 GB, free: 11.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.5543, allocations: 340.6 kB / 0.5354 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.5546, allocations: 133.7 kB / 0.5355 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.555, allocations: 263.4 kB / 0.5357 GB, free: 10.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007592/0.5558, allocations: 430.2 kB / 0.5362 GB, free: 10.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.5558, allocations: 5.312 kB / 0.5362 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004375/0.5602, allocations: 0.8088 MB / 0.5369 GB, free: 10.19 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.5602, allocations: 5.844 kB / 0.537 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5602, allocations: 5.25 kB / 0.537 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/0.5639, allocations: 405.2 kB / 0.5373 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.5642, allocations: 81.19 kB / 0.5374 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007407/0.5716, allocations: 3.991 MB / 0.5413 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/0.5721, allocations: 17.11 kB / 0.5413 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.041e-05/0.5722, allocations: 27 kB / 0.5414 GB, free: 6.715 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.0003645/0.5726, allocations: 168.1 kB / 0.5415 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.5727, allocations: 32.94 kB / 0.5416 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005242/0.578, allocations: 0.8294 MB / 0.5424 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.578, allocations: 4.25 kB / 0.5424 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.578, allocations: 2.422 kB / 0.5424 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.578, allocations: 1.453 kB / 0.5424 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.5793, allocations: 0.6412 MB / 0.543 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.5793, allocations: 2.188 kB / 0.543 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.5795, allocations: 49.2 kB / 0.543 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004632/0.5842, allocations: 487.8 kB / 0.5435 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.5842, allocations: 16.7 kB / 0.5435 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008202/0.5924, allocations: 5.309 MB / 0.5487 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5924, allocations: 2.562 kB / 0.5487 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005314/0.5977, allocations: 1.122 MB / 0.5498 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.5979, allocations: 111.5 kB / 0.5499 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.598, allocations: 12.12 kB / 0.5499 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003147/0.5983, allocations: 13.06 kB / 0.5499 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.5984, allocations: 42.84 kB / 0.55 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/0.5985, allocations: 16.19 kB / 0.55 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.5987, allocations: 202.4 kB / 0.5502 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5987, allocations: 0 / 0.5502 GB, free: 15.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001089/0.5998, allocations: 240.7 kB / 0.5504 GB, free: 15.63 MB / 414.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.006484/0.6063, allocations: 1.851 MB / 0.5522 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.608, allocations: 0.6731 MB / 0.5529 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.608, allocations: 0 / 0.5529 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.6091, allocations: 0.5917 MB / 0.5535 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008476/0.61, allocations: 117.7 kB / 0.5536 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/0.6231, allocations: 4.597 MB / 0.5581 GB, free: 9.949 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.6236, allocations: 0.8407 MB / 0.5589 GB, free: 9.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003175/0.6239, allocations: 66.97 kB / 0.5589 GB, free: 9.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.6242, allocations: 177.8 kB / 0.5591 GB, free: 9.008 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6242, allocations: 0 / 0.5591 GB, free: 9.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06685/0.6911, allocations: 15.51 MB / 0.5743 GB, free: 11.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.63, allocations: 3.453 kB / 0.5743 GB, free: 11.18 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 sys.exit(0), Time elapsed: 16.785042971998337] Failed to read output from testmodel.py, exit status != 0: 13.73588950499834 13.749415395 13.220954532 Calling exit ...