Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.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.001331/0.001331, 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.001435/0.001435, allocations: 209.6 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.386/1.386, allocations: 207.6 MB / 230.5 MB, free: 4.02 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.05047/0.05047, 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.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",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.002131/0.002131, allocations: 74.06 kB / 406.6 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2658, allocations: 50.71 MB / 457.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1415/0.4073, allocations: 130 MB / 0.5736 GB, free: 5.344 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3436/0.7509, allocations: 111.4 MB / 0.6824 GB, free: 16 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000611/0.7515, allocations: 8.875 kB / 0.6824 GB, free: 16 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.7545, allocations: 1.55 MB / 0.6839 GB, free: 0 / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003372/0.7578, allocations: 1.834 MB / 0.6857 GB, free: 15.95 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.08047/0.8383, allocations: 31.15 MB / 0.7161 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002288/0.8406, allocations: 1.414 MB / 0.7175 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.8408, allocations: 84.47 kB / 0.7176 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01668/0.8575, allocations: 9.15 MB / 0.7265 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.8581, allocations: 397.6 kB / 0.7269 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.03e-05/0.8582, allocations: 44 kB / 0.7269 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07476/0.933, allocations: 35.44 MB / 0.7615 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003767/0.9333, allocations: 117.6 kB / 0.7616 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0007406/0.9341, allocations: 310.7 kB / 0.7619 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04863/0.9827, allocations: 14.09 MB / 0.7757 GB, free: 7.785 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.9827, allocations: 0 / 0.7757 GB, free: 7.785 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.256e-06/0.9827, allocations: 0 / 0.7757 GB, free: 7.785 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.9827, allocations: 4 kB / 0.7757 GB, free: 7.781 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.007318/0.9901, allocations: 2.68 MB / 0.7783 GB, free: 5.055 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.9901, allocations: 8.031 kB / 0.7783 GB, free: 5.047 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.676e-05/0.9901, allocations: 12.66 kB / 0.7783 GB, free: 5.035 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.801e-05/0.9902, allocations: 90.52 kB / 0.7784 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006457/0.9909, allocations: 91.62 kB / 0.7785 GB, free: 4.848 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005706/0.9915, allocations: 344.9 kB / 0.7788 GB, free: 4.477 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.9915, allocations: 28.66 kB / 0.7789 GB, free: 4.449 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.9916, allocations: 32 kB / 0.7789 GB, free: 4.418 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.9929, allocations: 0.601 MB / 0.7795 GB, free: 3.793 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.9929, allocations: 0 / 0.7795 GB, free: 3.793 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.993, allocations: 16 kB / 0.7795 GB, free: 3.777 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.993, allocations: 18.72 kB / 0.7795 GB, free: 3.762 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.9944, allocations: 0.5493 MB / 0.78 GB, free: 3.215 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003141/0.9976, allocations: 2.551 MB / 0.7825 GB, free: 448 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.9988, allocations: 479.8 kB / 0.783 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005862/0.9994, allocations: 306.2 kB / 0.7833 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4297/1.429, allocations: 139 MB / 0.919 GB, free: 202.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/1.429, allocations: 38.84 kB / 0.9191 GB, free: 202.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.296e-06/1.429, allocations: 0 / 0.9191 GB, free: 202.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005448/1.435, allocations: 2.336 MB / 0.9213 GB, free: 200.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.164e-05/1.435, allocations: 55.41 kB / 0.9214 GB, free: 200.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/1.435, allocations: 251.7 kB / 0.9216 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/1.435, allocations: 33.7 kB / 0.9217 GB, free: 200 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.045e-05/1.435, allocations: 191.3 kB / 0.9218 GB, free: 199.9 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/1.435, allocations: 283.6 kB / 0.9221 GB, free: 199.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/1.435, allocations: 98.11 kB / 0.9222 GB, free: 199.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.192e-05/1.435, allocations: 354.4 kB / 0.9225 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/1.436, allocations: 269.3 kB / 0.9228 GB, free: 198.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/1.436, allocations: 399.2 kB / 0.9232 GB, free: 198.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008846/1.437, allocations: 0.6975 MB / 0.9239 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.437, allocations: 0 / 0.9239 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001243/1.438, allocations: 0.791 MB / 0.9246 GB, free: 197 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/1.438, allocations: 8 kB / 0.9246 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/1.438, allocations: 4 kB / 0.9246 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/1.438, allocations: 69.55 kB / 0.9247 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/1.439, allocations: 95.88 kB / 0.9248 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06375/1.503, allocations: 17.28 MB / 0.9417 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/1.503, allocations: 23.98 kB / 0.9417 GB, free: 179 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/1.503, allocations: 24.05 kB / 0.9417 GB, free: 179 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.0002442/1.503, allocations: 186.5 kB / 0.9419 GB, free: 178.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/1.503, allocations: 43.72 kB / 0.9419 GB, free: 178.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/1.505, allocations: 1.543 MB / 0.9435 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/1.505, allocations: 11.98 kB / 0.9435 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/1.505, allocations: 9.438 kB / 0.9435 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001104/1.506, allocations: 1.142 MB / 0.9446 GB, free: 175.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/1.508, allocations: 1.585 MB / 0.9461 GB, free: 174.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.508, allocations: 0 / 0.9461 GB, free: 174.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/1.508, allocations: 83.91 kB / 0.9462 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/1.508, allocations: 40.81 kB / 0.9463 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/1.508, allocations: 11.94 kB / 0.9463 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006698/1.509, allocations: 1.435 MB / 0.9477 GB, free: 172.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/1.509, allocations: 160 / 0.9477 GB, free: 172.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/1.511, allocations: 1.182 MB / 0.9488 GB, free: 171.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.259e-05/1.511, allocations: 115.4 kB / 0.9489 GB, free: 171.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/1.511, allocations: 18.2 kB / 0.949 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/1.511, allocations: 23.97 kB / 0.949 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/1.511, allocations: 51.94 kB / 0.949 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/1.511, allocations: 12 kB / 0.949 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001804/1.511, allocations: 243 kB / 0.9493 GB, free: 170.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/1.511, allocations: 0 / 0.9493 GB, free: 170.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008177/1.52, allocations: 3.577 MB / 0.9528 GB, free: 167.8 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.01779/1.537, allocations: 6.206 MB / 0.9588 GB, free: 162 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001648/1.539, allocations: 0.9025 MB / 0.9597 GB, free: 161.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/1.539, allocations: 4 kB / 0.9597 GB, free: 161.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007394/1.54, allocations: 467.3 kB / 0.9602 GB, free: 160.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/1.541, allocations: 385.2 kB / 0.9605 GB, free: 160.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/1.554, allocations: 6.321 MB / 0.9667 GB, free: 153.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/1.554, allocations: 0.8486 MB / 0.9675 GB, free: 152.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004609/1.554, allocations: 166.1 kB / 0.9677 GB, free: 152.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/1.554, allocations: 179.3 kB / 0.9679 GB, free: 152.5 MB / 0.6075 GB Notification: Performance of SimCode: time 7.62e-07/1.554, allocations: 4 kB / 0.9679 GB, free: 152.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.185/1.739, allocations: 132.6 MB / 1.097 GB, free: 19.62 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/18.23, allocations: 11.89 kB / 1.097 GB, free: 19.61 MB / 0.6075 GB " [Timeout remaining time 642] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.053576955979224] Failed to read output from testmodel.py, exit status != 0: 18.472197299008258 18.487701088 17.501594081 Calling exit ...