Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001274/0.001274, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001368/0.001368, allocations: 217 kB / 22.25 MB, free: 5.078 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.371/1.371, allocations: 230.6 MB / 256 MB, free: 8.035 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.1301/0.1301, allocations: 23.89 MB / 336.3 MB, free: 11.2 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.Definitions,fileNamePrefix="Chemical_master_Chemical_Examples_Definitions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Definitions,fileNamePrefix="Chemical_master_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.001954/0.001954, allocations: 67.89 kB / 471.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2907, allocations: 59.87 MB / 0.5187 GB, free: 9.602 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:437:5-437: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 master/Interfaces.mo:437:5-437: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.03144/0.3221, allocations: 23.76 MB / 0.5419 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.161/0.4831, allocations: 142.6 MB / 0.6811 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000253/0.4834, allocations: 7.938 kB / 0.6811 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.4851, allocations: 0.6648 MB / 0.6818 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003162/0.4883, allocations: 2.212 MB / 0.6839 GB, free: 420 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.4896, allocations: 0.5129 MB / 0.6844 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00335/0.493, allocations: 2.002 MB / 0.6864 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.182e-05/0.4931, allocations: 25.97 kB / 0.6864 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000463/0.4935, allocations: 378.8 kB / 0.6868 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007485/0.4943, allocations: 0.4946 MB / 0.6873 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.4943, allocations: 19.94 kB / 0.6873 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.4967, allocations: 1.271 MB / 0.6885 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.4968, allocations: 167.3 kB / 0.6887 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0002655/0.4971, allocations: 321.8 kB / 0.689 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002106/0.4992, allocations: 1.834 MB / 0.6908 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4992, allocations: 4 kB / 0.6908 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4992, allocations: 0 / 0.6908 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.4992, allocations: 0 / 0.6908 GB, free: 9.371 MB / 0.5294 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.001365/0.5006, allocations: 1.017 MB / 0.6918 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.5006, allocations: 8.031 kB / 0.6918 GB, free: 8.312 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.5007, allocations: 102.7 kB / 0.6919 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006465/0.5014, allocations: 300 kB / 0.6922 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/0.5019, allocations: 362 kB / 0.6925 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.5019, allocations: 33.36 kB / 0.6925 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.502, allocations: 40.38 kB / 0.6926 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.5044, allocations: 2.482 MB / 0.695 GB, free: 4.957 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.5044, allocations: 0 / 0.695 GB, free: 4.957 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.5045, allocations: 24 kB / 0.695 GB, free: 4.934 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.5046, allocations: 89.25 kB / 0.6951 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003938/0.5085, allocations: 4.242 MB / 0.6993 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004215/0.5127, allocations: 3.521 MB / 0.7027 GB, free: 13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.5136, allocations: 475.3 kB / 0.7031 GB, free: 12.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.5138, allocations: 120.8 kB / 0.7033 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004172/0.518, allocations: 1.869 MB / 0.7051 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.518, allocations: 34.56 kB / 0.7051 GB, free: 10.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.518, allocations: 4 kB / 0.7051 GB, free: 10.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=25): time 0.0007971/0.5188, allocations: 460.9 kB / 0.7056 GB, free: 10 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.5189, allocations: 59.41 kB / 0.7056 GB, free: 9.934 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.5199, allocations: 0.8722 MB / 0.7065 GB, free: 9.055 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.5199, allocations: 37.64 kB / 0.7065 GB, free: 9.012 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003663/0.5203, allocations: 475.1 kB / 0.707 GB, free: 8.539 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.4e-05/0.5204, allocations: 103.2 kB / 0.7071 GB, free: 8.438 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/0.5207, allocations: 302.4 kB / 0.7074 GB, free: 8.137 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.5209, allocations: 362.8 kB / 0.7077 GB, free: 7.773 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.5212, allocations: 226.5 kB / 0.7079 GB, free: 7.555 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008806/0.5221, allocations: 0.8883 MB / 0.7088 GB, free: 6.336 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.5235, allocations: 1.223 MB / 0.71 GB, free: 4.781 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.5235, allocations: 8 kB / 0.71 GB, free: 4.773 MB / 0.545 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001628/0.5251, allocations: 1.13 MB / 0.7111 GB, free: 3.637 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.5251, allocations: 16 kB / 0.7111 GB, free: 3.621 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/0.5252, allocations: 24 kB / 0.7111 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/0.5252, allocations: 32 kB / 0.7112 GB, free: 3.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006952/0.5259, allocations: 295.6 kB / 0.7114 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-05/0.5259, allocations: 47.8 kB / 0.7115 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005073/0.5264, allocations: 143.2 kB / 0.7116 GB, free: 3.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.5266, allocations: 132 kB / 0.7117 GB, free: 2.961 MB / 0.545 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.0004106/0.527, allocations: 341.7 kB / 0.7121 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.5271, allocations: 87.38 kB / 0.7122 GB, free: 2.531 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.5287, allocations: 0.7821 MB / 0.7129 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5287, allocations: 4 kB / 0.7129 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5287, allocations: 0 / 0.7129 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5287, allocations: 0 / 0.7129 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006051/0.5294, allocations: 488.2 kB / 0.7134 GB, free: 1.215 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5294, allocations: 7.984 kB / 0.7134 GB, free: 1.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.5296, allocations: 107.9 kB / 0.7135 GB, free: 1.102 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.5296, allocations: 0 / 0.7135 GB, free: 1.102 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.5297, allocations: 31.98 kB / 0.7135 GB, free: 1.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5297, allocations: 0 / 0.7135 GB, free: 1.07 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5297, allocations: 0 / 0.7135 GB, free: 1.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.5303, allocations: 487.1 kB / 0.714 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004913/0.5308, allocations: 249.2 kB / 0.7142 GB, free: 332 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.305e-05/0.5309, allocations: 11.98 kB / 0.7142 GB, free: 320 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.5311, allocations: 8 kB / 0.7142 GB, free: 312 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.576e-05/0.5312, allocations: 39.95 kB / 0.7143 GB, free: 272 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.712e-05/0.5313, allocations: 83.98 kB / 0.7144 GB, free: 188 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006811/0.5319, allocations: 0.5692 MB / 0.7149 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5319, allocations: 0 / 0.7149 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008479/0.5328, allocations: 183.8 kB / 0.7151 GB, free: 15.44 MB / 0.5606 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.001192/0.534, allocations: 1.157 MB / 0.7162 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009192/0.5349, allocations: 0.5782 MB / 0.7168 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5349, allocations: 0 / 0.7168 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.5351, allocations: 142 kB / 0.7169 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005735/0.5357, allocations: 100.5 kB / 0.717 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007089/0.5428, allocations: 6.161 MB / 0.723 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.5434, allocations: 0.9528 MB / 0.724 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001346/0.5447, allocations: 0.5122 MB / 0.7245 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004744/0.5452, allocations: 255.2 kB / 0.7247 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of SimCode: time 6.81e-07/0.5452, allocations: 0 / 0.7247 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2307/0.7759, allocations: 14.75 MB / 0.7391 GB, free: 190.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/12.06, allocations: 5.109 kB / 0.7391 GB, free: 190.4 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f Chemical_master_Chemical.Examples.Definitions.pipe ; mkfifo Chemical_master_Chemical.Examples.Definitions.pipe ; head -c 1048576 < Chemical_master_Chemical.Examples.Definitions.pipe >> ../files/Chemical_master_Chemical.Examples.Definitions.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Examples_Definitions.fmu > Chemical_master_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.634269280999433] Failed to read output from testmodel.py, exit status != 0: 12.168866121006431 12.187396333 11.684715867 Calling exit ...