Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 106 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.477/1.477, allocations: 207.6 MB / 229.8 MB, free: 4.25 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.05119/0.05119, allocations: 9.151 MB / 290.8 MB, free: 7.316 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 74.38 kB / 405.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.286, allocations: 50.71 MB / 456.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4697/0.7557, allocations: 198.4 MB / 0.6396 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1289/0.8847, allocations: 144 MB / 0.7802 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007156/0.8854, allocations: 11.94 kB / 0.7802 GB, free: 11.15 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004171/0.8896, allocations: 2.09 MB / 0.7823 GB, free: 9.055 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005658/0.8952, allocations: 2.805 MB / 0.785 GB, free: 6.238 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.1024/0.9976, allocations: 41.52 MB / 0.8255 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003049/1.001, allocations: 1.974 MB / 0.8275 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/1.001, allocations: 138.8 kB / 0.8276 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/1.003, allocations: 0.8213 MB / 0.8284 GB, free: 9.617 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008813/1.003, allocations: 0.5525 MB / 0.8289 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.886e-05/1.003, allocations: 64 kB / 0.829 GB, free: 9 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3774/1.381, allocations: 47.24 MB / 0.8751 GB, free: 36.33 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000283/1.381, allocations: 173.2 kB / 0.8753 GB, free: 36.32 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006575/1.382, allocations: 424.3 kB / 0.8757 GB, free: 36.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05027/1.432, allocations: 18.8 MB / 0.8941 GB, free: 35.73 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.85e-06/1.432, allocations: 0 / 0.8941 GB, free: 35.73 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.593e-06/1.432, allocations: 0 / 0.8941 GB, free: 35.73 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.285e-05/1.432, allocations: 0 / 0.8941 GB, free: 35.73 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.009071/1.441, allocations: 3.505 MB / 0.8975 GB, free: 33.81 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/1.441, allocations: 10.44 kB / 0.8975 GB, free: 33.81 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.778e-05/1.441, allocations: 104.4 kB / 0.8976 GB, free: 33.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008476/1.442, allocations: 125.3 kB / 0.8977 GB, free: 33.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005278/1.443, allocations: 414.9 kB / 0.8981 GB, free: 33.49 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/1.443, allocations: 41.16 kB / 0.8982 GB, free: 33.49 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.061e-05/1.443, allocations: 50.14 kB / 0.8982 GB, free: 33.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/1.444, allocations: 0.8146 MB / 0.899 GB, free: 33.36 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/1.444, allocations: 9.203 kB / 0.899 GB, free: 33.36 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.546e-05/1.444, allocations: 26.22 kB / 0.899 GB, free: 33.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/1.444, allocations: 23.75 kB / 0.8991 GB, free: 33.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/1.446, allocations: 0.7514 MB / 0.8998 GB, free: 33.35 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/1.449, allocations: 3.421 MB / 0.9031 GB, free: 31.1 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/1.45, allocations: 0.6411 MB / 0.9038 GB, free: 31.06 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006073/1.451, allocations: 440.7 kB / 0.9042 GB, free: 31.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.343/1.794, allocations: 185.3 MB / 1.085 GB, free: 3.625 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/1.794, allocations: 38.94 kB / 1.085 GB, free: 3.582 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 3.387e-06/1.794, allocations: 0 / 1.085 GB, free: 3.582 MB / 0.7637 GB Notification: Performance of matching and sorting (n=117): time 0.009045/1.803, allocations: 3.421 MB / 1.089 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/1.803, allocations: 61.84 kB / 1.089 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/1.803, allocations: 310.3 kB / 1.089 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.029e-05/1.803, allocations: 37.39 kB / 1.089 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/1.803, allocations: 236 kB / 1.089 GB, free: 440 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000274/1.804, allocations: 398.6 kB / 1.09 GB, free: 96 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/1.804, allocations: 135.4 kB / 1.09 GB, free: 0 / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.1926/1.996, allocations: 365.1 kB / 1.09 GB, free: 433.8 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009412/1.997, allocations: 399.4 kB / 1.09 GB, free: 433.8 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000874/1.998, allocations: 0.5296 MB / 1.091 GB, free: 433.6 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/2, allocations: 0.9827 MB / 1.092 GB, free: 433.5 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/2, allocations: 4.812 kB / 1.092 GB, free: 433.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00206/2.002, allocations: 1.126 MB / 1.093 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/2.002, allocations: 11.22 kB / 1.093 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/2.002, allocations: 3.25 kB / 1.093 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003816/2.002, allocations: 100.5 kB / 1.093 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/2.003, allocations: 202.7 kB / 1.093 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1311/2.134, allocations: 35.29 MB / 1.128 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/2.135, allocations: 39.97 kB / 1.128 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.8e-05/2.135, allocations: 23.98 kB / 1.128 GB, free: 417.5 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.0003284/2.135, allocations: 226.9 kB / 1.128 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/2.136, allocations: 66.03 kB / 1.128 GB, free: 417.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/2.138, allocations: 2.371 MB / 1.13 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.519e-05/2.138, allocations: 23.47 kB / 1.13 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/2.138, allocations: 0 / 1.13 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001785/2.14, allocations: 1.638 MB / 1.132 GB, free: 413.1 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/2.143, allocations: 2.451 MB / 1.134 GB, free: 410.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/2.143, allocations: 4 kB / 1.134 GB, free: 410.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/2.143, allocations: 119.8 kB / 1.135 GB, free: 410.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004447/2.144, allocations: 207.2 kB / 1.135 GB, free: 410.2 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/2.144, allocations: 15.98 kB / 1.135 GB, free: 410.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/2.146, allocations: 3.973 MB / 1.139 GB, free: 405.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.146, allocations: 4.188 kB / 1.139 GB, free: 405.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/2.148, allocations: 1.966 MB / 1.141 GB, free: 403.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/2.148, allocations: 137.2 kB / 1.141 GB, free: 403.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.029e-05/2.148, allocations: 15.94 kB / 1.141 GB, free: 403.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/2.149, allocations: 35.97 kB / 1.141 GB, free: 403.7 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/2.149, allocations: 68.41 kB / 1.141 GB, free: 403.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/2.149, allocations: 19.98 kB / 1.141 GB, free: 403.7 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002255/2.149, allocations: 255.2 kB / 1.141 GB, free: 403.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 9.1e-08/2.149, allocations: 4 kB / 1.141 GB, free: 403.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0136/2.163, allocations: 5.543 MB / 1.146 GB, free: 398.4 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.02868/2.191, allocations: 9.146 MB / 1.155 GB, free: 390 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002902/2.194, allocations: 1.487 MB / 1.157 GB, free: 388.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/2.194, allocations: 4 kB / 1.157 GB, free: 388.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001027/2.195, allocations: 0.7856 MB / 1.158 GB, free: 387.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/2.198, allocations: 0.5032 MB / 1.158 GB, free: 387.1 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/2.215, allocations: 8.627 MB / 1.167 GB, free: 378.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/2.215, allocations: 0.9371 MB / 1.167 GB, free: 377.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005236/2.216, allocations: 190.6 kB / 1.168 GB, free: 377.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/2.216, allocations: 255.4 kB / 1.168 GB, free: 377 MB / 0.7637 GB Notification: Performance of SimCode: time 9.72e-07/2.216, allocations: 0 / 1.168 GB, free: 377 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2984/2.514, allocations: 210.8 MB / 1.374 GB, free: 165.7 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/22.62, allocations: 15.86 kB / 1.374 GB, free: 165.7 MB / 0.7637 GB " [Timeout remaining time 637] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.34633306413889] Failed to read output from testmodel.py, exit status != 0: 22.84624160081148 22.864179958 21.428354442 Calling exit ...