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: translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001079, allocations: 99.7 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.001423/0.001423, allocations: 177.3 kB / 15.94 MB, free: 228 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.632/1.632, allocations: 205.4 MB / 222.1 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0464/0.0464, allocations: 9.065 MB / 279.4 MB, free: 12.15 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.0005188/0.0005189, allocations: 12.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1062, allocations: 49.19 MB / 388.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3558/0.4621, allocations: 117.8 MB / 0.4942 GB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1081/0.5702, allocations: 77.43 MB / 0.5698 GB, free: 3.891 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006382/0.5709, allocations: 7.938 kB / 0.5698 GB, free: 3.883 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003793/0.5747, allocations: 1.125 MB / 0.5709 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003865/0.5786, allocations: 1.293 MB / 0.5722 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3823/0.961, allocations: 22.63 MB / 0.5943 GB, free: 16.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.9628, allocations: 0.7927 MB / 0.595 GB, free: 16.76 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.9631, allocations: 89.03 kB / 0.5951 GB, free: 16.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02126/0.9843, allocations: 9.803 MB / 0.6047 GB, free: 16.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.9848, allocations: 254.6 kB / 0.6049 GB, free: 16.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-05/0.9848, allocations: 19.31 kB / 0.6049 GB, free: 16.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04776/1.033, allocations: 23.3 MB / 0.6277 GB, free: 16.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/1.033, allocations: 88.17 kB / 0.6278 GB, free: 16.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004953/1.034, allocations: 144.1 kB / 0.6279 GB, free: 16.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01613/1.05, allocations: 5.933 MB / 0.6337 GB, free: 14.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/1.05, allocations: 0 / 0.6337 GB, free: 14.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.05, allocations: 0 / 0.6337 GB, free: 14.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/1.05, allocations: 0 / 0.6337 GB, free: 14.97 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.00555/1.055, allocations: 1.853 MB / 0.6355 GB, free: 13.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/1.055, allocations: 11.38 kB / 0.6355 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005767/1.056, allocations: 86.72 kB / 0.6356 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000409/1.056, allocations: 321.5 kB / 0.6359 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.233e-05/1.056, allocations: 30.34 kB / 0.636 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/1.056, allocations: 31.41 kB / 0.636 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/1.058, allocations: 0.589 MB / 0.6366 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/1.058, allocations: 6.844 kB / 0.6366 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/1.058, allocations: 22.78 kB / 0.6366 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/1.058, allocations: 14.22 kB / 0.6366 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/1.059, allocations: 0.5477 MB / 0.6371 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/1.061, allocations: 2.487 MB / 0.6396 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009516/1.062, allocations: 0.4989 MB / 0.6401 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1614/1.223, allocations: 111.7 MB / 0.7492 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/1.223, allocations: 38.59 kB / 0.7492 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 3.907e-06/1.223, allocations: 0 / 0.7492 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83): time 0.007213/1.231, allocations: 2.805 MB / 0.7519 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/1.231, allocations: 59.39 kB / 0.752 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/1.231, allocations: 254.2 kB / 0.7522 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/1.231, allocations: 28.95 kB / 0.7523 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/1.231, allocations: 190.1 kB / 0.7525 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000182/1.231, allocations: 270.7 kB / 0.7527 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/1.231, allocations: 3.812 kB / 0.7527 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001243/1.231, allocations: 353.6 kB / 0.7531 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005041/1.232, allocations: 292.6 kB / 0.7533 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000604/1.233, allocations: 412.4 kB / 0.7537 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006064/1.233, allocations: 338.2 kB / 0.7541 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/1.233, allocations: 0 / 0.7541 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001584/1.235, allocations: 0.8426 MB / 0.7549 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/1.235, allocations: 4 kB / 0.7549 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/1.235, allocations: 5.406 kB / 0.7549 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003129/1.235, allocations: 79.84 kB / 0.755 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005505/1.236, allocations: 119.6 kB / 0.7551 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04649/1.282, allocations: 13.24 MB / 0.768 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005657/1.283, allocations: 55.61 kB / 0.7681 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/1.283, allocations: 16 kB / 0.7681 GB, free: 8.281 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.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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003301/1.283, allocations: 190.6 kB / 0.7683 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.587e-05/1.283, allocations: 51.39 kB / 0.7683 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/1.286, allocations: 1.757 MB / 0.77 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/1.286, allocations: 18.88 kB / 0.77 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/1.286, allocations: 0.9844 kB / 0.77 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001667/1.287, allocations: 1.281 MB / 0.7713 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/1.29, allocations: 1.78 MB / 0.773 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/1.29, allocations: 1.094 kB / 0.773 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003632/1.29, allocations: 93.12 kB / 0.7731 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003628/1.291, allocations: 120.4 kB / 0.7732 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/1.291, allocations: 14.42 kB / 0.7732 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/1.292, allocations: 2.002 MB / 0.7752 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.292, allocations: 3.844 kB / 0.7752 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/1.295, allocations: 1.466 MB / 0.7766 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/1.295, allocations: 139.4 kB / 0.7768 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.643e-05/1.295, allocations: 11.19 kB / 0.7768 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/1.295, allocations: 52.66 kB / 0.7768 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/1.295, allocations: 47.14 kB / 0.7769 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/1.295, allocations: 15.48 kB / 0.7769 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002426/1.296, allocations: 226.7 kB / 0.7771 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.2e-07/1.296, allocations: 0 / 0.7771 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01028/1.306, allocations: 2.977 MB / 0.78 GB, free: 13.96 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 (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 {(2,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01914/1.325, allocations: 3.838 MB / 0.7838 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002465/1.328, allocations: 1.071 MB / 0.7848 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/1.328, allocations: 0 / 0.7848 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009593/1.329, allocations: 0.5591 MB / 0.7854 GB, free: 9.426 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/1.331, allocations: 320 kB / 0.7857 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/1.333, allocations: 1.456 MB / 0.7871 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/1.334, allocations: 0.8723 MB / 0.7879 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005168/1.334, allocations: 125.7 kB / 0.7881 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/1.334, allocations: 38.38 kB / 0.7881 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of SimCode: time 1.213e-06/1.334, allocations: 4.547 kB / 0.7881 GB, free: 6.809 MB / 0.5919 GB Notification: Performance of Templates: time 0.3146/1.649, allocations: 110.7 MB / 0.8962 GB, free: 228.8 MB / 0.5919 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1) Environment - environmentSimulation: