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.006663/0.006663, allocations: 99.09 kB / 15.73 MB, free: 6.008 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.001563/0.001564, allocations: 189.6 kB / 16.67 MB, free: 5.926 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.378/1.378, allocations: 205.1 MB / 222.5 MB, free: 4.457 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04622/0.04622, allocations: 9.088 MB / 279 MB, free: 12.05 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.002402/0.002402, allocations: 67.91 kB / 387.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2625, allocations: 48.15 MB / 435.7 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1263/0.3888, allocations: 128.6 MB / 0.5511 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3109/0.6998, allocations: 111.1 MB / 0.6596 GB, free: 288 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005065/0.7003, allocations: 8.875 kB / 0.6596 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.7031, allocations: 1.365 MB / 0.6609 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003083/0.7062, allocations: 1.657 MB / 0.6625 GB, free: 228 kB / 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.07268/0.7789, allocations: 29.35 MB / 0.6912 GB, free: 7.137 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001892/0.7808, allocations: 1.402 MB / 0.6926 GB, free: 6.129 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.7811, allocations: 134.4 kB / 0.6927 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01417/0.7953, allocations: 8.953 MB / 0.7014 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005746/0.7959, allocations: 377.6 kB / 0.7018 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.572e-05/0.796, allocations: 44 kB / 0.7018 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06244/0.8584, allocations: 34.96 MB / 0.736 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.8587, allocations: 125.6 kB / 0.7361 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004741/0.8592, allocations: 306.4 kB / 0.7364 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04301/0.9022, allocations: 14.09 MB / 0.7501 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.9022, allocations: 3.938 kB / 0.7501 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9022, allocations: 0 / 0.7501 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.497e-06/0.9023, allocations: 0 / 0.7501 GB, free: 1.492 MB / 0.5294 GB 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.00598/0.9082, allocations: 2.676 MB / 0.7528 GB, free: 14.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.9083, allocations: 8.031 kB / 0.7528 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.9089, allocations: 91.62 kB / 0.7528 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.9094, allocations: 342 kB / 0.7532 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.9094, allocations: 32.66 kB / 0.7532 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/0.9095, allocations: 32 kB / 0.7532 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.9108, allocations: 0.601 MB / 0.7538 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.9108, allocations: 4 kB / 0.7538 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.9109, allocations: 16 kB / 0.7538 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.9109, allocations: 19.19 kB / 0.7539 GB, free: 13.58 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.9122, allocations: 0.5493 MB / 0.7544 GB, free: 13.03 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.9148, allocations: 2.556 MB / 0.7569 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.9159, allocations: 0.4998 MB / 0.7574 GB, free: 9.746 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005564/0.9165, allocations: 334.3 kB / 0.7577 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4165/1.333, allocations: 139 MB / 0.8934 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/1.333, allocations: 35.56 kB / 0.8935 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.106e-06/1.333, allocations: 0 / 0.8935 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005858/1.339, allocations: 2.337 MB / 0.8957 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/1.339, allocations: 55.41 kB / 0.8958 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/1.339, allocations: 256.7 kB / 0.896 GB, free: 218 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/1.339, allocations: 30.45 kB / 0.8961 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.746e-05/1.339, allocations: 186.6 kB / 0.8962 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/1.34, allocations: 287 kB / 0.8965 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/1.34, allocations: 103.6 kB / 0.8966 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.387e-05/1.34, allocations: 346.8 kB / 0.8969 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/1.34, allocations: 271.5 kB / 0.8972 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004807/1.341, allocations: 398.1 kB / 0.8976 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008949/1.342, allocations: 0.7019 MB / 0.8983 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.342, allocations: 0 / 0.8983 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001275/1.343, allocations: 0.7868 MB / 0.899 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/1.343, allocations: 10.59 kB / 0.8991 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/1.343, allocations: 4 kB / 0.8991 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/1.343, allocations: 62.61 kB / 0.8991 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003786/1.344, allocations: 102.6 kB / 0.8992 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06466/1.408, allocations: 17.19 MB / 0.916 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/1.409, allocations: 27.97 kB / 0.916 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.555e-05/1.409, allocations: 28.05 kB / 0.9161 GB, free: 197 MB / 0.6075 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.0003377/1.409, allocations: 194.1 kB / 0.9162 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/1.409, allocations: 43.72 kB / 0.9163 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/1.411, allocations: 1.554 MB / 0.9178 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/1.411, allocations: 11.98 kB / 0.9178 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/1.411, allocations: 0 / 0.9178 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/1.412, allocations: 1.134 MB / 0.9189 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/1.414, allocations: 1.596 MB / 0.9205 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/1.414, allocations: 0 / 0.9205 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/1.415, allocations: 89.59 kB / 0.9206 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/1.415, allocations: 36.81 kB / 0.9206 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/1.415, allocations: 15.98 kB / 0.9206 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000709/1.416, allocations: 1.417 MB / 0.922 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.416, allocations: 0 / 0.922 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/1.417, allocations: 1.182 MB / 0.9232 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/1.417, allocations: 123.2 kB / 0.9233 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/1.417, allocations: 12 kB / 0.9233 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/1.418, allocations: 23.97 kB / 0.9233 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.418, allocations: 48 kB / 0.9234 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/1.418, allocations: 18.7 kB / 0.9234 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002034/1.418, allocations: 243 kB / 0.9236 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.418, allocations: 0 / 0.9236 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008176/1.426, allocations: 3.577 MB / 0.9271 GB, free: 185.8 MB / 0.6075 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.01722/1.443, allocations: 4.588 MB / 0.9316 GB, free: 181.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001836/1.445, allocations: 0.9527 MB / 0.9325 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.445, allocations: 4 kB / 0.9325 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007591/1.446, allocations: 491.3 kB / 0.933 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/1.448, allocations: 379.8 kB / 0.9333 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/1.45, allocations: 1.161 MB / 0.9345 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/1.45, allocations: 0.8486 MB / 0.9353 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003783/1.45, allocations: 167.1 kB / 0.9355 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/1.45, allocations: 43.44 kB / 0.9355 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of SimCode: time 7.11e-07/1.45, allocations: 0 / 0.9355 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.1256/1.576, allocations: 125.6 MB / 1.058 GB, free: 51.83 MB / 0.6075 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)