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.001348/0.001348, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001627/0.001627, allocations: 212.1 kB / 22.24 MB, free: 5.242 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.542/1.542, allocations: 230.6 MB / 256 MB, free: 7.793 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.1711/0.1711, allocations: 23.88 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.002816/0.002816, allocations: 64.19 kB / 471.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4678/0.4706, allocations: 59.86 MB / 0.5185 GB, free: 9.523 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.07457/0.5452, allocations: 23.66 MB / 0.5416 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1772/0.7224, allocations: 122.1 MB / 0.6609 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004172/0.7228, allocations: 4 kB / 0.6609 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002528/0.7253, allocations: 0.6609 MB / 0.6615 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003968/0.7293, allocations: 1.913 MB / 0.6634 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.7311, allocations: 0.5275 MB / 0.6639 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003936/0.735, allocations: 2.003 MB / 0.6658 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.7351, allocations: 29.95 kB / 0.6659 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005405/0.7357, allocations: 386.8 kB / 0.6662 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000819/0.7365, allocations: 486.5 kB / 0.6667 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.763e-05/0.7365, allocations: 16 kB / 0.6667 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.7385, allocations: 0.6746 MB / 0.6674 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.7387, allocations: 163.3 kB / 0.6675 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.7389, allocations: 226.4 kB / 0.6677 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002409/0.7413, allocations: 1.662 MB / 0.6694 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.7413, allocations: 0 / 0.6694 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of FrontEnd: time 7.694e-06/0.7413, allocations: 3.984 kB / 0.6694 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.527e-05/0.7413, allocations: 0 / 0.6694 GB, free: 15.06 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.001758/0.7431, allocations: 1.013 MB / 0.6704 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.7432, allocations: 8.031 kB / 0.6704 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/0.7433, allocations: 102.7 kB / 0.6705 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007303/0.744, allocations: 292 kB / 0.6707 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.7446, allocations: 366 kB / 0.6711 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.804e-05/0.7447, allocations: 29.38 kB / 0.6711 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.528e-05/0.7447, allocations: 52.36 kB / 0.6712 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002842/0.7476, allocations: 2.621 MB / 0.6737 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.7476, allocations: 0 / 0.6737 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.743e-05/0.7477, allocations: 19.98 kB / 0.6738 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.7478, allocations: 93.25 kB / 0.6738 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004737/0.7525, allocations: 4.234 MB / 0.678 GB, free: 6.129 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005029/0.7575, allocations: 3.323 MB / 0.6812 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.7586, allocations: 493.8 kB / 0.6817 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002311/0.7588, allocations: 116.8 kB / 0.6818 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004621/0.7634, allocations: 1.838 MB / 0.6836 GB, free: 284 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.7635, allocations: 30.56 kB / 0.6836 GB, free: 244 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 2.334e-06/0.7635, allocations: 4 kB / 0.6836 GB, free: 240 kB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.000901/0.7644, allocations: 473.7 kB / 0.6841 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.7644, allocations: 59.41 kB / 0.6841 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.7656, allocations: 0.9109 MB / 0.685 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.51e-05/0.7656, allocations: 29.7 kB / 0.6851 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003871/0.766, allocations: 479.1 kB / 0.6855 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.7661, allocations: 107.2 kB / 0.6856 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.7665, allocations: 302.4 kB / 0.6859 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002295/0.7667, allocations: 358.8 kB / 0.6862 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.7671, allocations: 230.5 kB / 0.6865 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.7683, allocations: 0.8921 MB / 0.6873 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.7699, allocations: 1.215 MB / 0.6885 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.7699, allocations: 8 kB / 0.6885 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001861/0.7718, allocations: 1.127 MB / 0.6896 GB, free: 9.367 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.7718, allocations: 18.97 kB / 0.6897 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/0.7718, allocations: 28.16 kB / 0.6897 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.828e-05/0.7719, allocations: 31.94 kB / 0.6897 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/0.7727, allocations: 303.5 kB / 0.69 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.532e-05/0.7727, allocations: 43.86 kB / 0.69 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006303/0.7733, allocations: 146.9 kB / 0.6902 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/0.7735, allocations: 132 kB / 0.6903 GB, free: 8.68 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.0004858/0.774, allocations: 337.1 kB / 0.6906 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.7741, allocations: 87.38 kB / 0.6907 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.7759, allocations: 0.7863 MB / 0.6915 GB, free: 7.457 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.7759, allocations: 3.938 kB / 0.6915 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.7759, allocations: 7.938 kB / 0.6915 GB, free: 7.445 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.7759, allocations: 3.984 kB / 0.6915 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007474/0.7766, allocations: 456.3 kB / 0.6919 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.7766, allocations: 0 / 0.6919 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.7769, allocations: 107.9 kB / 0.692 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.7769, allocations: 0 / 0.692 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.777, allocations: 31.98 kB / 0.6921 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.777, allocations: 0 / 0.6921 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.777, allocations: 8 kB / 0.6921 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006698/0.7777, allocations: 482.9 kB / 0.6925 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005765/0.7782, allocations: 253.2 kB / 0.6928 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.257e-05/0.7783, allocations: 4 kB / 0.6928 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.7785, allocations: 12 kB / 0.6928 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.7786, allocations: 39.95 kB / 0.6928 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7787, allocations: 83.98 kB / 0.6929 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007355/0.7795, allocations: 0.5654 MB / 0.6935 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.7795, allocations: 0 / 0.6935 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008732/0.7804, allocations: 187.8 kB / 0.6936 GB, free: 5.18 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.001393/0.7817, allocations: 1.141 MB / 0.6948 GB, free: 4.012 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.7828, allocations: 0.5868 MB / 0.6953 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7828, allocations: 0 / 0.6953 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.7831, allocations: 135.8 kB / 0.6955 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.0006013/0.7837, allocations: 93.64 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.008565/0.7922, allocations: 6.158 MB / 0.7016 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.7927, allocations: 367.6 kB / 0.7019 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001532/0.7943, allocations: 0.5044 MB / 0.7024 GB, free: 11.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005296/0.7948, allocations: 259.2 kB / 0.7026 GB, free: 11.13 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/0.7948, allocations: 0 / 0.7026 GB, free: 11.13 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04811/0.8429, allocations: 14.64 MB / 0.7169 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/13.19, allocations: 4.062 kB / 0.7169 GB, free: 12.68 MB / 0.5606 GB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_Definitions_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_Definitions.fmu > Chemical_Chemical.Examples.Definitions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.3737282929942] Failed to read output from testmodel.py, exit status != 0: 13.30594845302403 13.553179863 12.587612653 Calling exit ...