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.0012/0.0012, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.00138/0.00138, allocations: 177.3 kB / 15.95 MB, free: 216 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.664/1.664, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04703/0.04703, allocations: 9.056 MB / 279.4 MB, free: 12.26 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.0005825/0.0005829, allocations: 12.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.09889, allocations: 49.19 MB / 388.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3564/0.4553, allocations: 117.8 MB / 0.4942 GB, free: 1.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.07924/0.5346, allocations: 77.42 MB / 0.5698 GB, free: 3.879 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.5357, allocations: 11.88 kB / 0.5698 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003674/0.5394, allocations: 1.129 MB / 0.5709 GB, free: 2.734 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.5433, allocations: 1.293 MB / 0.5722 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3668/0.9102, allocations: 22.63 MB / 0.5943 GB, free: 16.85 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.9118, allocations: 0.7844 MB / 0.595 GB, free: 16.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.9121, allocations: 92.89 kB / 0.5951 GB, free: 16.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02205/0.9342, allocations: 9.804 MB / 0.6047 GB, free: 16.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.9346, allocations: 261.7 kB / 0.6049 GB, free: 16.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.9347, allocations: 17.78 kB / 0.6049 GB, free: 16.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05529/0.99, allocations: 25.64 MB / 0.63 GB, free: 16.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003015/0.9903, allocations: 90.38 kB / 0.6301 GB, free: 16.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004363/0.9908, allocations: 143.3 kB / 0.6302 GB, free: 16.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01873/1.01, allocations: 6.5 MB / 0.6366 GB, free: 14.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.01, allocations: 0 / 0.6366 GB, free: 14.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.376e-06/1.01, allocations: 0 / 0.6366 GB, free: 14.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/1.01, allocations: 0 / 0.6366 GB, free: 14.66 MB / 446.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.007473/1.017, allocations: 1.999 MB / 0.6385 GB, free: 13.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/1.017, allocations: 8.031 kB / 0.6385 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007405/1.018, allocations: 92.84 kB / 0.6386 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/1.018, allocations: 321 kB / 0.6389 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/1.018, allocations: 26.91 kB / 0.6389 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/1.018, allocations: 34.06 kB / 0.639 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/1.02, allocations: 0.6095 MB / 0.6396 GB, free: 12.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/1.02, allocations: 6.531 kB / 0.6396 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.24e-05/1.02, allocations: 15.38 kB / 0.6396 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/1.02, allocations: 21.17 kB / 0.6396 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/1.021, allocations: 0.5725 MB / 0.6402 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/1.024, allocations: 2.514 MB / 0.6426 GB, free: 25.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/1.025, allocations: 0.5054 MB / 0.6431 GB, free: 25.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2473/1.272, allocations: 136.2 MB / 0.7761 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/1.272, allocations: 41.22 kB / 0.7762 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.657e-06/1.272, allocations: 0 / 0.7762 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006201/1.278, allocations: 2.697 MB / 0.7788 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/1.278, allocations: 61.12 kB / 0.7788 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/1.279, allocations: 254.6 kB / 0.7791 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/1.279, allocations: 31.52 kB / 0.7791 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/1.279, allocations: 194.7 kB / 0.7793 GB, free: 9.848 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/1.279, allocations: 260.2 kB / 0.7796 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/1.279, allocations: 3.812 kB / 0.7796 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001586/1.279, allocations: 361.4 kB / 0.7799 GB, free: 9.285 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004909/1.28, allocations: 277.1 kB / 0.7802 GB, free: 9.117 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/1.28, allocations: 425 kB / 0.7806 GB, free: 8.781 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005767/1.281, allocations: 335.7 kB / 0.7809 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.281, allocations: 3.953 kB / 0.7809 GB, free: 8.582 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001412/1.282, allocations: 0.8099 MB / 0.7817 GB, free: 8.027 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/1.282, allocations: 13.08 kB / 0.7817 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/1.282, allocations: 4 kB / 0.7817 GB, free: 8.012 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/1.283, allocations: 67.23 kB / 0.7818 GB, free: 7.953 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/1.283, allocations: 133.2 kB / 0.7819 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2929/1.576, allocations: 24.47 MB / 0.8058 GB, free: 310.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000577/1.577, allocations: 58.94 kB / 0.8058 GB, free: 310.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-05/1.577, allocations: 18.86 kB / 0.8059 GB, free: 310.6 MB / 0.5919 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.000339/1.577, allocations: 184.4 kB / 0.806 GB, free: 310.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/1.577, allocations: 42.19 kB / 0.8061 GB, free: 310.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/1.579, allocations: 1.612 MB / 0.8077 GB, free: 310.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/1.579, allocations: 16.77 kB / 0.8077 GB, free: 310.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/1.579, allocations: 3.188 kB / 0.8077 GB, free: 310.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001311/1.581, allocations: 1.202 MB / 0.8088 GB, free: 309.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/1.583, allocations: 1.67 MB / 0.8105 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/1.583, allocations: 3.969 kB / 0.8105 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/1.583, allocations: 89 kB / 0.8106 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003107/1.584, allocations: 113.4 kB / 0.8107 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/1.584, allocations: 7.969 kB / 0.8107 GB, free: 308.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009761/1.585, allocations: 1.9 MB / 0.8125 GB, free: 307 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.585, allocations: 9.531 kB / 0.8125 GB, free: 307 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/1.587, allocations: 1.296 MB / 0.8138 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/1.587, allocations: 146.4 kB / 0.814 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.914e-05/1.587, allocations: 11.97 kB / 0.814 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00038/1.587, allocations: 44.27 kB / 0.814 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.493e-05/1.588, allocations: 47.81 kB / 0.8141 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/1.588, allocations: 15.12 kB / 0.8141 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002131/1.588, allocations: 235.5 kB / 0.8143 GB, free: 306 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.81e-07/1.588, allocations: 2.375 kB / 0.8143 GB, free: 306 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01116/1.599, allocations: 3.186 MB / 0.8174 GB, free: 305.8 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.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.01715/1.616, allocations: 4.144 MB / 0.8215 GB, free: 304.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001933/1.618, allocations: 0.9962 MB / 0.8224 GB, free: 303.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.618, allocations: 7.062 kB / 0.8224 GB, free: 303.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007731/1.619, allocations: 0.4953 MB / 0.8229 GB, free: 302.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/1.621, allocations: 319.4 kB / 0.8232 GB, free: 302.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/1.623, allocations: 1.407 MB / 0.8246 GB, free: 301 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/1.623, allocations: 0.8602 MB / 0.8254 GB, free: 300.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003934/1.624, allocations: 139 kB / 0.8256 GB, free: 300 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.371e-05/1.624, allocations: 43.44 kB / 0.8256 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of SimCode: time 5.81e-07/1.624, allocations: 0 / 0.8256 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.125/1.749, allocations: 116.9 MB / 0.9398 GB, free: 182.9 MB / 0.5919 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: