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: translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001352/0.001352, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04431/0.04431, allocations: 9.071 MB / 279.5 MB, free: 12.24 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.0005263/0.0005265, allocations: 16 kB / 339.1 MB, free: 25.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1024, allocations: 49.19 MB / 388.3 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3484/0.4509, allocations: 132.4 MB / 0.5086 GB, free: 3.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3798/0.8307, allocations: 91.4 MB / 0.5978 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006143/0.8314, allocations: 3.906 kB / 0.5978 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002754/0.8341, allocations: 1.068 MB / 0.5989 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003385/0.8375, allocations: 1.329 MB / 0.6002 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07581/0.9134, allocations: 22.63 MB / 0.6223 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.9157, allocations: 1.576 MB / 0.6238 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.9159, allocations: 91.88 kB / 0.6239 GB, free: 9.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01868/0.9346, allocations: 9.776 MB / 0.6334 GB, free: 8.707 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007162/0.9354, allocations: 365.2 kB / 0.6338 GB, free: 8.578 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.9355, allocations: 25.69 kB / 0.6338 GB, free: 8.574 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.056/0.9915, allocations: 27.93 MB / 0.6611 GB, free: 11.14 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.9918, allocations: 96.16 kB / 0.6612 GB, free: 11.08 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.9923, allocations: 145.3 kB / 0.6613 GB, free: 10.96 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02427/1.017, allocations: 8.613 MB / 0.6697 GB, free: 4.086 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/1.017, allocations: 4 kB / 0.6697 GB, free: 4.082 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.126e-06/1.017, allocations: 0 / 0.6697 GB, free: 4.082 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/1.017, allocations: 0 / 0.6697 GB, free: 4.082 MB / 462.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.007175/1.024, allocations: 2.484 MB / 0.6722 GB, free: 1.645 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.024, allocations: 14 kB / 0.6722 GB, free: 1.633 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006182/1.025, allocations: 89.92 kB / 0.6723 GB, free: 1.547 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/1.025, allocations: 328.5 kB / 0.6726 GB, free: 1.238 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/1.025, allocations: 29.72 kB / 0.6726 GB, free: 1.223 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.094e-05/1.025, allocations: 43.91 kB / 0.6726 GB, free: 1.191 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/1.026, allocations: 0.6042 MB / 0.6732 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/1.026, allocations: 3.938 kB / 0.6732 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.004e-05/1.026, allocations: 13.44 kB / 0.6732 GB, free: 0.75 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.442e-05/1.026, allocations: 23 kB / 0.6733 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/1.028, allocations: 0.5717 MB / 0.6738 GB, free: 340 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/1.03, allocations: 2.508 MB / 0.6763 GB, free: 14.02 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/1.031, allocations: 0.5125 MB / 0.6768 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/1.032, allocations: 351.3 kB / 0.6771 GB, free: 13.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4402/1.472, allocations: 135.8 MB / 0.8097 GB, free: 276.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/1.472, allocations: 36.09 kB / 0.8098 GB, free: 276.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.776e-06/1.472, allocations: 1.406 kB / 0.8098 GB, free: 276.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.006954/1.479, allocations: 2.4 MB / 0.8121 GB, free: 276.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/1.479, allocations: 60.73 kB / 0.8122 GB, free: 276.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003976/1.48, allocations: 256.7 kB / 0.8124 GB, free: 276.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/1.48, allocations: 31.89 kB / 0.8124 GB, free: 276 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/1.48, allocations: 187.4 kB / 0.8126 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/1.48, allocations: 272.4 kB / 0.8129 GB, free: 275.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/1.48, allocations: 8 kB / 0.8129 GB, free: 275.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.821e-05/1.48, allocations: 353.8 kB / 0.8132 GB, free: 275.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/1.481, allocations: 285.2 kB / 0.8135 GB, free: 275.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006363/1.481, allocations: 419 kB / 0.8139 GB, free: 275.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005949/1.482, allocations: 337.6 kB / 0.8142 GB, free: 275.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.482, allocations: 0 / 0.8142 GB, free: 275.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001429/1.483, allocations: 0.8146 MB / 0.815 GB, free: 274.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/1.484, allocations: 7.031 kB / 0.815 GB, free: 274.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/1.484, allocations: 3.531 kB / 0.815 GB, free: 274.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/1.484, allocations: 63.95 kB / 0.8151 GB, free: 274.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/1.484, allocations: 143.5 kB / 0.8152 GB, free: 274.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0864/1.571, allocations: 24.49 MB / 0.8391 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/1.571, allocations: 59.86 kB / 0.8392 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.681e-05/1.572, allocations: 20 kB / 0.8392 GB, free: 257.8 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.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003438/1.572, allocations: 194.8 kB / 0.8394 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/1.572, allocations: 43.52 kB / 0.8394 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/1.574, allocations: 1.608 MB / 0.841 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/1.574, allocations: 14.41 kB / 0.841 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/1.574, allocations: 1.688 kB / 0.841 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001292/1.575, allocations: 1.204 MB / 0.8422 GB, free: 254.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/1.577, allocations: 1.667 MB / 0.8438 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/1.577, allocations: 0 / 0.8438 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/1.578, allocations: 87.91 kB / 0.8439 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003113/1.578, allocations: 111.2 kB / 0.844 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/1.578, allocations: 15.94 kB / 0.844 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/1.579, allocations: 1.903 MB / 0.8459 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.579, allocations: 0 / 0.8459 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/1.581, allocations: 1.284 MB / 0.8472 GB, free: 249.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/1.581, allocations: 140.5 kB / 0.8473 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.198e-05/1.581, allocations: 15.98 kB / 0.8473 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/1.581, allocations: 42 kB / 0.8473 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.756e-05/1.582, allocations: 55.86 kB / 0.8474 GB, free: 249 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/1.582, allocations: 8 kB / 0.8474 GB, free: 249 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002291/1.582, allocations: 243 kB / 0.8476 GB, free: 248.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.2e-07/1.582, allocations: 3.938 kB / 0.8476 GB, free: 248.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008543/1.59, allocations: 3.188 MB / 0.8508 GB, free: 246 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01851/1.609, allocations: 4.146 MB / 0.8548 GB, free: 242.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002643/1.612, allocations: 1.006 MB / 0.8558 GB, free: 241.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.612, allocations: 0 / 0.8558 GB, free: 241.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008259/1.612, allocations: 0.4953 MB / 0.8563 GB, free: 240.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/1.614, allocations: 330.5 kB / 0.8566 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/1.616, allocations: 1.398 MB / 0.8579 GB, free: 239.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/1.617, allocations: 0.8564 MB / 0.8588 GB, free: 238.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004595/1.617, allocations: 139 kB / 0.8589 GB, free: 238 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/1.617, allocations: 39.42 kB / 0.859 GB, free: 238 MB / 0.5762 GB Notification: Performance of SimCode: time 1.492e-06/1.617, allocations: 0 / 0.859 GB, free: 238 MB / 0.5762 GB Notification: Performance of Templates: time 0.1339/1.751, allocations: 116.9 MB / 0.9731 GB, free: 120.9 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1) Environment - environmentSimulation: