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.006788/0.006787, allocations: 102.1 kB / 15.73 MB, free: 6.031 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.001755/0.001755, allocations: 194.4 kB / 16.67 MB, free: 5.969 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.774/1.774, allocations: 205.1 MB / 222.5 MB, free: 4.336 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05254/0.05254, allocations: 9.081 MB / 279 MB, free: 11.96 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.001436/0.001436, allocations: 67.89 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3025, allocations: 48.15 MB / 435.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1761/0.4786, allocations: 142.2 MB / 0.5643 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.503/0.9816, allocations: 97.7 MB / 0.6597 GB, free: 300 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000854/0.9825, allocations: 5.156 kB / 0.6597 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004676/0.9873, allocations: 1.366 MB / 0.6611 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006143/0.9935, allocations: 1.654 MB / 0.6627 GB, free: 244 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.1268/1.12, allocations: 29.55 MB / 0.6915 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002144/1.122, allocations: 1.407 MB / 0.6929 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/1.123, allocations: 129.8 kB / 0.693 GB, free: 5.883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01727/1.14, allocations: 9.873 MB / 0.7027 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007299/1.141, allocations: 379.3 kB / 0.703 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.2e-05/1.141, allocations: 44 kB / 0.7031 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07171/1.213, allocations: 35.4 MB / 0.7377 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002949/1.213, allocations: 126.2 kB / 0.7378 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006222/1.214, allocations: 303.7 kB / 0.7381 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05157/1.265, allocations: 14.16 MB / 0.7519 GB, free: 15.86 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.265, allocations: 0 / 0.7519 GB, free: 15.86 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.613e-06/1.265, allocations: 0 / 0.7519 GB, free: 15.86 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.033e-05/1.265, allocations: 0 / 0.7519 GB, free: 15.86 MB / 0.545 GB 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.007589/1.273, allocations: 2.568 MB / 0.7544 GB, free: 13.25 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/1.273, allocations: 8.031 kB / 0.7544 GB, free: 13.24 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006779/1.274, allocations: 87.39 kB / 0.7545 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000598/1.274, allocations: 348.9 kB / 0.7548 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/1.274, allocations: 28.66 kB / 0.7548 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.32e-05/1.274, allocations: 32 kB / 0.7549 GB, free: 12.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/1.276, allocations: 0.5961 MB / 0.7555 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/1.276, allocations: 3.938 kB / 0.7555 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/1.276, allocations: 20 kB / 0.7555 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/1.276, allocations: 18.64 kB / 0.7555 GB, free: 12.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/1.277, allocations: 0.5442 MB / 0.756 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/1.28, allocations: 2.51 MB / 0.7585 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/1.281, allocations: 0.4949 MB / 0.759 GB, free: 8.312 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/1.282, allocations: 341.1 kB / 0.7593 GB, free: 7.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4801/1.762, allocations: 139 MB / 0.895 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/1.762, allocations: 38.78 kB / 0.8951 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.987e-06/1.762, allocations: 2.5 kB / 0.8951 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005847/1.768, allocations: 2.323 MB / 0.8973 GB, free: 217 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/1.768, allocations: 58.23 kB / 0.8974 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/1.768, allocations: 262.5 kB / 0.8976 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/1.768, allocations: 31.55 kB / 0.8977 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/1.768, allocations: 196.2 kB / 0.8979 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/1.768, allocations: 261.7 kB / 0.8981 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/1.768, allocations: 97.02 kB / 0.8982 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.269e-05/1.769, allocations: 354.4 kB / 0.8985 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/1.769, allocations: 267.2 kB / 0.8988 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004559/1.769, allocations: 413.6 kB / 0.8992 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008823/1.77, allocations: 0.7095 MB / 0.8999 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/1.77, allocations: 0 / 0.8999 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001209/1.772, allocations: 0.7989 MB / 0.9007 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/1.772, allocations: 9.25 kB / 0.9007 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/1.772, allocations: 6.531 kB / 0.9007 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/1.772, allocations: 61.67 kB / 0.9007 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/1.772, allocations: 133.7 kB / 0.9009 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06425/1.837, allocations: 19.08 MB / 0.9195 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/1.837, allocations: 24.05 kB / 0.9195 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/1.837, allocations: 26.3 kB / 0.9195 GB, free: 193.9 MB / 0.6075 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.0002629/1.838, allocations: 196 kB / 0.9197 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.976e-05/1.838, allocations: 43.44 kB / 0.9198 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/1.839, allocations: 1.578 MB / 0.9213 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/1.839, allocations: 8 kB / 0.9213 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/1.839, allocations: 0 / 0.9213 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/1.84, allocations: 1.184 MB / 0.9225 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/1.842, allocations: 1.64 MB / 0.9241 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.842, allocations: 0 / 0.9241 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/1.843, allocations: 79.88 kB / 0.9241 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002476/1.843, allocations: 105.6 kB / 0.9242 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/1.843, allocations: 15.94 kB / 0.9243 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009709/1.844, allocations: 1.994 MB / 0.9262 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.844, allocations: 0 / 0.9262 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/1.846, allocations: 1.242 MB / 0.9274 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/1.846, allocations: 120.5 kB / 0.9275 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.158e-05/1.846, allocations: 12 kB / 0.9276 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/1.846, allocations: 23.97 kB / 0.9276 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/1.846, allocations: 48 kB / 0.9276 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/1.846, allocations: 12 kB / 0.9276 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002127/1.846, allocations: 243 kB / 0.9279 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/1.846, allocations: 0 / 0.9279 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009196/1.856, allocations: 3.519 MB / 0.9313 GB, free: 181.8 MB / 0.6075 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.01521/1.871, allocations: 4.567 MB / 0.9358 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00196/1.873, allocations: 1.002 MB / 0.9367 GB, free: 176.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.873, allocations: 7.938 kB / 0.9367 GB, free: 176.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007508/1.874, allocations: 0.4991 MB / 0.9372 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/1.875, allocations: 396.6 kB / 0.9376 GB, free: 175.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/1.877, allocations: 1.154 MB / 0.9387 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/1.877, allocations: 0.8564 MB / 0.9396 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003286/1.878, allocations: 138.8 kB / 0.9397 GB, free: 173.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/1.878, allocations: 39.42 kB / 0.9397 GB, free: 173.6 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/1.878, allocations: 4 kB / 0.9397 GB, free: 173.6 MB / 0.6075 GB Notification: Performance of Templates: time 0.1311/2.009, allocations: 126.5 MB / 1.063 GB, free: 47.03 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.makefile (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)