Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Definitions.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.001213/0.001213, 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.00134/0.00134, allocations: 221.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.367/1.367, allocations: 230.6 MB / 256 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.1316/0.1316, allocations: 23.89 MB / 336.3 MB, free: 10.98 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.Definitions,fileNamePrefix="Chemical_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Definitions,fileNamePrefix="Chemical_Chemical_Examples_Definitions",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.001911/0.001911, allocations: 63.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2983, allocations: 59.86 MB / 0.5185 GB, free: 9.566 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:465:5-465:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:465:5-465:64:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.Definitions): time 0.06772/0.366, allocations: 23.58 MB / 0.5416 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1534/0.5195, allocations: 122.1 MB / 0.6608 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003835/0.5199, allocations: 7.938 kB / 0.6608 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.522, allocations: 0.6569 MB / 0.6614 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003299/0.5253, allocations: 1.924 MB / 0.6633 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.5268, allocations: 0.5128 MB / 0.6638 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003393/0.5302, allocations: 2.01 MB / 0.6658 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.5303, allocations: 33.89 kB / 0.6658 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000464/0.5308, allocations: 378.8 kB / 0.6662 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006778/0.5315, allocations: 498.6 kB / 0.6666 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.3e-05/0.5315, allocations: 20 kB / 0.6667 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.5332, allocations: 0.6941 MB / 0.6673 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.5334, allocations: 167.2 kB / 0.6675 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002135/0.5336, allocations: 230.4 kB / 0.6677 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002103/0.5357, allocations: 1.662 MB / 0.6693 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5357, allocations: 0 / 0.6693 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5357, allocations: 0 / 0.6693 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 1.376e-05/0.5357, allocations: 0 / 0.6693 GB, free: 15.07 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.001426/0.5371, allocations: 1.013 MB / 0.6703 GB, free: 14.03 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.5372, allocations: 8.031 kB / 0.6703 GB, free: 14.02 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.5373, allocations: 106.7 kB / 0.6704 GB, free: 13.91 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006557/0.5379, allocations: 292 kB / 0.6707 GB, free: 13.62 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.5385, allocations: 362 kB / 0.6711 GB, free: 13.24 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.5385, allocations: 33.38 kB / 0.6711 GB, free: 13.21 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.704e-05/0.5386, allocations: 44.36 kB / 0.6711 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0026/0.5412, allocations: 2.621 MB / 0.6737 GB, free: 10.49 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.5412, allocations: 3.938 kB / 0.6737 GB, free: 10.48 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.524e-05/0.5413, allocations: 23.98 kB / 0.6737 GB, free: 10.46 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.5414, allocations: 85.27 kB / 0.6738 GB, free: 10.38 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00405/0.5454, allocations: 4.242 MB / 0.6779 GB, free: 6.133 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.5499, allocations: 3.319 MB / 0.6812 GB, free: 2.754 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009161/0.5508, allocations: 490.9 kB / 0.6817 GB, free: 2.266 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.551, allocations: 108.8 kB / 0.6818 GB, free: 2.156 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004266/0.5553, allocations: 1.842 MB / 0.6836 GB, free: 296 kB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.5553, allocations: 38.5 kB / 0.6836 GB, free: 248 kB / 0.5138 GB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.5553, allocations: 0 / 0.6836 GB, free: 248 kB / 0.5138 GB Notification: Performance of matching and sorting (n=25): time 0.0008137/0.5561, allocations: 469.8 kB / 0.684 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.5561, allocations: 55.41 kB / 0.6841 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.5572, allocations: 0.9109 MB / 0.685 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.5572, allocations: 29.7 kB / 0.685 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/0.5575, allocations: 483 kB / 0.6855 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.417e-05/0.5576, allocations: 111.1 kB / 0.6856 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003304/0.5579, allocations: 302.4 kB / 0.6859 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.5581, allocations: 354.8 kB / 0.6862 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.5585, allocations: 234.5 kB / 0.6864 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008668/0.5593, allocations: 0.8882 MB / 0.6873 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.5607, allocations: 1.219 MB / 0.6885 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.5607, allocations: 12 kB / 0.6885 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001689/0.5624, allocations: 1.123 MB / 0.6896 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.5624, allocations: 16 kB / 0.6896 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.5625, allocations: 24 kB / 0.6896 GB, free: 9.336 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.665e-05/0.5625, allocations: 32 kB / 0.6897 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007344/0.5632, allocations: 303.5 kB / 0.69 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.949e-05/0.5633, allocations: 48.3 kB / 0.69 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006126/0.5639, allocations: 146.9 kB / 0.6901 GB, free: 8.816 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/0.5641, allocations: 128 kB / 0.6903 GB, free: 8.691 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 6 (H2O_vaporization_props.definition.SelfClustering,H2O_vaporization_props.definition.data.phase,H2O_formation_props.definition.SelfClustering,H2O_formation_props.definition.data.phase,O2_dissolving_props.definition.SelfClustering,O2_dissolving_props.definition.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004627/0.5645, allocations: 333.1 kB / 0.6906 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.5647, allocations: 91.38 kB / 0.6907 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.5663, allocations: 0.7823 MB / 0.6914 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.5663, allocations: 4 kB / 0.6914 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5663, allocations: 3.938 kB / 0.6914 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5663, allocations: 0 / 0.6914 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.5669, allocations: 468.3 kB / 0.6919 GB, free: 6.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5669, allocations: 4 kB / 0.6919 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.5672, allocations: 103.9 kB / 0.692 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.5672, allocations: 4 kB / 0.692 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.5672, allocations: 27.98 kB / 0.692 GB, free: 6.828 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.5673, allocations: 4 kB / 0.692 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5673, allocations: 4 kB / 0.692 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.5679, allocations: 482.9 kB / 0.6925 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005391/0.5684, allocations: 249.2 kB / 0.6927 GB, free: 6.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.945e-05/0.5685, allocations: 11.98 kB / 0.6927 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.5687, allocations: 12 kB / 0.6927 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.5688, allocations: 39.95 kB / 0.6928 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.5689, allocations: 91.92 kB / 0.6929 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006672/0.5696, allocations: 0.5614 MB / 0.6934 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.5696, allocations: 4 kB / 0.6934 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000904/0.5705, allocations: 179.8 kB / 0.6936 GB, free: 5.188 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001244/0.5717, allocations: 1.145 MB / 0.6947 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009668/0.5727, allocations: 0.5868 MB / 0.6953 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5727, allocations: 0.9375 kB / 0.6953 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.5729, allocations: 139.9 kB / 0.6954 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.5734, allocations: 96.84 kB / 0.6955 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.5808, allocations: 6.157 MB / 0.7015 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.5812, allocations: 355.7 kB / 0.7019 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001391/0.5826, allocations: 0.5044 MB / 0.7024 GB, free: 11.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.5831, allocations: 255.2 kB / 0.7026 GB, free: 11.15 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/0.5831, allocations: 0 / 0.7026 GB, free: 11.15 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04196/0.6251, allocations: 15.02 MB / 0.7173 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.45, allocations: 4.062 kB / 0.7173 GB, free: 12.3 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f Chemical_Chemical.Examples.Definitions.pipe ; mkfifo Chemical_Chemical.Examples.Definitions.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Definitions.pipe >> ../files/Chemical_Chemical.Examples.Definitions.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.Definitions_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.8 Chemical_Chemical_Examples_Definitions.fmu > Chemical_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.179290128988214] Failed to read output from testmodel.py, exit status != 0: 11.562706561002415 11.758042 11.039449007 Calling exit ...