Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.001303/0.001303, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.00141/0.00141, allocations: 209.5 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 207.6 MB / 230.5 MB, free: 4.027 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05111/0.05111, allocations: 9.141 MB / 291.5 MB, free: 7.172 MB / 238.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002168/0.002168, allocations: 74.38 kB / 406.6 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2575, allocations: 50.72 MB / 457.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4622/0.7197, allocations: 196.7 MB / 0.6387 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1266/0.8463, allocations: 142 MB / 0.7774 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009257/0.8473, allocations: 11.94 kB / 0.7774 GB, free: 14.42 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003485/0.8507, allocations: 1.619 MB / 0.779 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004117/0.8549, allocations: 1.903 MB / 0.7808 GB, free: 10.89 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.1054/0.9602, allocations: 40.6 MB / 0.8205 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002855/0.9631, allocations: 1.931 MB / 0.8224 GB, free: 208 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.9634, allocations: 134.8 kB / 0.8225 GB, free: 60 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.9649, allocations: 0.8445 MB / 0.8233 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007473/0.9656, allocations: 0.5447 MB / 0.8238 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.469e-05/0.9657, allocations: 60 kB / 0.8239 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.409/1.375, allocations: 44.81 MB / 0.8677 GB, free: 37.4 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003548/1.375, allocations: 175.8 kB / 0.8678 GB, free: 37.4 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007223/1.376, allocations: 430.2 kB / 0.8682 GB, free: 37.4 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06087/1.437, allocations: 18.86 MB / 0.8867 GB, free: 36.82 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.437, allocations: 0 / 0.8867 GB, free: 36.82 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.554e-06/1.437, allocations: 0 / 0.8867 GB, free: 36.82 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.165e-05/1.437, allocations: 0 / 0.8867 GB, free: 36.82 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01079/1.448, allocations: 3.496 MB / 0.8901 GB, free: 34.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/1.448, allocations: 10.41 kB / 0.8901 GB, free: 34.9 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.988e-05/1.448, allocations: 14.5 kB / 0.8901 GB, free: 34.9 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/1.448, allocations: 107.5 kB / 0.8902 GB, free: 34.86 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007904/1.448, allocations: 124.9 kB / 0.8903 GB, free: 34.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/1.449, allocations: 414 kB / 0.8907 GB, free: 34.58 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.351e-05/1.449, allocations: 41.44 kB / 0.8908 GB, free: 34.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/1.449, allocations: 52.3 kB / 0.8908 GB, free: 34.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/1.451, allocations: 0.8186 MB / 0.8916 GB, free: 34.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/1.451, allocations: 3.562 kB / 0.8916 GB, free: 34.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/1.451, allocations: 24.47 kB / 0.8916 GB, free: 34.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/1.451, allocations: 18.14 kB / 0.8917 GB, free: 34.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/1.453, allocations: 0.7541 MB / 0.8924 GB, free: 34.44 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002905/1.455, allocations: 3.423 MB / 0.8957 GB, free: 32.19 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/1.457, allocations: 0.6361 MB / 0.8964 GB, free: 32.15 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006523/1.457, allocations: 442.4 kB / 0.8968 GB, free: 32.13 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3316/1.789, allocations: 185.3 MB / 1.078 GB, free: 9.672 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.579e-05/1.789, allocations: 42.94 kB / 1.078 GB, free: 9.625 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 5.159e-06/1.789, allocations: 5.953 kB / 1.078 GB, free: 9.621 MB / 0.7637 GB Notification: Performance of matching and sorting (n=117): time 0.01014/1.799, allocations: 3.423 MB / 1.081 GB, free: 7.035 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/1.799, allocations: 61.84 kB / 1.081 GB, free: 6.961 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/1.8, allocations: 306.5 kB / 1.081 GB, free: 6.699 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/1.8, allocations: 41.45 kB / 1.082 GB, free: 6.66 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/1.8, allocations: 234 kB / 1.082 GB, free: 6.469 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/1.8, allocations: 399.9 kB / 1.082 GB, free: 6.133 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/1.8, allocations: 140.7 kB / 1.082 GB, free: 6.035 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002049/1.801, allocations: 364.7 kB / 1.083 GB, free: 5.695 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007282/1.801, allocations: 395.4 kB / 1.083 GB, free: 5.465 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008472/1.802, allocations: 0.5376 MB / 1.084 GB, free: 5.055 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/1.804, allocations: 0.9793 MB / 1.084 GB, free: 4.414 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.804, allocations: 2.438 kB / 1.084 GB, free: 4.414 MB / 0.7637 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002217/1.806, allocations: 1.132 MB / 1.086 GB, free: 3.648 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/1.806, allocations: 8 kB / 1.086 GB, free: 3.641 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/1.806, allocations: 4 kB / 1.086 GB, free: 3.637 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004127/1.807, allocations: 100 kB / 1.086 GB, free: 3.551 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/1.808, allocations: 206.4 kB / 1.086 GB, free: 3.367 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.46/2.268, allocations: 35.29 MB / 1.12 GB, free: 222.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/2.268, allocations: 37.95 kB / 1.12 GB, free: 222.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/2.268, allocations: 27.53 kB / 1.12 GB, free: 222.4 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004173/2.269, allocations: 227.1 kB / 1.121 GB, free: 222.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/2.269, allocations: 58.25 kB / 1.121 GB, free: 222.3 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/2.272, allocations: 2.374 MB / 1.123 GB, free: 222 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/2.272, allocations: 24.56 kB / 1.123 GB, free: 222 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/2.272, allocations: 3.938 kB / 1.123 GB, free: 222 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002075/2.274, allocations: 1.632 MB / 1.125 GB, free: 221.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/2.278, allocations: 2.451 MB / 1.127 GB, free: 221.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/2.278, allocations: 0 / 1.127 GB, free: 221.2 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004945/2.278, allocations: 119.4 kB / 1.127 GB, free: 221.2 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005024/2.279, allocations: 213.6 kB / 1.127 GB, free: 221.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/2.279, allocations: 13.91 kB / 1.127 GB, free: 221.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/2.281, allocations: 3.98 MB / 1.131 GB, free: 217.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/2.281, allocations: 3.281 kB / 1.131 GB, free: 217.4 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/2.284, allocations: 1.961 MB / 1.133 GB, free: 217.2 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/2.284, allocations: 141.9 kB / 1.133 GB, free: 217 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.523e-05/2.284, allocations: 13.44 kB / 1.133 GB, free: 217 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/2.285, allocations: 38.39 kB / 1.133 GB, free: 217 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/2.285, allocations: 71.67 kB / 1.133 GB, free: 217 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/2.285, allocations: 18.22 kB / 1.133 GB, free: 217 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002595/2.285, allocations: 257.8 kB / 1.134 GB, free: 216.9 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8e-08/2.285, allocations: 0 / 1.134 GB, free: 216.9 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01695/2.302, allocations: 5.54 MB / 1.139 GB, free: 216.6 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03603/2.338, allocations: 9.165 MB / 1.148 GB, free: 214.5 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003424/2.342, allocations: 1.484 MB / 1.149 GB, free: 214.1 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/2.342, allocations: 7.312 kB / 1.149 GB, free: 214.1 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001273/2.343, allocations: 0.7701 MB / 1.15 GB, free: 213.9 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/2.345, allocations: 0.532 MB / 1.151 GB, free: 213.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02091/2.366, allocations: 8.635 MB / 1.159 GB, free: 207.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/2.367, allocations: 0.9291 MB / 1.16 GB, free: 206.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006679/2.367, allocations: 191.8 kB / 1.16 GB, free: 206.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/2.368, allocations: 251.2 kB / 1.161 GB, free: 206.1 MB / 0.7637 GB Notification: Performance of SimCode: time 8.91e-07/2.368, allocations: 0 / 1.161 GB, free: 206.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5534/2.921, allocations: 211.3 MB / 1.367 GB, free: 265.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20/22.92, allocations: 14.64 kB / 1.367 GB, free: 265.4 MB / 0.7637 GB " [Timeout remaining time 637] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.59805813798448] Failed to read output from testmodel.py, exit status != 0: 23.199502048955765 23.210507666 21.771189902 Calling exit ...