Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 110.2 kB / 16.37 MB, free: 6.012 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.001206/0.001207, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.646/1.646, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05251/0.05251, allocations: 9.089 MB / 279.6 MB, free: 2.973 MB / 222.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.001849/0.001849, allocations: 67.91 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3602, allocations: 48.15 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1486/0.5088, allocations: 128.6 MB / 0.5042 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.4556/0.9645, allocations: 111.1 MB / 0.6126 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008161/0.9654, allocations: 2.969 kB / 0.6126 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00362/0.9691, allocations: 1.374 MB / 0.614 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.9732, allocations: 1.648 MB / 0.6156 GB, free: 13.82 MB / 430.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.09403/1.067, allocations: 29.35 MB / 0.6442 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002703/1.07, allocations: 1.403 MB / 0.6456 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/1.07, allocations: 125.9 kB / 0.6457 GB, free: 8.621 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01809/1.088, allocations: 8.961 MB / 0.6545 GB, free: 60 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007147/1.089, allocations: 385.4 kB / 0.6549 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.009e-05/1.089, allocations: 44 kB / 0.6549 GB, free: 15.67 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07287/1.162, allocations: 34.95 MB / 0.689 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003186/1.163, allocations: 122.2 kB / 0.6891 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006929/1.163, allocations: 305.1 kB / 0.6894 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05818/1.221, allocations: 14.06 MB / 0.7032 GB, free: 412 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/1.221, allocations: 0 / 0.7032 GB, free: 412 kB / 494.1 MB Notification: Performance of FrontEnd: time 2.424e-06/1.221, allocations: 0 / 0.7032 GB, free: 412 kB / 494.1 MB Notification: Performance of Transformations before backend: time 1.617e-05/1.222, allocations: 0 / 0.7032 GB, free: 412 kB / 494.1 MB 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.007329/1.229, allocations: 2.582 MB / 0.7057 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.229, allocations: 8.031 kB / 0.7057 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006423/1.23, allocations: 83.39 kB / 0.7058 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/1.23, allocations: 338.1 kB / 0.7061 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/1.23, allocations: 32.66 kB / 0.7061 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/1.23, allocations: 32 kB / 0.7062 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/1.232, allocations: 0.6001 MB / 0.7067 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/1.232, allocations: 7.906 kB / 0.7068 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/1.232, allocations: 16 kB / 0.7068 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/1.232, allocations: 16 kB / 0.7068 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/1.233, allocations: 0.5444 MB / 0.7073 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/1.235, allocations: 2.547 MB / 0.7098 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/1.237, allocations: 0.5029 MB / 0.7103 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/1.237, allocations: 340.4 kB / 0.7106 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4869/1.724, allocations: 139 MB / 0.8463 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/1.724, allocations: 38.83 kB / 0.8464 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=79): time 3.997e-06/1.724, allocations: 4 kB / 0.8464 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.006049/1.73, allocations: 2.343 MB / 0.8487 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/1.73, allocations: 59.41 kB / 0.8487 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/1.731, allocations: 248.9 kB / 0.8489 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/1.731, allocations: 33.7 kB / 0.849 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/1.731, allocations: 181.2 kB / 0.8492 GB, free: 115.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/1.731, allocations: 271.7 kB / 0.8494 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/1.731, allocations: 98.09 kB / 0.8495 GB, free: 115.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.654e-05/1.731, allocations: 350.8 kB / 0.8498 GB, free: 114.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/1.732, allocations: 265.3 kB / 0.8501 GB, free: 114.6 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/1.732, allocations: 392.5 kB / 0.8505 GB, free: 114.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009538/1.733, allocations: 0.7155 MB / 0.8512 GB, free: 113.4 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.733, allocations: 0 / 0.8512 GB, free: 113.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001318/1.735, allocations: 0.7903 MB / 0.8519 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.735, allocations: 12.03 kB / 0.8519 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/1.735, allocations: 4 kB / 0.852 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/1.735, allocations: 57.69 kB / 0.852 GB, free: 112.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/1.735, allocations: 103.8 kB / 0.8521 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06369/1.799, allocations: 17.17 MB / 0.8689 GB, free: 94.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/1.799, allocations: 27.98 kB / 0.8689 GB, free: 94.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/1.8, allocations: 23.98 kB / 0.8689 GB, free: 94.74 MB / 0.5137 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.0003027/1.8, allocations: 192.8 kB / 0.8691 GB, free: 94.55 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/1.8, allocations: 39.53 kB / 0.8691 GB, free: 94.51 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/1.802, allocations: 1.545 MB / 0.8707 GB, free: 92.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/1.802, allocations: 11.75 kB / 0.8707 GB, free: 92.89 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.802, allocations: 3.984 kB / 0.8707 GB, free: 92.89 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001132/1.803, allocations: 1.143 MB / 0.8718 GB, free: 91.65 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/1.805, allocations: 1.591 MB / 0.8733 GB, free: 90.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.805, allocations: 0 / 0.8733 GB, free: 90.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/1.805, allocations: 79.89 kB / 0.8734 GB, free: 89.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/1.805, allocations: 48.83 kB / 0.8735 GB, free: 89.88 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/1.805, allocations: 17 kB / 0.8735 GB, free: 89.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007829/1.806, allocations: 1.43 MB / 0.8749 GB, free: 88.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.806, allocations: 0 / 0.8749 GB, free: 88.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/1.808, allocations: 1.17 MB / 0.876 GB, free: 87.11 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/1.808, allocations: 116.6 kB / 0.8761 GB, free: 86.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/1.808, allocations: 15.94 kB / 0.8761 GB, free: 86.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/1.808, allocations: 27.91 kB / 0.8762 GB, free: 86.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/1.809, allocations: 43.94 kB / 0.8762 GB, free: 86.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/1.809, allocations: 16.06 kB / 0.8762 GB, free: 86.88 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002165/1.809, allocations: 243 kB / 0.8765 GB, free: 86.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/1.809, allocations: 0 / 0.8765 GB, free: 86.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01102/1.82, allocations: 3.511 MB / 0.8799 GB, free: 83.58 MB / 0.5137 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.02073/1.841, allocations: 4.527 MB / 0.8843 GB, free: 79.51 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002077/1.843, allocations: 0.9568 MB / 0.8852 GB, free: 78.53 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/1.843, allocations: 0 / 0.8852 GB, free: 78.53 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000877/1.844, allocations: 495.3 kB / 0.8857 GB, free: 78.03 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/1.846, allocations: 382.2 kB / 0.8861 GB, free: 77.68 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/1.848, allocations: 1.158 MB / 0.8872 GB, free: 76.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/1.848, allocations: 0.8447 MB / 0.888 GB, free: 75.63 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005215/1.849, allocations: 167.2 kB / 0.8882 GB, free: 75.47 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/1.849, allocations: 43.42 kB / 0.8882 GB, free: 75.43 MB / 0.5137 GB Notification: Performance of SimCode: time 1.242e-06/1.849, allocations: 0 / 0.8882 GB, free: 75.43 MB / 0.5137 GB Notification: Performance of Templates: time 0.409/2.258, allocations: 125.5 MB / 1.011 GB, free: 201.8 MB / 0.5137 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)