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.000815/0.0008149, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005772/0.005772, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.738/1.738, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04504/0.04504, allocations: 9.068 MB / 279.8 MB, free: 12.14 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.0005518/0.0005519, allocations: 12 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1025, allocations: 49.2 MB / 388.9 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3399/0.4424, allocations: 142.3 MB / 0.5187 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4281/0.8706, allocations: 98.1 MB / 0.6146 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006399/0.8713, allocations: 8.781 kB / 0.6146 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003302/0.8746, allocations: 1.172 MB / 0.6157 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004034/0.8786, allocations: 1.468 MB / 0.6171 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07541/0.9541, allocations: 25.16 MB / 0.6417 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.9561, allocations: 1.816 MB / 0.6435 GB, free: 152 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.9563, allocations: 98.44 kB / 0.6436 GB, free: 132 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01594/0.9723, allocations: 9.38 MB / 0.6527 GB, free: 12.89 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005199/0.9729, allocations: 383.3 kB / 0.6531 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.9729, allocations: 19.53 kB / 0.6531 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05975/1.033, allocations: 31.47 MB / 0.6839 GB, free: 10.62 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002981/1.033, allocations: 95.36 kB / 0.6839 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005783/1.034, allocations: 310.7 kB / 0.6842 GB, free: 10.39 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04922/1.083, allocations: 13.69 MB / 0.6976 GB, free: 15.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/1.083, allocations: 0 / 0.6976 GB, free: 15.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.114e-06/1.083, allocations: 4 kB / 0.6976 GB, free: 15.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/1.083, allocations: 0 / 0.6976 GB, free: 15.91 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.007509/1.09, allocations: 2.494 MB / 0.7 GB, free: 13.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/1.091, allocations: 13.56 kB / 0.7001 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006369/1.091, allocations: 91.11 kB / 0.7001 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/1.092, allocations: 334.7 kB / 0.7005 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/1.092, allocations: 28.09 kB / 0.7005 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/1.092, allocations: 31.06 kB / 0.7005 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/1.093, allocations: 0.6192 MB / 0.7011 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/1.093, allocations: 0 / 0.7011 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/1.093, allocations: 14.56 kB / 0.7011 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/1.093, allocations: 17.5 kB / 0.7012 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.094, allocations: 0.5682 MB / 0.7017 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/1.097, allocations: 2.521 MB / 0.7042 GB, free: 9.828 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/1.098, allocations: 0.5153 MB / 0.7047 GB, free: 9.496 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/1.099, allocations: 351.5 kB / 0.705 GB, free: 9.273 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4637/1.562, allocations: 135.8 MB / 0.8376 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.562, allocations: 43.91 kB / 0.8377 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.485e-06/1.562, allocations: 0 / 0.8377 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.006116/1.568, allocations: 2.401 MB / 0.84 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/1.569, allocations: 58.97 kB / 0.8401 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/1.569, allocations: 263.8 kB / 0.8403 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/1.569, allocations: 33.67 kB / 0.8404 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/1.569, allocations: 186.2 kB / 0.8405 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/1.569, allocations: 265.8 kB / 0.8408 GB, free: 257.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.532e-05/1.569, allocations: 64.89 kB / 0.8409 GB, free: 257.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.311e-05/1.569, allocations: 354.5 kB / 0.8412 GB, free: 256.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/1.57, allocations: 282 kB / 0.8415 GB, free: 256.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005444/1.57, allocations: 421.3 kB / 0.8419 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/1.571, allocations: 0.7284 MB / 0.8426 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.571, allocations: 3.938 kB / 0.8426 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001415/1.573, allocations: 0.827 MB / 0.8434 GB, free: 255.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/1.573, allocations: 11 kB / 0.8434 GB, free: 255.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/1.573, allocations: 3.969 kB / 0.8434 GB, free: 255.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/1.573, allocations: 61.39 kB / 0.8435 GB, free: 255.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000593/1.574, allocations: 138.9 kB / 0.8436 GB, free: 255.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09598/1.67, allocations: 24.49 MB / 0.8675 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/1.67, allocations: 59.86 kB / 0.8676 GB, free: 234.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.708e-05/1.67, allocations: 16 kB / 0.8676 GB, free: 234.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.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.0003088/1.671, allocations: 190.3 kB / 0.8678 GB, free: 234.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/1.671, allocations: 47.42 kB / 0.8678 GB, free: 234.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/1.673, allocations: 1.602 MB / 0.8694 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/1.673, allocations: 14.25 kB / 0.8694 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.673, allocations: 0.6875 kB / 0.8694 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001302/1.674, allocations: 1.215 MB / 0.8706 GB, free: 231.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/1.676, allocations: 1.659 MB / 0.8722 GB, free: 229.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/1.676, allocations: 0 / 0.8722 GB, free: 229.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/1.677, allocations: 87.91 kB / 0.8723 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003295/1.677, allocations: 116.8 kB / 0.8724 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-05/1.677, allocations: 12 kB / 0.8724 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009575/1.678, allocations: 1.909 MB / 0.8743 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.678, allocations: 4.031 kB / 0.8743 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/1.68, allocations: 1.28 MB / 0.8755 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/1.68, allocations: 140.4 kB / 0.8756 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.335e-05/1.68, allocations: 15.92 kB / 0.8757 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/1.68, allocations: 43.97 kB / 0.8757 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/1.68, allocations: 43.94 kB / 0.8757 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/1.681, allocations: 15.98 kB / 0.8758 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002472/1.681, allocations: 243 kB / 0.876 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.681, allocations: 0 / 0.876 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01002/1.691, allocations: 3.184 MB / 0.8791 GB, free: 223 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.01805/1.709, allocations: 4.158 MB / 0.8832 GB, free: 219.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002156/1.711, allocations: 1.008 MB / 0.8841 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/1.711, allocations: 0 / 0.8841 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00075/1.712, allocations: 0.4915 MB / 0.8846 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/1.714, allocations: 380.8 kB / 0.885 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/1.716, allocations: 1.44 MB / 0.8864 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/1.716, allocations: 0.8525 MB / 0.8872 GB, free: 215.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004572/1.717, allocations: 135.2 kB / 0.8874 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/1.717, allocations: 43.44 kB / 0.8874 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.462e-06/1.717, allocations: 0 / 0.8874 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.152/1.869, allocations: 117.8 MB / 1.002 GB, free: 96.94 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: