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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007932/0.007932, allocations: 102 kB / 15.73 MB, free: 6.039 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.002052/0.002052, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.544/1.544, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05371/0.05371, allocations: 9.096 MB / 279 MB, free: 12.07 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.00142/0.00142, allocations: 71.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3053, allocations: 48.15 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1529/0.4582, allocations: 128.7 MB / 0.5506 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4117/0.8699, allocations: 111.1 MB / 0.6591 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000728/0.8707, allocations: 13.88 kB / 0.6591 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004067/0.8748, allocations: 1.368 MB / 0.6604 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003841/0.8787, allocations: 1.654 MB / 0.662 GB, free: 232 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.09025/0.969, allocations: 29.35 MB / 0.6907 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001889/0.9709, allocations: 1.403 MB / 0.6921 GB, free: 6.148 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.9711, allocations: 132.6 kB / 0.6922 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01367/0.9848, allocations: 8.95 MB / 0.7009 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004967/0.9853, allocations: 383.1 kB / 0.7013 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.9854, allocations: 44 kB / 0.7013 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06643/1.052, allocations: 34.95 MB / 0.7355 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002898/1.052, allocations: 126.3 kB / 0.7356 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005505/1.053, allocations: 306.7 kB / 0.7359 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05573/1.108, allocations: 14.05 MB / 0.7496 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/1.109, allocations: 0 / 0.7496 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.925e-06/1.109, allocations: 0 / 0.7496 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.048e-05/1.109, allocations: 0 / 0.7496 GB, free: 1.578 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.007835/1.116, allocations: 2.579 MB / 0.7521 GB, free: 14.96 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/1.116, allocations: 12.03 kB / 0.7521 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/1.117, allocations: 86.52 kB / 0.7522 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006813/1.117, allocations: 87.34 kB / 0.7523 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006837/1.118, allocations: 331.4 kB / 0.7526 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/1.118, allocations: 28.66 kB / 0.7527 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/1.118, allocations: 35.94 kB / 0.7527 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/1.119, allocations: 0.6002 MB / 0.7533 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/1.119, allocations: 0 / 0.7533 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/1.12, allocations: 20 kB / 0.7533 GB, free: 13.7 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/1.12, allocations: 11.52 kB / 0.7533 GB, free: 13.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/1.121, allocations: 0.552 MB / 0.7538 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/1.124, allocations: 2.547 MB / 0.7563 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/1.125, allocations: 0.5036 MB / 0.7568 GB, free: 9.871 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005517/1.126, allocations: 346.3 kB / 0.7572 GB, free: 9.535 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4559/1.582, allocations: 139 MB / 0.8929 GB, free: 220 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.696e-05/1.582, allocations: 38.5 kB / 0.8929 GB, free: 220 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 6.672e-06/1.582, allocations: 2.625 kB / 0.8929 GB, free: 220 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006542/1.588, allocations: 2.325 MB / 0.8952 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/1.588, allocations: 54.72 kB / 0.8952 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/1.589, allocations: 254.5 kB / 0.8955 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/1.589, allocations: 37.55 kB / 0.8955 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/1.589, allocations: 184.4 kB / 0.8957 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/1.589, allocations: 266.1 kB / 0.8959 GB, free: 218 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/1.589, allocations: 96.36 kB / 0.896 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.919e-05/1.589, allocations: 356.9 kB / 0.8964 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/1.59, allocations: 273.2 kB / 0.8966 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/1.59, allocations: 395.3 kB / 0.897 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009201/1.591, allocations: 0.7011 MB / 0.8977 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.591, allocations: 0 / 0.8977 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001272/1.592, allocations: 0.7841 MB / 0.8985 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/1.592, allocations: 8 kB / 0.8985 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.592, allocations: 5.125 kB / 0.8985 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/1.593, allocations: 67.98 kB / 0.8985 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/1.593, allocations: 95.88 kB / 0.8986 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06591/1.659, allocations: 17.18 MB / 0.9154 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/1.659, allocations: 27.97 kB / 0.9154 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/1.659, allocations: 20 kB / 0.9155 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.0002276/1.66, allocations: 186.9 kB / 0.9156 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.447e-05/1.66, allocations: 47.45 kB / 0.9157 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/1.661, allocations: 1.551 MB / 0.9172 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/1.661, allocations: 11.98 kB / 0.9172 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/1.661, allocations: 0 / 0.9172 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001113/1.662, allocations: 1.138 MB / 0.9183 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/1.664, allocations: 1.597 MB / 0.9199 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/1.664, allocations: 0 / 0.9199 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/1.665, allocations: 79.88 kB / 0.92 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/1.665, allocations: 44.84 kB / 0.92 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/1.665, allocations: 11.98 kB / 0.92 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007223/1.666, allocations: 1.43 MB / 0.9214 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.666, allocations: 0 / 0.9214 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/1.667, allocations: 1.178 MB / 0.9226 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.434e-05/1.667, allocations: 116.5 kB / 0.9227 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/1.667, allocations: 12 kB / 0.9227 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/1.668, allocations: 23.97 kB / 0.9227 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/1.668, allocations: 47.94 kB / 0.9228 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/1.668, allocations: 20.05 kB / 0.9228 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001858/1.668, allocations: 243 kB / 0.923 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/1.668, allocations: 0 / 0.923 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00754/1.675, allocations: 3.518 MB / 0.9264 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.01656/1.692, allocations: 6.14 MB / 0.9324 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001682/1.694, allocations: 0.9457 MB / 0.9334 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.694, allocations: 4 kB / 0.9334 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007541/1.695, allocations: 0.4955 MB / 0.9338 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/1.696, allocations: 379.5 kB / 0.9342 GB, free: 178.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/1.708, allocations: 6.249 MB / 0.9403 GB, free: 172.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/1.708, allocations: 0.8487 MB / 0.9411 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004811/1.708, allocations: 176.2 kB / 0.9413 GB, free: 171.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/1.709, allocations: 163.4 kB / 0.9415 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.052e-06/1.709, allocations: 0 / 0.9415 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2198/1.929, allocations: 131.9 MB / 1.07 GB, free: 39.13 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/18.56, allocations: 7.984 kB / 1.07 GB, free: 39.12 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)