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.001018/0.001018, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001043/0.001043, allocations: 192.7 kB / 16.25 MB, free: 6.617 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.219/1.219, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04202/0.04202, allocations: 9.084 MB / 278.5 MB, free: 12.36 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.001252/0.001252, allocations: 67.83 kB / 337.5 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06276/0.06402, allocations: 48.16 MB / 385.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.2956/0.3596, allocations: 196.9 MB / 0.5689 GB, free: 1.188 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2844/0.6441, allocations: 143.3 MB / 0.7088 GB, free: 13.82 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007173/0.6448, allocations: 9.312 kB / 0.7088 GB, free: 13.82 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.6484, allocations: 1.726 MB / 0.7105 GB, free: 12.32 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004662/0.6531, allocations: 2.398 MB / 0.7128 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08526/0.7384, allocations: 35.3 MB / 0.7473 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002197/0.7406, allocations: 1.98 MB / 0.7493 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.7409, allocations: 198.6 kB / 0.7494 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.742, allocations: 0.8094 MB / 0.7502 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005721/0.7426, allocations: 0.5485 MB / 0.7508 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.952e-05/0.7427, allocations: 64 kB / 0.7508 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06611/0.8088, allocations: 45.62 MB / 0.7954 GB, free: 5.617 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.8091, allocations: 167.5 kB / 0.7955 GB, free: 5.453 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006175/0.8097, allocations: 434.3 kB / 0.796 GB, free: 5.027 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2569/1.067, allocations: 18.79 MB / 0.8143 GB, free: 49.19 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/1.067, allocations: 0.5 kB / 0.8143 GB, free: 49.19 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.184e-06/1.067, allocations: 3.094 kB / 0.8143 GB, free: 49.19 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.205e-05/1.067, allocations: 0.6875 kB / 0.8143 GB, free: 49.19 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.009183/1.076, allocations: 3.344 MB / 0.8176 GB, free: 47.46 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/1.076, allocations: 10.3 kB / 0.8176 GB, free: 47.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007502/1.077, allocations: 125.5 kB / 0.8177 GB, free: 47.43 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/1.077, allocations: 403.5 kB / 0.8181 GB, free: 47.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/1.077, allocations: 45.56 kB / 0.8181 GB, free: 47.18 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/1.077, allocations: 47.22 kB / 0.8182 GB, free: 47.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/1.079, allocations: 0.8198 MB / 0.819 GB, free: 47.07 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/1.079, allocations: 1.828 kB / 0.819 GB, free: 47.07 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/1.079, allocations: 23.2 kB / 0.819 GB, free: 47.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/1.079, allocations: 26.28 kB / 0.819 GB, free: 47.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/1.081, allocations: 0.7526 MB / 0.8198 GB, free: 47.07 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/1.083, allocations: 3.415 MB / 0.8231 GB, free: 44.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/1.085, allocations: 0.6925 MB / 0.8238 GB, free: 44.81 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006321/1.085, allocations: 480.1 kB / 0.8242 GB, free: 44.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3072/1.392, allocations: 185.3 MB / 1.005 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/1.392, allocations: 37.81 kB / 1.005 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.176e-06/1.392, allocations: 0 / 1.005 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008394/1.401, allocations: 3.423 MB / 1.009 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/1.401, allocations: 55.97 kB / 1.009 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/1.401, allocations: 308.6 kB / 1.009 GB, free: 10.98 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/1.401, allocations: 33.02 kB / 1.009 GB, free: 10.95 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/1.401, allocations: 237.3 kB / 1.009 GB, free: 10.75 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/1.401, allocations: 380.9 kB / 1.01 GB, free: 10.43 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/1.402, allocations: 142.3 kB / 1.01 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.402, allocations: 365.8 kB / 1.01 GB, free: 9.992 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000599/1.402, allocations: 395.5 kB / 1.01 GB, free: 9.758 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006759/1.403, allocations: 0.5402 MB / 1.011 GB, free: 9.348 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/1.404, allocations: 0.9718 MB / 1.012 GB, free: 8.711 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.404, allocations: 4 kB / 1.012 GB, free: 8.707 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001929/1.406, allocations: 1.132 MB / 1.013 GB, free: 7.941 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.406, allocations: 4 kB / 1.013 GB, free: 7.938 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/1.406, allocations: 4 kB / 1.013 GB, free: 7.934 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/1.407, allocations: 99.84 kB / 1.013 GB, free: 7.848 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009484/1.408, allocations: 212.4 kB / 1.013 GB, free: 7.664 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4048/1.813, allocations: 46.88 MB / 1.059 GB, free: 186.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/1.813, allocations: 74.34 kB / 1.059 GB, free: 186.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/1.813, allocations: 24.03 kB / 1.059 GB, free: 186.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.0003315/1.814, allocations: 219.9 kB / 1.059 GB, free: 186.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/1.814, allocations: 56.5 kB / 1.059 GB, free: 186.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/1.816, allocations: 2.389 MB / 1.062 GB, free: 186.4 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/1.817, allocations: 25 kB / 1.062 GB, free: 186.4 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.817, allocations: 0 / 1.062 GB, free: 186.4 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001824/1.818, allocations: 1.654 MB / 1.063 GB, free: 186 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/1.821, allocations: 2.463 MB / 1.066 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/1.821, allocations: 0 / 1.066 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/1.822, allocations: 116.8 kB / 1.066 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004611/1.822, allocations: 212.8 kB / 1.066 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/1.822, allocations: 13.62 kB / 1.066 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/1.824, allocations: 3.991 MB / 1.07 GB, free: 181.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.824, allocations: 0 / 1.07 GB, free: 181.8 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/1.827, allocations: 1.97 MB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/1.827, allocations: 131.7 kB / 1.072 GB, free: 181.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.578e-05/1.827, allocations: 15.34 kB / 1.072 GB, free: 181.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/1.827, allocations: 60.14 kB / 1.072 GB, free: 181.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/1.827, allocations: 63.95 kB / 1.072 GB, free: 181.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/1.828, allocations: 20.55 kB / 1.072 GB, free: 181.4 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002096/1.828, allocations: 251.3 kB / 1.072 GB, free: 181.3 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/1.828, allocations: 0 / 1.072 GB, free: 181.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0143/1.842, allocations: 4.825 MB / 1.077 GB, free: 181.1 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.02709/1.869, allocations: 5.972 MB / 1.083 GB, free: 179.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003311/1.873, allocations: 1.543 MB / 1.085 GB, free: 178.3 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.873, allocations: 4 kB / 1.085 GB, free: 178.3 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001084/1.874, allocations: 0.8263 MB / 1.085 GB, free: 177.7 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/1.876, allocations: 0.5197 MB / 1.086 GB, free: 177.4 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/1.878, allocations: 2.035 MB / 1.088 GB, free: 175.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/1.879, allocations: 0.934 MB / 1.089 GB, free: 174.9 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005466/1.879, allocations: 185.2 kB / 1.089 GB, free: 174.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/1.879, allocations: 54.69 kB / 1.089 GB, free: 174.7 MB / 0.6856 GB Notification: Performance of SimCode: time 4.31e-07/1.879, allocations: 0 / 1.089 GB, free: 174.7 MB / 0.6856 GB Notification: Performance of Templates: time 0.3375/2.217, allocations: 186.5 MB / 1.271 GB, free: 381.4 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)