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: translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009975/0.0009976, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 192.5 kB / 16.14 MB, free: 6.711 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.254/1.254, allocations: 205.1 MB / 222 MB, free: 4.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04269/0.04269, allocations: 9.087 MB / 278.4 MB, free: 12.29 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.001209/0.001209, allocations: 59.92 kB / 337.3 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06551/0.06673, allocations: 48.17 MB / 385.5 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3089/0.3756, allocations: 200.4 MB / 0.5722 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2913/0.667, allocations: 145.9 MB / 0.7147 GB, free: 8.762 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006876/0.6677, allocations: 6.906 kB / 0.7147 GB, free: 8.758 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003479/0.6712, allocations: 1.589 MB / 0.7162 GB, free: 7.402 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004481/0.6757, allocations: 2.254 MB / 0.7184 GB, free: 5.289 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08499/0.7607, allocations: 33.19 MB / 0.7509 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002607/0.7633, allocations: 2.608 MB / 0.7534 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.7636, allocations: 160.7 kB / 0.7536 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.7647, allocations: 0.6923 MB / 0.7542 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005852/0.7653, allocations: 0.5394 MB / 0.7548 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.121e-05/0.7654, allocations: 32 kB / 0.7548 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06548/0.8308, allocations: 41.41 MB / 0.7952 GB, free: 6.449 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002764/0.8312, allocations: 143.4 kB / 0.7954 GB, free: 6.309 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006522/0.8318, allocations: 394.3 kB / 0.7957 GB, free: 5.922 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2642/1.096, allocations: 18.2 MB / 0.8135 GB, free: 45.07 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/1.096, allocations: 0 / 0.8135 GB, free: 45.07 MB / 0.545 GB Notification: Performance of FrontEnd: time 8.81e-07/1.096, allocations: 1.969 kB / 0.8135 GB, free: 45.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.558e-05/1.096, allocations: 0 / 0.8135 GB, free: 45.07 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.009809/1.106, allocations: 3.349 MB / 0.8168 GB, free: 43.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/1.106, allocations: 9.844 kB / 0.8168 GB, free: 43.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007865/1.107, allocations: 120 kB / 0.8169 GB, free: 43.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/1.107, allocations: 402.9 kB / 0.8173 GB, free: 43.15 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/1.107, allocations: 42.97 kB / 0.8173 GB, free: 43.15 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/1.107, allocations: 47.44 kB / 0.8174 GB, free: 43.15 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/1.109, allocations: 0.8218 MB / 0.8182 GB, free: 43.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/1.109, allocations: 5.562 kB / 0.8182 GB, free: 43.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/1.109, allocations: 21.31 kB / 0.8182 GB, free: 43.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/1.109, allocations: 21.72 kB / 0.8182 GB, free: 43.04 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/1.111, allocations: 0.7545 MB / 0.819 GB, free: 43.04 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/1.113, allocations: 3.414 MB / 0.8223 GB, free: 40.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/1.115, allocations: 0.6843 MB / 0.823 GB, free: 40.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006528/1.115, allocations: 483.6 kB / 0.8234 GB, free: 40.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3184/1.434, allocations: 185.3 MB / 1.004 GB, free: 11.93 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/1.434, allocations: 40.44 kB / 1.004 GB, free: 11.88 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 4.208e-06/1.434, allocations: 4.656 kB / 1.004 GB, free: 11.88 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008244/1.442, allocations: 3.403 MB / 1.008 GB, free: 9.293 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/1.442, allocations: 61.75 kB / 1.008 GB, free: 9.223 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/1.442, allocations: 309.1 kB / 1.008 GB, free: 8.965 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/1.442, allocations: 39.14 kB / 1.008 GB, free: 8.93 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/1.443, allocations: 228.5 kB / 1.008 GB, free: 8.742 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/1.443, allocations: 384 kB / 1.009 GB, free: 8.418 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/1.443, allocations: 144 kB / 1.009 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001353/1.443, allocations: 370.5 kB / 1.009 GB, free: 7.977 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000608/1.444, allocations: 390.2 kB / 1.01 GB, free: 7.746 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007292/1.444, allocations: 0.5406 MB / 1.01 GB, free: 7.332 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/1.446, allocations: 0.9703 MB / 1.011 GB, free: 6.695 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/1.446, allocations: 2.125 kB / 1.011 GB, free: 6.695 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001833/1.448, allocations: 1.129 MB / 1.012 GB, free: 5.934 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/1.448, allocations: 12.06 kB / 1.012 GB, free: 5.922 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/1.448, allocations: 4 kB / 1.012 GB, free: 5.918 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/1.448, allocations: 101.2 kB / 1.012 GB, free: 5.832 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009661/1.449, allocations: 203.6 kB / 1.012 GB, free: 5.652 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4329/1.882, allocations: 46.37 MB / 1.058 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/1.883, allocations: 67.47 kB / 1.058 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.876e-05/1.883, allocations: 30.55 kB / 1.058 GB, free: 183.8 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.0003402/1.883, allocations: 221.3 kB / 1.058 GB, free: 183.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/1.883, allocations: 57.5 kB / 1.058 GB, free: 183.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002645/1.886, allocations: 2.393 MB / 1.06 GB, free: 183.4 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/1.886, allocations: 24.48 kB / 1.061 GB, free: 183.4 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/1.886, allocations: 0 / 1.061 GB, free: 183.4 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001813/1.888, allocations: 1.654 MB / 1.062 GB, free: 183 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/1.891, allocations: 2.467 MB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.891, allocations: 6.203 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/1.891, allocations: 117 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005/1.892, allocations: 220.7 kB / 1.065 GB, free: 182.5 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/1.892, allocations: 10.81 kB / 1.065 GB, free: 182.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/1.893, allocations: 3.786 MB / 1.069 GB, free: 179 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.893, allocations: 2.531 kB / 1.069 GB, free: 179 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002581/1.896, allocations: 1.965 MB / 1.07 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/1.896, allocations: 144.3 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/1.896, allocations: 11.75 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/1.897, allocations: 55.94 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.897, allocations: 62.88 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/1.897, allocations: 18.95 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002161/1.897, allocations: 255.2 kB / 1.071 GB, free: 178.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7.21e-07/1.897, allocations: 2.219 kB / 1.071 GB, free: 178.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01326/1.91, allocations: 4.826 MB / 1.076 GB, free: 178.3 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.0246/1.935, allocations: 5.961 MB / 1.082 GB, free: 176.4 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002651/1.938, allocations: 1.519 MB / 1.083 GB, free: 175.4 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.938, allocations: 0 / 1.083 GB, free: 175.4 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001027/1.939, allocations: 0.8282 MB / 1.084 GB, free: 174.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/1.941, allocations: 0.5136 MB / 1.084 GB, free: 174.6 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/1.943, allocations: 2.036 MB / 1.086 GB, free: 172.9 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/1.943, allocations: 0.9333 MB / 1.087 GB, free: 172 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005002/1.944, allocations: 185.9 kB / 1.087 GB, free: 171.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/1.944, allocations: 60.5 kB / 1.087 GB, free: 171.9 MB / 0.6856 GB Notification: Performance of SimCode: time 9.02e-07/1.944, allocations: 0 / 1.087 GB, free: 171.9 MB / 0.6856 GB Notification: Performance of Templates: time 0.3396/2.284, allocations: 186.2 MB / 1.269 GB, free: 381.3 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)