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.001609/0.001608, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00199/0.00199, allocations: 194.7 kB / 16.14 MB, free: 6.707 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.615/1.615, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04542/0.04542, allocations: 9.073 MB / 278.4 MB, free: 12.38 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.001407/0.001407, allocations: 64.47 kB / 337.4 MB, free: 25.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 48.16 MB / 385.6 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3728/0.4775, allocations: 144.2 MB / 0.5173 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.399/0.8765, allocations: 99.22 MB / 0.6142 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006597/0.8772, allocations: 7.875 kB / 0.6142 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00316/0.8804, allocations: 1.176 MB / 0.6154 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003506/0.884, allocations: 1.465 MB / 0.6168 GB, free: 1.074 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08276/0.9667, allocations: 25.11 MB / 0.6413 GB, free: 15.81 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.9691, allocations: 1.819 MB / 0.6431 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.9694, allocations: 99.66 kB / 0.6432 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01745/0.9868, allocations: 9.376 MB / 0.6524 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004873/0.9874, allocations: 385.6 kB / 0.6527 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.9874, allocations: 21.03 kB / 0.6528 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06952/1.057, allocations: 31.49 MB / 0.6835 GB, free: 6.23 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003987/1.057, allocations: 95.84 kB / 0.6836 GB, free: 6.164 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008752/1.058, allocations: 282 kB / 0.6839 GB, free: 5.949 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05556/1.114, allocations: 13.74 MB / 0.6973 GB, free: 10.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.114, allocations: 4 kB / 0.6973 GB, free: 10.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/1.114, allocations: 0 / 0.6973 GB, free: 10.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/1.114, allocations: 0 / 0.6973 GB, free: 10.27 MB / 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.007401/1.121, allocations: 2.571 MB / 0.6998 GB, free: 7.648 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/1.121, allocations: 8.031 kB / 0.6998 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/1.122, allocations: 82.52 kB / 0.6999 GB, free: 7.551 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006443/1.122, allocations: 95.33 kB / 0.7 GB, free: 7.457 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/1.123, allocations: 332.5 kB / 0.7003 GB, free: 7.098 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/1.123, allocations: 28.66 kB / 0.7003 GB, free: 7.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.835e-05/1.123, allocations: 35.94 kB / 0.7004 GB, free: 7.035 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/1.124, allocations: 0.5962 MB / 0.7009 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/1.124, allocations: 11.84 kB / 0.701 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.915e-05/1.124, allocations: 16 kB / 0.701 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.664e-05/1.124, allocations: 16.16 kB / 0.701 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/1.126, allocations: 0.5486 MB / 0.7015 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/1.128, allocations: 2.506 MB / 0.704 GB, free: 3.133 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/1.129, allocations: 0.5004 MB / 0.7045 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/1.13, allocations: 330.3 kB / 0.7048 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3669/1.497, allocations: 139 MB / 0.8405 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/1.497, allocations: 38.03 kB / 0.8405 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.795e-06/1.497, allocations: 1.828 kB / 0.8405 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.004747/1.502, allocations: 2.341 MB / 0.8428 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.266e-05/1.502, allocations: 57.25 kB / 0.8429 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/1.502, allocations: 256.7 kB / 0.8431 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/1.502, allocations: 29.7 kB / 0.8431 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/1.502, allocations: 187.4 kB / 0.8433 GB, free: 250.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.263e-05/1.502, allocations: 273 kB / 0.8436 GB, free: 250.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/1.502, allocations: 96.86 kB / 0.8437 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.423e-05/1.502, allocations: 358.3 kB / 0.844 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/1.503, allocations: 267.7 kB / 0.8443 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/1.503, allocations: 411.8 kB / 0.8447 GB, free: 249.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008121/1.504, allocations: 0.7173 MB / 0.8454 GB, free: 249.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/1.504, allocations: 2.031 kB / 0.8454 GB, free: 249.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001119/1.505, allocations: 0.7979 MB / 0.8461 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/1.505, allocations: 3.969 kB / 0.8461 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/1.505, allocations: 3.906 kB / 0.8461 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/1.505, allocations: 60.95 kB / 0.8462 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/1.506, allocations: 127.4 kB / 0.8463 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08215/1.588, allocations: 24.55 MB / 0.8703 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004483/1.588, allocations: 51.88 kB / 0.8703 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/1.588, allocations: 19.98 kB / 0.8704 GB, free: 225.3 MB / 0.5762 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.0002324/1.589, allocations: 189.7 kB / 0.8705 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/1.589, allocations: 43.47 kB / 0.8706 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/1.59, allocations: 1.589 MB / 0.8721 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/1.59, allocations: 4 kB / 0.8721 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/1.59, allocations: 0 / 0.8721 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001073/1.591, allocations: 1.183 MB / 0.8733 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/1.593, allocations: 1.637 MB / 0.8749 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/1.593, allocations: 0 / 0.8749 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/1.593, allocations: 83.91 kB / 0.875 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002457/1.594, allocations: 106.1 kB / 0.8751 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/1.594, allocations: 11.94 kB / 0.8751 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007666/1.594, allocations: 1.897 MB / 0.8769 GB, free: 218.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.595, allocations: 0 / 0.8769 GB, free: 218.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/1.596, allocations: 1.253 MB / 0.8782 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.358e-05/1.596, allocations: 120.4 kB / 0.8783 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/1.596, allocations: 8 kB / 0.8783 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/1.596, allocations: 39.94 kB / 0.8783 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/1.597, allocations: 43.92 kB / 0.8784 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/1.597, allocations: 12 kB / 0.8784 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001727/1.597, allocations: 247 kB / 0.8786 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.597, allocations: 0 / 0.8786 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006181/1.603, allocations: 3.191 MB / 0.8817 GB, free: 213.6 MB / 0.5762 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.01457/1.618, allocations: 5.776 MB / 0.8874 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001473/1.619, allocations: 0.9772 MB / 0.8883 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.619, allocations: 0.75 kB / 0.8883 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006702/1.62, allocations: 0.4915 MB / 0.8888 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/1.621, allocations: 380.2 kB / 0.8892 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008877/1.63, allocations: 6.379 MB / 0.8954 GB, free: 199.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/1.63, allocations: 0.8525 MB / 0.8962 GB, free: 199 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003683/1.631, allocations: 142.8 kB / 0.8964 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/1.631, allocations: 171.3 kB / 0.8965 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.71e-07/1.631, allocations: 0 / 0.8965 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.013/6.644, allocations: 124 MB / 1.018 GB, free: 74.46 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/6.644, allocations: 251.2 kB / 1.018 GB, free: 74.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.605/13.25, allocations: 0 / 1.018 GB, free: 74.2 MB / 0.5762 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)