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.001276/0.001276, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.456/1.456, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04683/0.04683, allocations: 9.095 MB / 278.9 MB, free: 12.18 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.002008/0.002009, allocations: 64.12 kB / 338 MB, free: 25.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1077, allocations: 48.17 MB / 386.2 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3638/0.4715, allocations: 142.2 MB / 0.516 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.376/0.8476, allocations: 97.71 MB / 0.6114 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008392/0.8485, allocations: 7.594 kB / 0.6114 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003502/0.852, allocations: 1.366 MB / 0.6127 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003767/0.8558, allocations: 1.653 MB / 0.6143 GB, free: 296 kB / 446.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.0851/0.9409, allocations: 29.53 MB / 0.6432 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002215/0.9431, allocations: 1.409 MB / 0.6446 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/0.9434, allocations: 129.3 kB / 0.6447 GB, free: 13.23 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01704/0.9605, allocations: 9.858 MB / 0.6543 GB, free: 9.262 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008868/0.9614, allocations: 383.9 kB / 0.6547 GB, free: 9.008 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.9616, allocations: 44 kB / 0.6547 GB, free: 8.965 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07197/1.034, allocations: 33.92 MB / 0.6878 GB, free: 15.69 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002838/1.034, allocations: 119.3 kB / 0.688 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006223/1.035, allocations: 301 kB / 0.6882 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05441/1.089, allocations: 14.17 MB / 0.7021 GB, free: 2.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/1.089, allocations: 0 / 0.7021 GB, free: 2.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/1.089, allocations: 3.938 kB / 0.7021 GB, free: 2.195 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/1.089, allocations: 4 kB / 0.7021 GB, free: 2.191 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.006796/1.096, allocations: 2.567 MB / 0.7046 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/1.096, allocations: 12.03 kB / 0.7046 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006272/1.097, allocations: 83.39 kB / 0.7047 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/1.097, allocations: 344.4 kB / 0.705 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/1.097, allocations: 28.66 kB / 0.705 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/1.097, allocations: 32 kB / 0.7051 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/1.098, allocations: 0.6005 MB / 0.7057 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/1.098, allocations: 0 / 0.7057 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/1.098, allocations: 12 kB / 0.7057 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/1.099, allocations: 22.8 kB / 0.7057 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/1.1, allocations: 0.5442 MB / 0.7062 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/1.102, allocations: 2.512 MB / 0.7087 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/1.103, allocations: 0.4926 MB / 0.7092 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/1.104, allocations: 342.3 kB / 0.7095 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4934/1.597, allocations: 139 MB / 0.8452 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/1.597, allocations: 32.03 kB / 0.8452 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.444e-06/1.597, allocations: 0 / 0.8452 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005921/1.603, allocations: 2.344 MB / 0.8475 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/1.603, allocations: 59.09 kB / 0.8476 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/1.604, allocations: 252.3 kB / 0.8478 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/1.604, allocations: 33.55 kB / 0.8479 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/1.604, allocations: 194.9 kB / 0.848 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/1.604, allocations: 260.9 kB / 0.8483 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/1.604, allocations: 101 kB / 0.8484 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.123e-05/1.604, allocations: 350.7 kB / 0.8487 GB, free: 273.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/1.605, allocations: 278.9 kB / 0.849 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/1.605, allocations: 398.4 kB / 0.8494 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009613/1.606, allocations: 0.7144 MB / 0.8501 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/1.606, allocations: 0 / 0.8501 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001368/1.608, allocations: 0.8007 MB / 0.8508 GB, free: 272 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/1.608, allocations: 7.938 kB / 0.8509 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.608, allocations: 3.969 kB / 0.8509 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002457/1.608, allocations: 66.14 kB / 0.8509 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/1.608, allocations: 123.7 kB / 0.851 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08931/1.698, allocations: 24.85 MB / 0.8753 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/1.698, allocations: 31.97 kB / 0.8753 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/1.698, allocations: 15.98 kB / 0.8754 GB, free: 248.8 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.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.0002802/1.699, allocations: 199.5 kB / 0.8755 GB, free: 248.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/1.699, allocations: 39.53 kB / 0.8756 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/1.701, allocations: 1.579 MB / 0.8771 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/1.701, allocations: 14.17 kB / 0.8771 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.701, allocations: 0 / 0.8771 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001211/1.702, allocations: 1.18 MB / 0.8783 GB, free: 245.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/1.704, allocations: 1.634 MB / 0.8799 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.704, allocations: 7.938 kB / 0.8799 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/1.704, allocations: 78.16 kB / 0.88 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002524/1.704, allocations: 112.7 kB / 0.8801 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/1.704, allocations: 8 kB / 0.8801 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009695/1.705, allocations: 1.997 MB / 0.882 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.705, allocations: 0 / 0.882 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/1.707, allocations: 1.249 MB / 0.8832 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/1.707, allocations: 120.6 kB / 0.8834 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.177e-05/1.707, allocations: 11.91 kB / 0.8834 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/1.708, allocations: 27.91 kB / 0.8834 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/1.708, allocations: 46.62 kB / 0.8834 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/1.708, allocations: 12 kB / 0.8835 GB, free: 240 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002071/1.708, allocations: 243 kB / 0.8837 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.708, allocations: 0 / 0.8837 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008507/1.717, allocations: 3.188 MB / 0.8868 GB, free: 237 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 (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.01762/1.734, allocations: 4.15 MB / 0.8909 GB, free: 233.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002446/1.737, allocations: 0.9908 MB / 0.8918 GB, free: 232.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.737, allocations: 4 kB / 0.8918 GB, free: 232.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008856/1.738, allocations: 0.4912 MB / 0.8923 GB, free: 231.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/1.74, allocations: 399.9 kB / 0.8927 GB, free: 231.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/1.742, allocations: 1.164 MB / 0.8938 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/1.742, allocations: 0.8641 MB / 0.8947 GB, free: 229.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005088/1.743, allocations: 143.2 kB / 0.8948 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.837e-05/1.743, allocations: 35.44 kB / 0.8948 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.163e-06/1.743, allocations: 0 / 0.8948 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.1356/1.879, allocations: 118.5 MB / 1.011 GB, free: 110.5 MB / 0.5919 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)