Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001711/0.001711, 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.00159/0.00159, allocations: 219.2 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.391/1.391, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1376/0.1376, allocations: 23.92 MB / 336.4 MB, free: 10.89 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_master_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.00194/0.00194, allocations: 71.89 kB / 471.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3362, allocations: 59.87 MB / 0.5186 GB, free: 9.543 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1350:7-1350: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 master/Boundaries.mo:1350:7-1350: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.06992/0.4061, allocations: 25.75 MB / 0.5437 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.4181, allocations: 7.258 MB / 0.5508 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.4191, allocations: 19.88 kB / 0.5508 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.4215, allocations: 0.6668 MB / 0.5515 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002008/0.4235, allocations: 0.5902 MB / 0.5521 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.4257, allocations: 0.7328 MB / 0.5528 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001921/0.4276, allocations: 1.126 MB / 0.5539 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.4279, allocations: 168.6 kB / 0.5541 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005397/0.4285, allocations: 390.2 kB / 0.5544 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000797/0.4293, allocations: 0.5095 MB / 0.5549 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.4294, allocations: 80 kB / 0.555 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002398/0.4318, allocations: 0.9087 MB / 0.5559 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002865/0.4321, allocations: 255.1 kB / 0.5561 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004439/0.4325, allocations: 396.7 kB / 0.5565 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003765/0.4363, allocations: 2.206 MB / 0.5587 GB, free: 492 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.4363, allocations: 4.516 kB / 0.5587 GB, free: 488 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4363, allocations: 3.938 kB / 0.5587 GB, free: 484 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.4363, allocations: 7.938 kB / 0.5587 GB, free: 476 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.002499/0.4388, allocations: 1.371 MB / 0.56 GB, free: 15.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4389, allocations: 8.031 kB / 0.56 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/0.4391, allocations: 157.7 kB / 0.5602 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004696/0.4395, allocations: 194 kB / 0.5604 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008397/0.4404, allocations: 0.5002 MB / 0.5608 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.4405, allocations: 124.6 kB / 0.561 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.4406, allocations: 90.66 kB / 0.5611 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003512/0.4442, allocations: 3.076 MB / 0.5641 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.4442, allocations: 0 / 0.5641 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.348e-05/0.4442, allocations: 39.98 kB / 0.5641 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.4444, allocations: 130 kB / 0.5642 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006018/0.4504, allocations: 5.869 MB / 0.57 GB, free: 5.121 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.007451/0.4579, allocations: 4.63 MB / 0.5745 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/0.4587, allocations: 394.7 kB / 0.5748 GB, free: 20 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.4591, allocations: 240.9 kB / 0.5751 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003921/0.463, allocations: 2.028 MB / 0.5771 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.463, allocations: 34.56 kB / 0.5771 GB, free: 13.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 2.705e-06/0.463, allocations: 4 kB / 0.5771 GB, free: 13.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=44): time 0.01506/0.4781, allocations: 3.873 MB / 0.5809 GB, free: 9.695 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.4781, allocations: 59.41 kB / 0.5809 GB, free: 9.625 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009725/0.4791, allocations: 0.7229 MB / 0.5816 GB, free: 8.895 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.667e-05/0.4792, allocations: 33.7 kB / 0.5817 GB, free: 8.855 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004903/0.4797, allocations: 0.6279 MB / 0.5823 GB, free: 8.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.4799, allocations: 174.6 kB / 0.5825 GB, free: 8.047 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003203/0.4802, allocations: 218.5 kB / 0.5827 GB, free: 7.828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.4804, allocations: 386.8 kB / 0.583 GB, free: 7.441 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004869/0.4809, allocations: 289.9 kB / 0.5833 GB, free: 7.156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008066/0.4817, allocations: 0.6456 MB / 0.5839 GB, free: 6.336 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.4831, allocations: 1.003 MB / 0.5849 GB, free: 5.156 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.4831, allocations: 4 kB / 0.5849 GB, free: 5.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.004848/0.4879, allocations: 1.486 MB / 0.5864 GB, free: 3.648 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.488, allocations: 15.98 kB / 0.5864 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.488, allocations: 12 kB / 0.5864 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004292/0.4923, allocations: 0.6464 MB / 0.587 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.4933, allocations: 251.6 kB / 0.5873 GB, free: 2.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.497, allocations: 2.856 MB / 0.5901 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006525/0.4977, allocations: 28 kB / 0.5901 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/0.4979, allocations: 132 kB / 0.5902 GB, free: 15.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 2 (liquidWater.substanceDefinitionVar.SelfClustering,liquidWater.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,5), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006162/0.4985, allocations: 345.4 kB / 0.5905 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.4987, allocations: 83.42 kB / 0.5906 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005198/0.5039, allocations: 1.44 MB / 0.592 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.5039, allocations: 7.938 kB / 0.592 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.5039, allocations: 3.984 kB / 0.592 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.5039, allocations: 3.984 kB / 0.592 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.5055, allocations: 1.002 MB / 0.593 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.5055, allocations: 4 kB / 0.593 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007337/0.5062, allocations: 136.1 kB / 0.5932 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004637/0.5109, allocations: 0.6431 MB / 0.5938 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/0.511, allocations: 27.98 kB / 0.5938 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008023/0.519, allocations: 5.642 MB / 0.5993 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.519, allocations: 11.88 kB / 0.5993 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004979/0.524, allocations: 1.502 MB / 0.6008 GB, free: 4.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.5242, allocations: 67.44 kB / 0.6009 GB, free: 4.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.5243, allocations: 19.98 kB / 0.6009 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.5246, allocations: 12 kB / 0.6009 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.5248, allocations: 68.28 kB / 0.601 GB, free: 3.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/0.5249, allocations: 55.97 kB / 0.601 GB, free: 3.934 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007013/0.5256, allocations: 499 kB / 0.6015 GB, free: 3.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5256, allocations: 0 / 0.6015 GB, free: 3.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001164/0.5267, allocations: 287.7 kB / 0.6018 GB, free: 3.168 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.substance.amountOfBonds,liquidWater.logm) * 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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 3 systems {(1,2), (1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005814/0.5326, allocations: 2.288 MB / 0.604 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.5348, allocations: 0.9168 MB / 0.6049 GB, free: 15.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.5348, allocations: 4 kB / 0.6049 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.5363, allocations: 0.7369 MB / 0.6056 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.5374, allocations: 201.3 kB / 0.6058 GB, free: 14.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/0.5551, allocations: 8.495 MB / 0.6141 GB, free: 5.867 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006411/0.5558, allocations: 0.5101 MB / 0.6146 GB, free: 5.324 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009366/0.5567, allocations: 301.8 kB / 0.6149 GB, free: 5.027 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007433/0.5574, allocations: 479.2 kB / 0.6153 GB, free: 4.559 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5574, allocations: 0 / 0.6153 GB, free: 4.559 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07394/0.6314, allocations: 29.67 MB / 0.6443 GB, free: 7.129 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/15.09, allocations: 12.05 kB / 0.6443 GB, free: 7.117 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_master_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_master_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_master_Chemical.Examples.HeatingOfWater.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Examples_HeatingOfWater.fmu > Chemical_master_Chemical.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.808798116981052] Failed to read output from testmodel.py, exit status != 0: 15.219393421983114 15.2363821 14.796910295 Calling exit ...