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.001362/0.001362, 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.001534/0.001534, allocations: 209.8 kB / 22.24 MB, free: 5.262 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.455/1.455, allocations: 230.6 MB / 256 MB, free: 7.781 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.1498/0.1498, allocations: 23.99 MB / 336.4 MB, free: 10.84 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.002072/0.002072, allocations: 67.91 kB / 471.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3192, allocations: 59.9 MB / 0.5187 GB, free: 9.559 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:447:5-447: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:447:5-447: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.06839/0.3876, allocations: 23.66 MB / 0.5418 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1592/0.5467, allocations: 122 MB / 0.661 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003856/0.5471, allocations: 15.88 kB / 0.661 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.5492, allocations: 0.6064 MB / 0.6616 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00368/0.5529, allocations: 1.936 MB / 0.6635 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.5545, allocations: 0.5322 MB / 0.664 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003686/0.5582, allocations: 2.01 MB / 0.666 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.5583, allocations: 33.94 kB / 0.666 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005197/0.5588, allocations: 378.8 kB / 0.6664 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00074/0.5596, allocations: 490.6 kB / 0.6668 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.149e-05/0.5597, allocations: 16 kB / 0.6668 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.5615, allocations: 0.6707 MB / 0.6675 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.5616, allocations: 163.2 kB / 0.6676 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002594/0.5619, allocations: 222.4 kB / 0.6679 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002652/0.5646, allocations: 1.662 MB / 0.6695 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.5646, allocations: 0 / 0.6695 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.385e-06/0.5646, allocations: 0 / 0.6695 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.748e-05/0.5646, allocations: 0 / 0.6695 GB, free: 14.91 MB / 0.5137 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.00159/0.5662, allocations: 1.02 MB / 0.6705 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.5662, allocations: 8.031 kB / 0.6705 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.5663, allocations: 102.7 kB / 0.6706 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006995/0.567, allocations: 292 kB / 0.6709 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006032/0.5676, allocations: 370 kB / 0.6712 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.5677, allocations: 33.38 kB / 0.6712 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/0.5677, allocations: 48.34 kB / 0.6713 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.5705, allocations: 2.621 MB / 0.6739 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.5705, allocations: 3.938 kB / 0.6739 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.5705, allocations: 19.98 kB / 0.6739 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.5707, allocations: 93.25 kB / 0.674 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004288/0.5749, allocations: 4.226 MB / 0.6781 GB, free: 5.973 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004659/0.5796, allocations: 3.334 MB / 0.6813 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009276/0.5805, allocations: 486.2 kB / 0.6818 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.5807, allocations: 113.3 kB / 0.6819 GB, free: 1.984 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004419/0.5852, allocations: 1.846 MB / 0.6837 GB, free: 116 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.5852, allocations: 38.5 kB / 0.6838 GB, free: 68 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.5852, allocations: 0 / 0.6838 GB, free: 68 kB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.0008415/0.586, allocations: 457 kB / 0.6842 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.5861, allocations: 55.41 kB / 0.6842 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/0.5872, allocations: 0.9148 MB / 0.6851 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.5872, allocations: 29.7 kB / 0.6852 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.5876, allocations: 475.1 kB / 0.6856 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.5877, allocations: 111.2 kB / 0.6857 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.588, allocations: 306.4 kB / 0.686 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.5882, allocations: 358.8 kB / 0.6864 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.5886, allocations: 230.5 kB / 0.6866 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009378/0.5895, allocations: 0.8921 MB / 0.6875 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.5909, allocations: 1.215 MB / 0.6886 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.591, allocations: 8 kB / 0.6886 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001758/0.5927, allocations: 1.13 MB / 0.6898 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.5927, allocations: 16 kB / 0.6898 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.5928, allocations: 24 kB / 0.6898 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.681e-05/0.5928, allocations: 28 kB / 0.6898 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/0.5936, allocations: 303.5 kB / 0.6901 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-05/0.5936, allocations: 47.8 kB / 0.6902 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.5942, allocations: 142.9 kB / 0.6903 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.5943, allocations: 128.4 kB / 0.6904 GB, free: 8.531 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.0004413/0.5948, allocations: 345.1 kB / 0.6907 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.5949, allocations: 99.36 kB / 0.6908 GB, free: 8.086 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.5966, allocations: 0.7704 MB / 0.6916 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.5966, allocations: 4 kB / 0.6916 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5966, allocations: 0 / 0.6916 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5966, allocations: 3.984 kB / 0.6916 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006231/0.5972, allocations: 464.3 kB / 0.692 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5972, allocations: 4 kB / 0.692 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.5975, allocations: 107.9 kB / 0.6921 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5975, allocations: 0 / 0.6921 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.5976, allocations: 35.98 kB / 0.6922 GB, free: 6.656 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.5976, allocations: 0 / 0.6922 GB, free: 6.656 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5976, allocations: 7.984 kB / 0.6922 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006485/0.5982, allocations: 483.1 kB / 0.6926 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.5988, allocations: 253.2 kB / 0.6929 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.5988, allocations: 0 / 0.6929 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.5991, allocations: 12 kB / 0.6929 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.5992, allocations: 43.89 kB / 0.6929 GB, free: 5.848 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.5993, allocations: 91.98 kB / 0.693 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006864/0.6, allocations: 0.5692 MB / 0.6936 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6, allocations: 0 / 0.6936 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008676/0.6008, allocations: 183.8 kB / 0.6938 GB, free: 5.012 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.001235/0.6021, allocations: 1.134 MB / 0.6949 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000977/0.603, allocations: 0.5834 MB / 0.6954 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.603, allocations: 0 / 0.6954 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.6033, allocations: 136.3 kB / 0.6956 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.6038, allocations: 94.36 kB / 0.6957 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007628/0.6115, allocations: 6.157 MB / 0.7017 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.6119, allocations: 363.6 kB / 0.702 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001462/0.6133, allocations: 0.5083 MB / 0.7025 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005175/0.6139, allocations: 255.2 kB / 0.7028 GB, free: 10.98 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/0.6139, allocations: 0 / 0.7028 GB, free: 10.98 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04407/0.6579, allocations: 14.64 MB / 0.7171 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.56, allocations: 11.16 kB / 0.7171 GB, free: 12.52 MB / 0.5606 GB " [Timeout remaining time 647] (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: 15.529708018060774] Failed to read output from testmodel.py, exit status != 0: 12.681420471984893 12.910047807 12.136574689 Calling exit ...