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.001511/0.001511, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001745/0.001745, allocations: 211.8 kB / 22.25 MB, free: 5.121 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.385/1.385, allocations: 230.6 MB / 256 MB, free: 7.977 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.1302/0.1302, allocations: 23.85 MB / 336.3 MB, free: 11.17 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.001944/0.001944, allocations: 63.91 kB / 471.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2833, allocations: 59.86 MB / 0.5186 GB, free: 9.621 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.03176/0.3151, allocations: 23.77 MB / 0.5418 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1631/0.4782, allocations: 142.7 MB / 0.6811 GB, free: 3.227 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003501/0.4785, allocations: 4 kB / 0.6811 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.4808, allocations: 0.7309 MB / 0.6818 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003622/0.4844, allocations: 2.173 MB / 0.684 GB, free: 312 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.486, allocations: 0.5239 MB / 0.6845 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003669/0.4897, allocations: 2.007 MB / 0.6864 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.4898, allocations: 29.95 kB / 0.6865 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005326/0.4903, allocations: 378.9 kB / 0.6868 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008174/0.4911, allocations: 498.5 kB / 0.6873 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.4912, allocations: 20 kB / 0.6873 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00267/0.4939, allocations: 1.279 MB / 0.6886 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.494, allocations: 151.3 kB / 0.6887 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.4943, allocations: 321.8 kB / 0.689 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002631/0.497, allocations: 1.845 MB / 0.6908 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.497, allocations: 0 / 0.6908 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.543e-06/0.497, allocations: 0 / 0.6908 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.497, allocations: 0 / 0.6908 GB, free: 9.254 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.001477/0.4985, allocations: 1.017 MB / 0.6918 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4985, allocations: 8.031 kB / 0.6918 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.4986, allocations: 106.7 kB / 0.6919 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006982/0.4993, allocations: 292 kB / 0.6922 GB, free: 7.797 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.4999, allocations: 366 kB / 0.6926 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.861e-05/0.4999, allocations: 33.38 kB / 0.6926 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.5, allocations: 48.34 kB / 0.6926 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.5026, allocations: 2.474 MB / 0.6951 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.5026, allocations: 0 / 0.6951 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/0.5026, allocations: 19.98 kB / 0.6951 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001019/0.5027, allocations: 89.25 kB / 0.6952 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004057/0.5068, allocations: 4.245 MB / 0.6993 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004626/0.5114, allocations: 3.525 MB / 0.7027 GB, free: 12.88 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009144/0.5123, allocations: 483 kB / 0.7032 GB, free: 12.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.5125, allocations: 112.8 kB / 0.7033 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004359/0.5169, allocations: 1.861 MB / 0.7051 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.5169, allocations: 34.55 kB / 0.7052 GB, free: 10.35 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.5169, allocations: 0 / 0.7052 GB, free: 10.35 MB / 0.545 GB Notification: Performance of matching and sorting (n=25): time 0.0008283/0.5177, allocations: 460.9 kB / 0.7056 GB, free: 9.895 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.5178, allocations: 59.41 kB / 0.7057 GB, free: 9.824 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.5188, allocations: 0.8723 MB / 0.7065 GB, free: 8.945 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.5189, allocations: 33.7 kB / 0.7065 GB, free: 8.906 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.5192, allocations: 475.1 kB / 0.707 GB, free: 8.434 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.5193, allocations: 111.1 kB / 0.7071 GB, free: 8.324 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/0.5196, allocations: 302.4 kB / 0.7074 GB, free: 8.023 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5198, allocations: 358.8 kB / 0.7077 GB, free: 7.664 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.5202, allocations: 234.4 kB / 0.708 GB, free: 7.438 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008491/0.521, allocations: 0.8883 MB / 0.7088 GB, free: 6.219 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.5224, allocations: 1.223 MB / 0.71 GB, free: 4.664 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.5224, allocations: 8 kB / 0.71 GB, free: 4.656 MB / 0.545 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001748/0.5241, allocations: 1.127 MB / 0.7111 GB, free: 3.523 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.5242, allocations: 19.98 kB / 0.7111 GB, free: 3.504 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/0.5242, allocations: 24 kB / 0.7112 GB, free: 3.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.176e-05/0.5242, allocations: 32.03 kB / 0.7112 GB, free: 3.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007381/0.525, allocations: 303.5 kB / 0.7115 GB, free: 3.152 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.109e-05/0.525, allocations: 47.8 kB / 0.7115 GB, free: 3.105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.5256, allocations: 139 kB / 0.7117 GB, free: 2.969 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.5257, allocations: 131.9 kB / 0.7118 GB, free: 2.84 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.0004274/0.5261, allocations: 333.7 kB / 0.7121 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.5263, allocations: 91.36 kB / 0.7122 GB, free: 2.414 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.528, allocations: 0.786 MB / 0.713 GB, free: 1.617 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.528, allocations: 0 / 0.713 GB, free: 1.617 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.528, allocations: 4 kB / 0.713 GB, free: 1.613 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.528, allocations: 3.984 kB / 0.713 GB, free: 1.609 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.5286, allocations: 480.2 kB / 0.7134 GB, free: 1.098 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.5286, allocations: 0 / 0.7134 GB, free: 1.098 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.5289, allocations: 107.9 kB / 0.7135 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.5289, allocations: 0 / 0.7135 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.529, allocations: 31.98 kB / 0.7136 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.529, allocations: 4 kB / 0.7136 GB, free: 0.957 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.529, allocations: 0 / 0.7136 GB, free: 0.957 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006189/0.5296, allocations: 487.1 kB / 0.714 GB, free: 476 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005389/0.5301, allocations: 249.2 kB / 0.7143 GB, free: 216 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.292e-05/0.5302, allocations: 8 kB / 0.7143 GB, free: 208 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.5305, allocations: 15.92 kB / 0.7143 GB, free: 192 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.489e-05/0.5306, allocations: 39.97 kB / 0.7143 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.5307, allocations: 91.97 kB / 0.7144 GB, free: 60 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006886/0.5314, allocations: 0.5654 MB / 0.715 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5314, allocations: 0 / 0.715 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000888/0.5323, allocations: 183.8 kB / 0.7151 GB, free: 15.32 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.001256/0.5335, allocations: 1.149 MB / 0.7163 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.5345, allocations: 0.576 MB / 0.7168 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5345, allocations: 4.062 kB / 0.7168 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.5347, allocations: 144.2 kB / 0.717 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.5354, allocations: 92.81 kB / 0.7171 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007425/0.5428, allocations: 6.161 MB / 0.7231 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.5435, allocations: 0.9566 MB / 0.724 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001402/0.5449, allocations: 0.5083 MB / 0.7245 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005035/0.5454, allocations: 259.2 kB / 0.7248 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of SimCode: time 9.92e-07/0.5454, allocations: 0 / 0.7248 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2454/0.7908, allocations: 14.74 MB / 0.7392 GB, free: 190.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/12.05, allocations: 14.84 kB / 0.7392 GB, free: 190.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.646206599994912] Failed to read output from testmodel.py, exit status != 0: 12.175483986000472 12.191971001 11.691967184 Calling exit ...