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.006821/0.006821, allocations: 105.2 kB / 15.74 MB, free: 5.996 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.001247/0.001247, allocations: 197 kB / 16.67 MB, free: 5.918 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.451/1.451, allocations: 205.1 MB / 222.5 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04437/0.04437, allocations: 9.091 MB / 279 MB, free: 12.06 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.001488/0.001488, allocations: 74.48 kB / 387.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2791, 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.14/0.4191, allocations: 128.7 MB / 0.5511 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4005/0.8196, allocations: 111 MB / 0.6596 GB, free: 272 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007086/0.8204, allocations: 8.594 kB / 0.6596 GB, free: 272 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002963/0.8234, allocations: 1.373 MB / 0.6609 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003664/0.8271, allocations: 1.657 MB / 0.6625 GB, free: 208 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.07733/0.9045, allocations: 29.34 MB / 0.6912 GB, free: 7.137 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.9065, allocations: 1.406 MB / 0.6926 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.9068, allocations: 130.4 kB / 0.6927 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01563/0.9225, allocations: 8.962 MB / 0.7014 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005438/0.9231, allocations: 383.1 kB / 0.7018 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.9231, allocations: 40 kB / 0.7018 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0637/0.9868, allocations: 34.96 MB / 0.736 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.9871, allocations: 111.7 kB / 0.7361 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005491/0.9877, allocations: 316.2 kB / 0.7364 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04648/1.034, allocations: 14.05 MB / 0.7501 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/1.034, allocations: 4 kB / 0.7501 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.684e-06/1.034, allocations: 0 / 0.7501 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.174e-05/1.034, allocations: 4 kB / 0.7501 GB, free: 1.551 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.0067/1.041, allocations: 2.575 MB / 0.7526 GB, free: 14.93 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.041, allocations: 12.03 kB / 0.7526 GB, free: 14.92 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006493/1.042, allocations: 87.39 kB / 0.7527 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005514/1.042, allocations: 330.9 kB / 0.753 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/1.042, allocations: 36.66 kB / 0.7531 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.138e-05/1.042, allocations: 28 kB / 0.7531 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/1.044, allocations: 0.604 MB / 0.7537 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/1.044, allocations: 4 kB / 0.7537 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/1.044, allocations: 16 kB / 0.7537 GB, free: 13.77 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/1.044, allocations: 21.89 kB / 0.7537 GB, free: 13.76 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/1.045, allocations: 0.5481 MB / 0.7543 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/1.048, allocations: 2.551 MB / 0.7567 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/1.049, allocations: 0.5016 MB / 0.7572 GB, free: 9.938 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005529/1.05, allocations: 338.8 kB / 0.7576 GB, free: 9.605 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4387/1.489, allocations: 139 MB / 0.8933 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/1.489, allocations: 39.44 kB / 0.8933 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 5.13e-06/1.489, allocations: 0 / 0.8933 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005997/1.495, allocations: 2.328 MB / 0.8956 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/1.495, allocations: 58.06 kB / 0.8957 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/1.495, allocations: 252.7 kB / 0.8959 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/1.495, allocations: 37.7 kB / 0.8959 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.699e-05/1.495, allocations: 181.1 kB / 0.8961 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.495, allocations: 267.7 kB / 0.8964 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/1.495, allocations: 98.11 kB / 0.8965 GB, free: 218 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.3e-05/1.495, allocations: 350.1 kB / 0.8968 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/1.496, allocations: 269.3 kB / 0.897 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/1.496, allocations: 396 kB / 0.8974 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/1.497, allocations: 0.6963 MB / 0.8981 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/1.497, allocations: 6.094 kB / 0.8981 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001393/1.499, allocations: 0.7874 MB / 0.8989 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/1.499, allocations: 8 kB / 0.8989 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.499, allocations: 6.938 kB / 0.8989 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002419/1.499, allocations: 62.61 kB / 0.8989 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/1.499, allocations: 102.9 kB / 0.899 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06736/1.567, allocations: 17.19 MB / 0.9158 GB, free: 197.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/1.567, allocations: 19.98 kB / 0.9159 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/1.567, allocations: 23.98 kB / 0.9159 GB, free: 197.5 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.0002744/1.568, allocations: 198.5 kB / 0.9161 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/1.568, allocations: 47.47 kB / 0.9161 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/1.569, allocations: 1.54 MB / 0.9176 GB, free: 195.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/1.57, allocations: 11.98 kB / 0.9176 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.57, allocations: 4 kB / 0.9176 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001156/1.571, allocations: 1.131 MB / 0.9187 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/1.573, allocations: 1.596 MB / 0.9203 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/1.573, allocations: 0 / 0.9203 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/1.573, allocations: 79.88 kB / 0.9204 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/1.573, allocations: 48.84 kB / 0.9204 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/1.573, allocations: 4 kB / 0.9204 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007315/1.574, allocations: 1.437 MB / 0.9218 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.574, allocations: 4.031 kB / 0.9218 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/1.576, allocations: 1.17 MB / 0.923 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/1.576, allocations: 116.5 kB / 0.9231 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.034e-05/1.576, allocations: 12 kB / 0.9231 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/1.576, allocations: 23.97 kB / 0.9231 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/1.576, allocations: 47.88 kB / 0.9232 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/1.576, allocations: 12 kB / 0.9232 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001935/1.576, allocations: 251 kB / 0.9234 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.576, allocations: 0 / 0.9234 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007931/1.584, allocations: 3.517 MB / 0.9268 GB, free: 186.3 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.01594/1.6, allocations: 4.531 MB / 0.9313 GB, free: 182.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001632/1.602, allocations: 0.9528 MB / 0.9322 GB, free: 181.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/1.602, allocations: 4.188 kB / 0.9322 GB, free: 181.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007147/1.603, allocations: 491.3 kB / 0.9327 GB, free: 180.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/1.605, allocations: 386.9 kB / 0.933 GB, free: 180.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/1.606, allocations: 1.142 MB / 0.9342 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/1.606, allocations: 0.8486 MB / 0.935 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003698/1.607, allocations: 167.9 kB / 0.9351 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.943e-05/1.607, allocations: 43.44 kB / 0.9352 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of SimCode: time 5.81e-07/1.607, allocations: 0 / 0.9352 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1226/1.729, allocations: 125.8 MB / 1.058 GB, free: 52.34 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)