Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.001003/0.001003, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001022/0.001021, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.156/1.156, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.03944/0.03944, allocations: 9.073 MB / 278.5 MB, free: 12.34 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.001211/0.001211, allocations: 63.89 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07172/0.07294, allocations: 48.16 MB / 385.8 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.2683/0.3413, allocations: 141.6 MB / 0.515 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2969/0.6382, allocations: 97.47 MB / 0.6102 GB, free: 264 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006419/0.6389, allocations: 8.062 kB / 0.6102 GB, free: 264 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002824/0.6417, allocations: 1.279 MB / 0.6114 GB, free: 252 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.6447, allocations: 1.556 MB / 0.613 GB, free: 236 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06502/0.7097, allocations: 26.69 MB / 0.639 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.7113, allocations: 1.407 MB / 0.6404 GB, free: 15.34 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.7115, allocations: 129.6 kB / 0.6405 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.7246, allocations: 10.02 MB / 0.6503 GB, free: 11.66 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004262/0.725, allocations: 393.5 kB / 0.6507 GB, free: 11.41 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.7251, allocations: 40 kB / 0.6507 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05387/0.779, allocations: 35.57 MB / 0.6855 GB, free: 1.996 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.7792, allocations: 119.5 kB / 0.6856 GB, free: 1.883 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.7798, allocations: 305.4 kB / 0.6859 GB, free: 1.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03538/0.8151, allocations: 14.6 MB / 0.7001 GB, free: 4.102 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8152, allocations: 0 / 0.7001 GB, free: 4.102 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.8152, allocations: 0 / 0.7001 GB, free: 4.102 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.8152, allocations: 0 / 0.7001 GB, free: 4.102 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.005176/0.8204, allocations: 2.668 MB / 0.7027 GB, free: 1.391 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.8204, allocations: 8.031 kB / 0.7027 GB, free: 1.383 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.148e-05/0.8205, allocations: 82.52 kB / 0.7028 GB, free: 1.293 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.821, allocations: 79.41 kB / 0.7029 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.8214, allocations: 335.5 kB / 0.7032 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.8214, allocations: 28.66 kB / 0.7032 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.8215, allocations: 32 kB / 0.7033 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.8225, allocations: 0.5844 MB / 0.7038 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.8225, allocations: 3.906 kB / 0.7038 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.8225, allocations: 16 kB / 0.7039 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.8226, allocations: 18.81 kB / 0.7039 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.8236, allocations: 0.5173 MB / 0.7044 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.8257, allocations: 2.485 MB / 0.7068 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/0.8266, allocations: 485 kB / 0.7073 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/0.8271, allocations: 338.3 kB / 0.7076 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3608/1.188, allocations: 113.4 MB / 0.8183 GB, free: 145.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/1.188, allocations: 34.91 kB / 0.8184 GB, free: 145.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.384e-06/1.188, allocations: 0 / 0.8184 GB, free: 145.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005828/1.194, allocations: 2.449 MB / 0.8208 GB, free: 144.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.016e-05/1.194, allocations: 55.53 kB / 0.8208 GB, free: 144.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/1.194, allocations: 254.5 kB / 0.8211 GB, free: 144.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/1.194, allocations: 32.83 kB / 0.8211 GB, free: 144.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/1.194, allocations: 189.5 kB / 0.8213 GB, free: 144.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/1.194, allocations: 266.2 kB / 0.8215 GB, free: 144.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/1.194, allocations: 100.9 kB / 0.8216 GB, free: 144.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.349e-05/1.195, allocations: 351.2 kB / 0.822 GB, free: 144.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/1.195, allocations: 283.5 kB / 0.8222 GB, free: 144.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/1.196, allocations: 397.9 kB / 0.8226 GB, free: 143.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009917/1.197, allocations: 0.7134 MB / 0.8233 GB, free: 143.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.197, allocations: 1.688 kB / 0.8233 GB, free: 143.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00137/1.198, allocations: 0.8181 MB / 0.8241 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/1.198, allocations: 5.312 kB / 0.8241 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/1.198, allocations: 5.281 kB / 0.8241 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/1.198, allocations: 79.42 kB / 0.8242 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/1.199, allocations: 115.7 kB / 0.8243 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04556/1.244, allocations: 13.68 MB / 0.8377 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/1.245, allocations: 48.31 kB / 0.8377 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/1.245, allocations: 20.36 kB / 0.8377 GB, free: 137.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000225/1.245, allocations: 194.1 kB / 0.8379 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/1.245, allocations: 46.22 kB / 0.838 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/1.247, allocations: 1.732 MB / 0.8397 GB, free: 137.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/1.247, allocations: 13.42 kB / 0.8397 GB, free: 137.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/1.247, allocations: 0 / 0.8397 GB, free: 137.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001259/1.248, allocations: 1.26 MB / 0.8409 GB, free: 137 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/1.25, allocations: 1.749 MB / 0.8426 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.25, allocations: 1.078 kB / 0.8426 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/1.251, allocations: 80.81 kB / 0.8427 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002733/1.251, allocations: 118.8 kB / 0.8428 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/1.251, allocations: 11.59 kB / 0.8428 GB, free: 136.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/1.252, allocations: 2.091 MB / 0.8448 GB, free: 134.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.252, allocations: 3.938 kB / 0.8449 GB, free: 134.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/1.254, allocations: 1.425 MB / 0.8462 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.592e-05/1.254, allocations: 120.7 kB / 0.8464 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/1.254, allocations: 11.06 kB / 0.8464 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/1.254, allocations: 41.62 kB / 0.8464 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/1.254, allocations: 51.03 kB / 0.8465 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/1.255, allocations: 21.94 kB / 0.8465 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001731/1.255, allocations: 217.6 kB / 0.8467 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.255, allocations: 3.906 kB / 0.8467 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006958/1.262, allocations: 2.983 MB / 0.8496 GB, free: 134.2 MB / 0.5919 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * 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: 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 {(2,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.01655/1.278, allocations: 5.623 MB / 0.8551 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002415/1.281, allocations: 1.075 MB / 0.8561 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/1.281, allocations: 0 / 0.8561 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008366/1.282, allocations: 0.5492 MB / 0.8567 GB, free: 132.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/1.283, allocations: 405.4 kB / 0.8571 GB, free: 132.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/1.294, allocations: 6.46 MB / 0.8634 GB, free: 130 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/1.295, allocations: 0.8561 MB / 0.8642 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004237/1.295, allocations: 128 kB / 0.8643 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/1.295, allocations: 172.3 kB / 0.8645 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/1.295, allocations: 0 / 0.8645 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.813/3.108, allocations: 118.5 MB / 0.9802 GB, free: 23.57 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/3.108, allocations: 243.5 kB / 0.9805 GB, free: 23.31 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.596/11.7, allocations: 3.938 kB / 0.9805 GB, free: 23.31 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)