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.001345/0.001345, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001529/0.001529, allocations: 217.1 kB / 22.25 MB, free: 5.105 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.414/1.414, allocations: 230.6 MB / 256 MB, free: 7.82 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.1438/0.1438, allocations: 23.93 MB / 336.4 MB, free: 10.94 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.002017/0.002017, allocations: 67.91 kB / 471.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3615, allocations: 59.87 MB / 0.5186 GB, free: 9.555 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.0684/0.4299, allocations: 23.58 MB / 0.5416 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1689/0.5988, allocations: 122 MB / 0.6608 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000538/0.5993, allocations: 11.88 kB / 0.6608 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.6017, allocations: 0.6026 MB / 0.6614 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004113/0.6058, allocations: 1.951 MB / 0.6633 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.6076, allocations: 0.5205 MB / 0.6638 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003921/0.6115, allocations: 2.002 MB / 0.6657 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.6116, allocations: 25.91 kB / 0.6658 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006182/0.6123, allocations: 390.8 kB / 0.6661 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008812/0.6131, allocations: 494.5 kB / 0.6666 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.6132, allocations: 20 kB / 0.6666 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.6152, allocations: 0.698 MB / 0.6673 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.6154, allocations: 159.3 kB / 0.6675 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.6157, allocations: 234.2 kB / 0.6677 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002864/0.6186, allocations: 1.655 MB / 0.6693 GB, free: 15.14 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.6186, allocations: 4 kB / 0.6693 GB, free: 15.13 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6186, allocations: 0 / 0.6693 GB, free: 15.13 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 3.062e-05/0.6186, allocations: 0 / 0.6693 GB, free: 15.13 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.001988/0.6206, allocations: 1.017 MB / 0.6703 GB, free: 14.08 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.6206, allocations: 8.031 kB / 0.6703 GB, free: 14.07 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001703/0.6208, allocations: 106.7 kB / 0.6704 GB, free: 13.96 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000777/0.6216, allocations: 288 kB / 0.6707 GB, free: 13.68 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007674/0.6224, allocations: 370 kB / 0.671 GB, free: 13.29 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.6224, allocations: 33.38 kB / 0.6711 GB, free: 13.26 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.294e-05/0.6225, allocations: 44.36 kB / 0.6711 GB, free: 13.22 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003047/0.6255, allocations: 2.624 MB / 0.6737 GB, free: 10.54 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.6256, allocations: 3.984 kB / 0.6737 GB, free: 10.53 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.6256, allocations: 19.98 kB / 0.6737 GB, free: 10.51 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001184/0.6257, allocations: 89.27 kB / 0.6738 GB, free: 10.43 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/0.6304, allocations: 4.234 MB / 0.6779 GB, free: 6.188 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005377/0.6358, allocations: 3.331 MB / 0.6812 GB, free: 2.797 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009437/0.6368, allocations: 486 kB / 0.6816 GB, free: 2.316 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.637, allocations: 112.8 kB / 0.6817 GB, free: 2.203 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004644/0.6416, allocations: 1.842 MB / 0.6835 GB, free: 344 kB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/0.6417, allocations: 34.56 kB / 0.6836 GB, free: 300 kB / 0.5138 GB Notification: Performance of pre-optimization done (n=25): time 1.713e-06/0.6417, allocations: 0 / 0.6836 GB, free: 300 kB / 0.5138 GB Notification: Performance of matching and sorting (n=25): time 0.0008694/0.6425, allocations: 469.7 kB / 0.684 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.6426, allocations: 51.41 kB / 0.6841 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.6437, allocations: 0.9148 MB / 0.685 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.6438, allocations: 29.7 kB / 0.685 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003939/0.6442, allocations: 479.1 kB / 0.6855 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.6443, allocations: 107.2 kB / 0.6856 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003493/0.6446, allocations: 306.4 kB / 0.6858 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001758/0.6448, allocations: 354.7 kB / 0.6862 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.6452, allocations: 234.5 kB / 0.6864 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009393/0.6461, allocations: 0.8921 MB / 0.6873 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.6477, allocations: 1.223 MB / 0.6885 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.6477, allocations: 4 kB / 0.6885 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001884/0.6496, allocations: 1.127 MB / 0.6896 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.6496, allocations: 16 kB / 0.6896 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.6496, allocations: 24 kB / 0.6896 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.795e-05/0.6497, allocations: 32 kB / 0.6896 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000753/0.6504, allocations: 303.5 kB / 0.6899 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.43e-05/0.6505, allocations: 43.86 kB / 0.69 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000648/0.6511, allocations: 142.9 kB / 0.6901 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.6513, allocations: 124 kB / 0.6902 GB, free: 8.754 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.0006115/0.6519, allocations: 341.4 kB / 0.6906 GB, free: 8.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.6521, allocations: 91.38 kB / 0.6906 GB, free: 8.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.6537, allocations: 0.79 MB / 0.6914 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.6537, allocations: 4 kB / 0.6914 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.6537, allocations: 0 / 0.6914 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.6537, allocations: 0 / 0.6914 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006367/0.6544, allocations: 464.3 kB / 0.6919 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6544, allocations: 0 / 0.6919 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.6546, allocations: 104 kB / 0.692 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.537e-06/0.6546, allocations: 4 kB / 0.692 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.6547, allocations: 31.97 kB / 0.692 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6547, allocations: 4 kB / 0.692 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.6547, allocations: 3.938 kB / 0.692 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006396/0.6553, allocations: 486.9 kB / 0.6925 GB, free: 6.383 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000535/0.6559, allocations: 241.2 kB / 0.6927 GB, free: 6.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.855e-05/0.656, allocations: 8 kB / 0.6927 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.6562, allocations: 11.98 kB / 0.6927 GB, free: 6.117 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.703e-05/0.6562, allocations: 47.89 kB / 0.6928 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.6564, allocations: 87.98 kB / 0.6929 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006681/0.657, allocations: 0.5654 MB / 0.6934 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.657, allocations: 0 / 0.6934 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008817/0.6579, allocations: 179.8 kB / 0.6936 GB, free: 5.246 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.00132/0.6592, allocations: 1.149 MB / 0.6947 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001008/0.6602, allocations: 0.5836 MB / 0.6953 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6602, allocations: 0 / 0.6953 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.6604, allocations: 143.8 kB / 0.6954 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.661, allocations: 89.67 kB / 0.6955 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008087/0.6691, allocations: 6.153 MB / 0.7015 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.6695, allocations: 363.7 kB / 0.7018 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001384/0.6709, allocations: 0.5082 MB / 0.7023 GB, free: 11.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004809/0.6714, allocations: 255.2 kB / 0.7026 GB, free: 11.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/0.6714, allocations: 0 / 0.7026 GB, free: 11.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.7175, allocations: 15.02 MB / 0.7173 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.26, allocations: 10.88 kB / 0.7173 GB, free: 12.36 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: 15.30673771200236] Failed to read output from testmodel.py, exit status != 0: 12.368084037007065 12.655024838 11.771000671 Calling exit ...