Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.0014/0.0014, allocations: 116.8 kB / 17.17 MB, free: 6 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.001482/0.001482, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.368/1.368, allocations: 207.6 MB / 230.5 MB, free: 4.004 MB / 174.1 MB " [Timeout remaining time 179] 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.05208/0.05208, allocations: 9.149 MB / 291.5 MB, free: 7.168 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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.002331/0.002331, allocations: 74.08 kB / 406.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2601, allocations: 50.72 MB / 457.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1484/0.4085, allocations: 129.1 MB / 0.5727 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3366/0.7451, allocations: 111.3 MB / 0.6814 GB, free: 36 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006065/0.7457, allocations: 16.72 kB / 0.6814 GB, free: 32 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.7488, allocations: 1.549 MB / 0.6829 GB, free: 16 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00363/0.7524, allocations: 1.831 MB / 0.6847 GB, free: 15.96 MB / 494.1 MB [/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.07762/0.83, allocations: 31.16 MB / 0.7151 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00222/0.8322, allocations: 1.41 MB / 0.7165 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.8325, allocations: 81.73 kB / 0.7166 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01625/0.8487, allocations: 9.158 MB / 0.7255 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006561/0.8494, allocations: 396.9 kB / 0.7259 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.235e-05/0.8495, allocations: 40 kB / 0.7259 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06282/0.9123, allocations: 35.43 MB / 0.7605 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.9126, allocations: 125 kB / 0.7606 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.913, allocations: 302.7 kB / 0.7609 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04279/0.9558, allocations: 14.1 MB / 0.7747 GB, free: 8.172 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.9558, allocations: 0 / 0.7747 GB, free: 8.172 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9558, allocations: 0 / 0.7747 GB, free: 8.172 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.9559, allocations: 0 / 0.7747 GB, free: 8.172 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006815/0.9627, allocations: 2.684 MB / 0.7773 GB, free: 5.441 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.9627, allocations: 8.031 kB / 0.7773 GB, free: 5.434 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.785e-05/0.9627, allocations: 12.66 kB / 0.7773 GB, free: 5.422 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.57e-05/0.9628, allocations: 86.08 kB / 0.7774 GB, free: 5.332 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006046/0.9634, allocations: 88.52 kB / 0.7775 GB, free: 5.246 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.964, allocations: 350.1 kB / 0.7778 GB, free: 4.867 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.9641, allocations: 28.66 kB / 0.7779 GB, free: 4.84 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.9641, allocations: 36 kB / 0.7779 GB, free: 4.805 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.9655, allocations: 0.601 MB / 0.7785 GB, free: 4.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.9655, allocations: 0 / 0.7785 GB, free: 4.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.9655, allocations: 12 kB / 0.7785 GB, free: 4.168 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.32e-05/0.9655, allocations: 18.44 kB / 0.7785 GB, free: 4.152 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.9669, allocations: 0.5454 MB / 0.779 GB, free: 3.609 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00285/0.9697, allocations: 2.551 MB / 0.7815 GB, free: 0.832 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.9709, allocations: 487.8 kB / 0.782 GB, free: 356 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.9715, allocations: 306.1 kB / 0.7823 GB, free: 52 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.403/1.374, allocations: 139 MB / 0.918 GB, free: 203 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/1.375, allocations: 38.83 kB / 0.9181 GB, free: 203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.455e-06/1.375, allocations: 3.969 kB / 0.9181 GB, free: 203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005067/1.38, allocations: 2.333 MB / 0.9203 GB, free: 200.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/1.38, allocations: 58.97 kB / 0.9204 GB, free: 200.6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/1.38, allocations: 252.8 kB / 0.9206 GB, free: 200.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/1.38, allocations: 37.7 kB / 0.9207 GB, free: 200.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/1.38, allocations: 187.3 kB / 0.9209 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/1.38, allocations: 276.9 kB / 0.9211 GB, free: 199.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/1.38, allocations: 102.1 kB / 0.9212 GB, free: 199.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.92e-05/1.38, allocations: 357.3 kB / 0.9216 GB, free: 199.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/1.381, allocations: 270.3 kB / 0.9218 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/1.381, allocations: 396.4 kB / 0.9222 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008556/1.382, allocations: 0.699 MB / 0.9229 GB, free: 198 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/1.382, allocations: 4 kB / 0.9229 GB, free: 198 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001169/1.383, allocations: 0.7919 MB / 0.9237 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/1.383, allocations: 4 kB / 0.9237 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/1.383, allocations: 4 kB / 0.9237 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/1.383, allocations: 57.69 kB / 0.9237 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/1.384, allocations: 106.6 kB / 0.9238 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06134/1.445, allocations: 17.2 MB / 0.9406 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/1.445, allocations: 23.98 kB / 0.9406 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/1.445, allocations: 24.05 kB / 0.9407 GB, free: 179.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (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 (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002505/1.446, allocations: 190.8 kB / 0.9408 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/1.446, allocations: 47.66 kB / 0.9409 GB, free: 179 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/1.447, allocations: 1.548 MB / 0.9424 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/1.447, allocations: 14.72 kB / 0.9424 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.447, allocations: 6.188 kB / 0.9424 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001086/1.448, allocations: 1.134 MB / 0.9435 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/1.45, allocations: 1.593 MB / 0.9451 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/1.45, allocations: 0 / 0.9451 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/1.45, allocations: 75.98 kB / 0.9452 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/1.451, allocations: 48.73 kB / 0.9452 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/1.451, allocations: 11.94 kB / 0.9452 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006795/1.451, allocations: 1.418 MB / 0.9466 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.451, allocations: 3.938 kB / 0.9466 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/1.453, allocations: 1.189 MB / 0.9478 GB, free: 171.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.038e-05/1.453, allocations: 119.5 kB / 0.9479 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.671e-05/1.453, allocations: 12 kB / 0.9479 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/1.453, allocations: 23.97 kB / 0.9479 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/1.453, allocations: 55.88 kB / 0.948 GB, free: 171.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/1.453, allocations: 12 kB / 0.948 GB, free: 171.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001759/1.454, allocations: 243 kB / 0.9482 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/1.454, allocations: 0 / 0.9482 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007862/1.461, allocations: 3.578 MB / 0.9517 GB, free: 168 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01595/1.477, allocations: 6.196 MB / 0.9578 GB, free: 162.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001583/1.479, allocations: 0.8983 MB / 0.9586 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.479, allocations: 3.938 kB / 0.9586 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006915/1.48, allocations: 471.8 kB / 0.9591 GB, free: 160.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/1.481, allocations: 368.5 kB / 0.9594 GB, free: 160.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/1.492, allocations: 6.336 MB / 0.9656 GB, free: 154 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/1.492, allocations: 0.8526 MB / 0.9665 GB, free: 153.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003759/1.493, allocations: 162.5 kB / 0.9666 GB, free: 152.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/1.493, allocations: 175.4 kB / 0.9668 GB, free: 152.8 MB / 0.6075 GB Notification: Performance of SimCode: time 6.12e-07/1.493, allocations: 4 kB / 0.9668 GB, free: 152.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1694/1.662, allocations: 132.2 MB / 1.096 GB, free: 20.39 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.55/18.22, allocations: 12.02 kB / 1.096 GB, free: 20.38 MB / 0.6075 GB " [Timeout remaining time 642] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.080158755998127] Failed to read output from testmodel.py, exit status != 0: 18.450720295018982 18.459001104 17.500939253 Calling exit ...