Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.006103/0.006103, allocations: 100.4 kB / 15.73 MB, free: 6.477 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.00139/0.001391, allocations: 192.6 kB / 16.67 MB, free: 6.391 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.409/1.409, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04781/0.04781, allocations: 9.104 MB / 279 MB, free: 12.08 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.001594/0.001594, allocations: 67.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3168, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1741/0.4909, allocations: 142.2 MB / 0.5638 GB, free: 2.109 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4149/0.9058, allocations: 97.7 MB / 0.6592 GB, free: 268 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006796/0.9066, allocations: 11.94 kB / 0.6593 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003373/0.91, allocations: 1.366 MB / 0.6606 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00376/0.9138, allocations: 1.65 MB / 0.6622 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.09288/1.007, allocations: 29.53 MB / 0.691 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002116/1.009, allocations: 1.412 MB / 0.6924 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/1.009, allocations: 128.3 kB / 0.6925 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01756/1.027, allocations: 9.86 MB / 0.7022 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006454/1.027, allocations: 385.8 kB / 0.7025 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.798e-05/1.028, allocations: 44 kB / 0.7026 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07135/1.099, allocations: 35.4 MB / 0.7372 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002519/1.099, allocations: 113.9 kB / 0.7373 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005653/1.1, allocations: 309.1 kB / 0.7376 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04629/1.146, allocations: 14.16 MB / 0.7514 GB, free: 15.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/1.146, allocations: 0 / 0.7514 GB, free: 15.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.813e-06/1.146, allocations: 4 kB / 0.7514 GB, free: 15.94 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.852e-05/1.146, allocations: 0 / 0.7514 GB, free: 15.94 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.007909/1.154, allocations: 2.568 MB / 0.7539 GB, free: 13.33 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/1.154, allocations: 15.95 kB / 0.7539 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/1.154, allocations: 82.52 kB / 0.754 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007016/1.155, allocations: 91.41 kB / 0.7541 GB, free: 13.13 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005473/1.156, allocations: 338.2 kB / 0.7544 GB, free: 12.77 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.397e-05/1.156, allocations: 32.66 kB / 0.7544 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.187e-05/1.156, allocations: 31.94 kB / 0.7545 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/1.157, allocations: 0.6 MB / 0.7551 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/1.157, allocations: 4 kB / 0.7551 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/1.157, allocations: 16 kB / 0.7551 GB, free: 12.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/1.157, allocations: 11.59 kB / 0.7551 GB, free: 12.06 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/1.159, allocations: 0.5481 MB / 0.7556 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003017/1.162, allocations: 2.512 MB / 0.7581 GB, free: 8.793 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/1.163, allocations: 500 kB / 0.7586 GB, free: 8.301 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/1.164, allocations: 342.7 kB / 0.7589 GB, free: 7.965 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4605/1.624, allocations: 139 MB / 0.8946 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/1.624, allocations: 35.94 kB / 0.8946 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.327e-06/1.624, allocations: 3.938 kB / 0.8946 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006065/1.63, allocations: 2.327 MB / 0.8969 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/1.631, allocations: 58.97 kB / 0.897 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/1.631, allocations: 258.2 kB / 0.8972 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/1.631, allocations: 33.42 kB / 0.8973 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/1.631, allocations: 191.4 kB / 0.8974 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/1.631, allocations: 260.6 kB / 0.8977 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/1.631, allocations: 98.77 kB / 0.8978 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.084e-05/1.631, allocations: 364.4 kB / 0.8981 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/1.632, allocations: 269.7 kB / 0.8984 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/1.632, allocations: 400.4 kB / 0.8988 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009346/1.633, allocations: 0.722 MB / 0.8995 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.633, allocations: 4 kB / 0.8995 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001372/1.635, allocations: 0.7869 MB / 0.9002 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/1.635, allocations: 4.938 kB / 0.9002 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.635, allocations: 4 kB / 0.9003 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002692/1.635, allocations: 69.02 kB / 0.9003 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006263/1.636, allocations: 127.8 kB / 0.9004 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0666/1.702, allocations: 19.07 MB / 0.9191 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000608/1.703, allocations: 36.03 kB / 0.9191 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/1.703, allocations: 18.31 kB / 0.9191 GB, free: 194 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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.000379/1.703, allocations: 196.3 kB / 0.9193 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/1.704, allocations: 43.44 kB / 0.9193 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/1.705, allocations: 1.575 MB / 0.9209 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/1.705, allocations: 11.98 kB / 0.9209 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/1.705, allocations: 0 / 0.9209 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001276/1.707, allocations: 1.191 MB / 0.9221 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/1.709, allocations: 1.633 MB / 0.9237 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.709, allocations: 7.938 kB / 0.9237 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/1.709, allocations: 79.88 kB / 0.9237 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002525/1.709, allocations: 101.6 kB / 0.9238 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/1.709, allocations: 11.98 kB / 0.9238 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009649/1.71, allocations: 1.993 MB / 0.9258 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.71, allocations: 0 / 0.9258 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/1.712, allocations: 1.25 MB / 0.927 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/1.712, allocations: 116.5 kB / 0.9271 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/1.712, allocations: 8 kB / 0.9271 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/1.712, allocations: 27.97 kB / 0.9272 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.468e-05/1.712, allocations: 47.95 kB / 0.9272 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/1.712, allocations: 11.98 kB / 0.9272 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002001/1.713, allocations: 247 kB / 0.9275 GB, free: 185 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/1.713, allocations: 0 / 0.9275 GB, free: 185 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009195/1.722, allocations: 3.515 MB / 0.9309 GB, free: 181.9 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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01908/1.741, allocations: 6.199 MB / 0.9369 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002084/1.743, allocations: 0.9986 MB / 0.9379 GB, free: 175.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/1.743, allocations: 0 / 0.9379 GB, free: 175.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007882/1.744, allocations: 0.4995 MB / 0.9384 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/1.746, allocations: 396.9 kB / 0.9388 GB, free: 174.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/1.759, allocations: 6.284 MB / 0.9449 GB, free: 167.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/1.759, allocations: 0.8486 MB / 0.9457 GB, free: 167 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000471/1.759, allocations: 141.7 kB / 0.9459 GB, free: 166.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/1.76, allocations: 171.4 kB / 0.946 GB, free: 166.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.102e-06/1.76, allocations: 3.938 kB / 0.946 GB, free: 166.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1894/1.949, allocations: 133 MB / 1.076 GB, free: 33.44 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.87/19.82, allocations: 15.72 kB / 1.076 GB, free: 33.42 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)