Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_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_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_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.001078/0.001078, 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.001184/0.001184, allocations: 196.9 kB / 16.14 MB, free: 6.715 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.473/1.473, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04685/0.04685, allocations: 9.073 MB / 278.4 MB, free: 12.42 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.001355/0.001355, allocations: 63.91 kB / 337.4 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09267, allocations: 48.16 MB / 385.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.3612/0.4539, allocations: 144.2 MB / 0.5173 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4125/0.8664, allocations: 99.23 MB / 0.6143 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007729/0.8673, allocations: 6.094 kB / 0.6143 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003558/0.8709, allocations: 1.175 MB / 0.6154 GB, free: 1.098 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004279/0.8752, allocations: 1.465 MB / 0.6168 GB, free: 1.086 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08124/0.9564, allocations: 25.12 MB / 0.6414 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002606/0.9591, allocations: 1.827 MB / 0.6431 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.9594, allocations: 97.33 kB / 0.6432 GB, free: 15.49 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01807/0.9774, allocations: 9.375 MB / 0.6524 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005766/0.9781, allocations: 380.3 kB / 0.6528 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.805e-05/0.9781, allocations: 21.59 kB / 0.6528 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05984/1.038, allocations: 28.2 MB / 0.6803 GB, free: 8.414 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002958/1.038, allocations: 97.84 kB / 0.6804 GB, free: 8.348 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007496/1.039, allocations: 288.1 kB / 0.6807 GB, free: 8.129 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04719/1.086, allocations: 12.26 MB / 0.6927 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/1.086, allocations: 4 kB / 0.6927 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/1.086, allocations: 0 / 0.6927 GB, free: 14.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/1.086, allocations: 0 / 0.6927 GB, free: 14.7 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.007361/1.094, allocations: 2.282 MB / 0.6949 GB, free: 12.37 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.094, allocations: 12.03 kB / 0.6949 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/1.094, allocations: 87.27 kB / 0.695 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005833/1.095, allocations: 79.34 kB / 0.6951 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/1.095, allocations: 335.8 kB / 0.6954 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/1.095, allocations: 28.66 kB / 0.6954 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/1.095, allocations: 32 kB / 0.6954 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/1.096, allocations: 0.5905 MB / 0.696 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/1.096, allocations: 7.906 kB / 0.696 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/1.096, allocations: 17.25 kB / 0.696 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/1.096, allocations: 14.83 kB / 0.696 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/1.098, allocations: 0.533 MB / 0.6966 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/1.1, allocations: 2.488 MB / 0.699 GB, free: 7.91 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.101, allocations: 0.4999 MB / 0.6995 GB, free: 7.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005241/1.102, allocations: 340.9 kB / 0.6998 GB, free: 7.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3819/1.484, allocations: 121.8 MB / 0.8188 GB, free: 274.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/1.484, allocations: 42.31 kB / 0.8188 GB, free: 274.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.935e-06/1.484, allocations: 3.906 kB / 0.8188 GB, free: 274.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.006217/1.49, allocations: 2.41 MB / 0.8212 GB, free: 273.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/1.49, allocations: 55.38 kB / 0.8212 GB, free: 273 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/1.49, allocations: 257 kB / 0.8215 GB, free: 272.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/1.49, allocations: 33.61 kB / 0.8215 GB, free: 272.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.789e-05/1.491, allocations: 190.2 kB / 0.8217 GB, free: 272.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/1.491, allocations: 266.7 kB / 0.8219 GB, free: 272.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/1.491, allocations: 93.23 kB / 0.822 GB, free: 272.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.628e-05/1.491, allocations: 354.8 kB / 0.8224 GB, free: 272 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004896/1.491, allocations: 279.5 kB / 0.8226 GB, free: 271.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004909/1.492, allocations: 387.3 kB / 0.823 GB, free: 271.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009691/1.493, allocations: 0.6986 MB / 0.8237 GB, free: 271.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/1.493, allocations: 0 / 0.8237 GB, free: 271.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001373/1.494, allocations: 0.8137 MB / 0.8245 GB, free: 270.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/1.494, allocations: 7.938 kB / 0.8245 GB, free: 270.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.494, allocations: 3.938 kB / 0.8245 GB, free: 270.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005371/1.495, allocations: 101.5 kB / 0.8246 GB, free: 270.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000484/1.495, allocations: 114.2 kB / 0.8247 GB, free: 270.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08541/1.581, allocations: 24.68 MB / 0.8488 GB, free: 250.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006125/1.581, allocations: 55.81 kB / 0.8488 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-05/1.582, allocations: 19.98 kB / 0.8489 GB, free: 250.3 MB / 0.5762 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 (47): * Single equations (assignments): 40 * 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, 2} * 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.000367/1.582, allocations: 193.7 kB / 0.849 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/1.582, allocations: 39.53 kB / 0.8491 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/1.584, allocations: 1.695 MB / 0.8507 GB, free: 248.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/1.584, allocations: 11.12 kB / 0.8507 GB, free: 248.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.584, allocations: 7.922 kB / 0.8508 GB, free: 248.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001173/1.585, allocations: 1.271 MB / 0.852 GB, free: 246.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/1.587, allocations: 1.746 MB / 0.8537 GB, free: 245.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/1.587, allocations: 0.5625 kB / 0.8537 GB, free: 245.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/1.587, allocations: 75.89 kB / 0.8538 GB, free: 245.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000331/1.588, allocations: 194.2 kB / 0.854 GB, free: 244.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/1.588, allocations: 15.94 kB / 0.854 GB, free: 244.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009499/1.589, allocations: 2.485 MB / 0.8564 GB, free: 242.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.589, allocations: 256 / 0.8564 GB, free: 242.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/1.59, allocations: 1.444 MB / 0.8578 GB, free: 240.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.98e-05/1.59, allocations: 128.4 kB / 0.8579 GB, free: 240.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/1.59, allocations: 4 kB / 0.8579 GB, free: 240.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/1.591, allocations: 43.88 kB / 0.858 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.34e-05/1.591, allocations: 43.94 kB / 0.858 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/1.591, allocations: 15.98 kB / 0.858 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001636/1.591, allocations: 227.1 kB / 0.8583 GB, free: 240.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.82e-07/1.591, allocations: 0 / 0.8583 GB, free: 240.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005959/1.597, allocations: 2.907 MB / 0.8611 GB, free: 237.7 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: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01369/1.611, allocations: 5.402 MB / 0.8664 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001615/1.612, allocations: 1.01 MB / 0.8674 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/1.612, allocations: 0 / 0.8674 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000639/1.613, allocations: 0.5149 MB / 0.8679 GB, free: 231.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/1.615, allocations: 380.8 kB / 0.8682 GB, free: 230.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009859/1.624, allocations: 6.193 MB / 0.8743 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/1.625, allocations: 0.8604 MB / 0.8751 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004042/1.625, allocations: 106.8 kB / 0.8752 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/1.625, allocations: 167.4 kB / 0.8754 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/1.625, allocations: 0 / 0.8754 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.928/6.553, allocations: 119.9 MB / 0.9925 GB, free: 103.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/6.553, allocations: 279.5 kB / 0.9927 GB, free: 102.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/13.81, allocations: 0 / 0.9927 GB, free: 102.7 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)