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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04772/0.04772, allocations: 9.097 MB / 278.9 MB, free: 12.16 MB / 238.1 MB 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.001461/0.001461, allocations: 71.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09262, allocations: 48.15 MB / 386.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.373/0.4656, allocations: 197.7 MB / 0.5703 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3725/0.8382, allocations: 143.7 MB / 0.7106 GB, free: 10.99 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009191/0.8391, allocations: 11.66 kB / 0.7106 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.8435, allocations: 1.839 MB / 0.7124 GB, free: 9.457 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005422/0.8489, allocations: 2.535 MB / 0.7149 GB, free: 7.379 MB / 478.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.1017/0.9506, allocations: 39.11 MB / 0.7531 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002675/0.9533, allocations: 1.972 MB / 0.755 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000368/0.9537, allocations: 206.7 kB / 0.7552 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.9549, allocations: 0.7941 MB / 0.756 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006359/0.9555, allocations: 0.5292 MB / 0.7565 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.87e-05/0.9556, allocations: 60 kB / 0.7566 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07735/1.033, allocations: 44.65 MB / 0.8002 GB, free: 220 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003447/1.033, allocations: 167.5 kB / 0.8003 GB, free: 52 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.3005/1.334, allocations: 424.6 kB / 0.8007 GB, free: 47.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.06423/1.398, allocations: 18.75 MB / 0.819 GB, free: 47.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.398, allocations: 0.75 kB / 0.819 GB, free: 47.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/1.398, allocations: 0 / 0.819 GB, free: 47.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.152e-05/1.398, allocations: 2.219 kB / 0.819 GB, free: 47.14 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01062/1.409, allocations: 3.346 MB / 0.8223 GB, free: 45.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.409, allocations: 11.44 kB / 0.8223 GB, free: 45.43 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/1.409, allocations: 106.5 kB / 0.8224 GB, free: 45.39 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007642/1.41, allocations: 120.6 kB / 0.8225 GB, free: 45.35 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/1.41, allocations: 409.7 kB / 0.8229 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/1.41, allocations: 41.98 kB / 0.823 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/1.41, allocations: 49.06 kB / 0.823 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/1.412, allocations: 0.8202 MB / 0.8238 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/1.412, allocations: 5.562 kB / 0.8238 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.812e-05/1.412, allocations: 17.59 kB / 0.8238 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/1.412, allocations: 22.98 kB / 0.8238 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/1.414, allocations: 0.7542 MB / 0.8246 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002885/1.417, allocations: 3.437 MB / 0.8279 GB, free: 42.76 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/1.418, allocations: 0.676 MB / 0.8286 GB, free: 42.73 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007041/1.419, allocations: 483.6 kB / 0.8291 GB, free: 42.72 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3224/1.741, allocations: 185.3 MB / 1.01 GB, free: 10.36 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/1.741, allocations: 40.62 kB / 1.01 GB, free: 10.32 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.417e-06/1.741, allocations: 4 kB / 1.01 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.009252/1.75, allocations: 3.415 MB / 1.013 GB, free: 7.715 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/1.751, allocations: 59.97 kB / 1.013 GB, free: 7.645 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005563/1.751, allocations: 304.3 kB / 1.014 GB, free: 7.387 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/1.751, allocations: 37.2 kB / 1.014 GB, free: 7.352 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/1.751, allocations: 233.2 kB / 1.014 GB, free: 7.16 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/1.752, allocations: 381.9 kB / 1.014 GB, free: 6.836 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/1.752, allocations: 143.3 kB / 1.015 GB, free: 6.742 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001871/1.752, allocations: 366 kB / 1.015 GB, free: 6.398 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007324/1.753, allocations: 395.4 kB / 1.015 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008302/1.754, allocations: 0.5362 MB / 1.016 GB, free: 5.758 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/1.756, allocations: 0.9776 MB / 1.017 GB, free: 5.113 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.756, allocations: 0 / 1.017 GB, free: 5.113 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002089/1.758, allocations: 1.129 MB / 1.018 GB, free: 4.348 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/1.758, allocations: 8 kB / 1.018 GB, free: 4.34 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/1.758, allocations: 4 kB / 1.018 GB, free: 4.336 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/1.758, allocations: 111 kB / 1.018 GB, free: 4.242 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009992/1.759, allocations: 202.7 kB / 1.018 GB, free: 4.062 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3739/2.133, allocations: 46.88 MB / 1.064 GB, free: 383.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/2.134, allocations: 48.02 kB / 1.064 GB, free: 383.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/2.134, allocations: 24.89 kB / 1.064 GB, free: 383.7 MB / 0.6856 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.0003282/2.134, allocations: 227.6 kB / 1.064 GB, free: 383.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/2.134, allocations: 61.38 kB / 1.064 GB, free: 383.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/2.137, allocations: 2.375 MB / 1.067 GB, free: 381 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/2.137, allocations: 21.22 kB / 1.067 GB, free: 381 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.137, allocations: 4 kB / 1.067 GB, free: 381 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001831/2.139, allocations: 1.646 MB / 1.068 GB, free: 379.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002949/2.142, allocations: 2.467 MB / 1.071 GB, free: 376.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/2.142, allocations: 0 / 1.071 GB, free: 376.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/2.142, allocations: 126.7 kB / 1.071 GB, free: 376.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004321/2.143, allocations: 205.9 kB / 1.071 GB, free: 376.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/2.143, allocations: 12 kB / 1.071 GB, free: 376.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/2.144, allocations: 3.992 MB / 1.075 GB, free: 372.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/2.144, allocations: 3.938 kB / 1.075 GB, free: 372.1 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/2.147, allocations: 1.968 MB / 1.077 GB, free: 370.1 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/2.147, allocations: 132.3 kB / 1.077 GB, free: 370 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.828e-05/2.147, allocations: 15.94 kB / 1.077 GB, free: 369.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/2.148, allocations: 33.34 kB / 1.077 GB, free: 369.9 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/2.148, allocations: 72.39 kB / 1.077 GB, free: 369.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/2.148, allocations: 20 kB / 1.077 GB, free: 369.8 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002107/2.148, allocations: 255.2 kB / 1.077 GB, free: 369.6 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.31e-07/2.148, allocations: 0 / 1.077 GB, free: 369.6 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01404/2.162, allocations: 4.822 MB / 1.082 GB, free: 365.4 MB / 0.6856 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.02457/2.187, allocations: 8.213 MB / 1.09 GB, free: 357.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003207/2.19, allocations: 1.55 MB / 1.092 GB, free: 356.3 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/2.19, allocations: 4 kB / 1.092 GB, free: 356.3 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/2.191, allocations: 0.8319 MB / 1.092 GB, free: 355.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/2.193, allocations: 0.5176 MB / 1.093 GB, free: 354.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/2.209, allocations: 8.352 MB / 1.101 GB, free: 346.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/2.21, allocations: 0.9332 MB / 1.102 GB, free: 345.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000575/2.21, allocations: 176.5 kB / 1.102 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/2.211, allocations: 259.3 kB / 1.102 GB, free: 345.1 MB / 0.6856 GB Notification: Performance of SimCode: time 5.01e-07/2.211, allocations: 0 / 1.102 GB, free: 345.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.242/2.453, allocations: 195.2 MB / 1.293 GB, free: 149.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.1/21.56, allocations: 0.625 kB / 1.293 GB, free: 149.5 MB / 0.6856 GB (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 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)