Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 107.4 kB / 16.36 MB, free: 6.285 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.001251/0.001251, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.338/1.338, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04699/0.04699, allocations: 9.104 MB / 279.6 MB, free: 2.961 MB / 222.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.001428/0.001428, allocations: 67.84 kB / 339.5 MB, free: 6.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2011, allocations: 48.13 MB / 387.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1078/0.309, allocations: 128.1 MB / 0.5036 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2907/0.5997, allocations: 110.1 MB / 0.6112 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005888/0.6004, allocations: 8.375 kB / 0.6112 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002739/0.6032, allocations: 1.279 MB / 0.6124 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003466/0.6066, allocations: 1.536 MB / 0.6139 GB, free: 14.2 MB / 430.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.07529/0.6819, allocations: 28.69 MB / 0.6419 GB, free: 12.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001895/0.6838, allocations: 1.332 MB / 0.6432 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.6841, allocations: 122.9 kB / 0.6433 GB, free: 10.61 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01378/0.6979, allocations: 8.619 MB / 0.6518 GB, free: 2.348 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004707/0.6984, allocations: 361.4 kB / 0.6521 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.986e-05/0.6985, allocations: 44 kB / 0.6522 GB, free: 1.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05792/0.7564, allocations: 33.67 MB / 0.685 GB, free: 1.301 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.7567, allocations: 126.5 kB / 0.6851 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004786/0.7572, allocations: 305.5 kB / 0.6854 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04219/0.7994, allocations: 14.13 MB / 0.6992 GB, free: 3.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.7994, allocations: 4 kB / 0.6992 GB, free: 3.832 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.7994, allocations: 0 / 0.6992 GB, free: 3.832 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.7994, allocations: 0 / 0.6992 GB, free: 3.832 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.005571/0.805, allocations: 2.569 MB / 0.7017 GB, free: 1.215 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.8051, allocations: 8.031 kB / 0.7018 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006042/0.8057, allocations: 87.39 kB / 0.7018 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004977/0.8062, allocations: 340.8 kB / 0.7022 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.8062, allocations: 28.66 kB / 0.7022 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.8063, allocations: 36 kB / 0.7022 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.8075, allocations: 0.6 MB / 0.7028 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.8075, allocations: 3.906 kB / 0.7028 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.809e-05/0.8076, allocations: 16 kB / 0.7028 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.8076, allocations: 15.91 kB / 0.7028 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.8089, allocations: 0.5493 MB / 0.7034 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.8113, allocations: 2.512 MB / 0.7058 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.8125, allocations: 498.5 kB / 0.7063 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/0.813, allocations: 343.8 kB / 0.7066 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3689/1.182, allocations: 139 MB / 0.8424 GB, free: 122.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/1.182, allocations: 38.84 kB / 0.8424 GB, free: 122.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 3.236e-06/1.182, allocations: 3.938 kB / 0.8424 GB, free: 122.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=82): time 0.005268/1.187, allocations: 2.328 MB / 0.8447 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/1.187, allocations: 59.39 kB / 0.8447 GB, free: 119.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/1.188, allocations: 256.6 kB / 0.845 GB, free: 119.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/1.188, allocations: 37.64 kB / 0.845 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/1.188, allocations: 186.4 kB / 0.8452 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/1.188, allocations: 262.7 kB / 0.8454 GB, free: 119 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/1.188, allocations: 98.11 kB / 0.8455 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.322e-05/1.188, allocations: 362.7 kB / 0.8459 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/1.188, allocations: 269.3 kB / 0.8461 GB, free: 118.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/1.189, allocations: 405.3 kB / 0.8465 GB, free: 117.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008726/1.19, allocations: 0.7213 MB / 0.8472 GB, free: 117.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/1.19, allocations: 0 / 0.8472 GB, free: 117.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00124/1.191, allocations: 0.791 MB / 0.848 GB, free: 116.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/1.191, allocations: 8.469 kB / 0.848 GB, free: 116.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/1.191, allocations: 7.062 kB / 0.848 GB, free: 116.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/1.191, allocations: 65.61 kB / 0.8481 GB, free: 116.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005852/1.192, allocations: 127.1 kB / 0.8482 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06525/1.257, allocations: 19.86 MB / 0.8676 GB, free: 95.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004493/1.258, allocations: 28.78 kB / 0.8676 GB, free: 95.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/1.258, allocations: 20 kB / 0.8676 GB, free: 95.62 MB / 0.5137 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.0002666/1.258, allocations: 184.4 kB / 0.8678 GB, free: 95.43 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/1.258, allocations: 47.44 kB / 0.8679 GB, free: 95.38 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/1.26, allocations: 1.582 MB / 0.8694 GB, free: 93.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/1.26, allocations: 15.59 kB / 0.8694 GB, free: 93.71 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.26, allocations: 4.562 kB / 0.8694 GB, free: 93.71 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001137/1.261, allocations: 1.176 MB / 0.8706 GB, free: 92.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/1.263, allocations: 1.634 MB / 0.8722 GB, free: 90.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.263, allocations: 7.875 kB / 0.8722 GB, free: 90.74 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/1.263, allocations: 76.83 kB / 0.8722 GB, free: 90.67 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002642/1.264, allocations: 105.7 kB / 0.8723 GB, free: 90.56 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/1.264, allocations: 12 kB / 0.8724 GB, free: 90.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000921/1.265, allocations: 1.993 MB / 0.8743 GB, free: 88.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.265, allocations: 4.031 kB / 0.8743 GB, free: 88.39 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/1.266, allocations: 1.255 MB / 0.8755 GB, free: 87.11 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.642e-05/1.266, allocations: 108.7 kB / 0.8756 GB, free: 86.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.505e-05/1.266, allocations: 19.84 kB / 0.8757 GB, free: 86.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/1.267, allocations: 31.97 kB / 0.8757 GB, free: 86.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-05/1.267, allocations: 43.94 kB / 0.8757 GB, free: 86.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.506e-05/1.267, allocations: 15.92 kB / 0.8757 GB, free: 86.87 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001954/1.267, allocations: 243.1 kB / 0.876 GB, free: 86.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/1.267, allocations: 0 / 0.876 GB, free: 86.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00805/1.275, allocations: 3.519 MB / 0.8794 GB, free: 83.57 MB / 0.5137 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.01514/1.29, allocations: 4.59 MB / 0.8839 GB, free: 79.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001986/1.292, allocations: 0.9912 MB / 0.8849 GB, free: 78.46 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.292, allocations: 0 / 0.8849 GB, free: 78.46 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000765/1.293, allocations: 0.5069 MB / 0.8854 GB, free: 77.95 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/1.295, allocations: 391.9 kB / 0.8857 GB, free: 77.59 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/1.296, allocations: 1.164 MB / 0.8869 GB, free: 76.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/1.297, allocations: 0.8486 MB / 0.8877 GB, free: 75.54 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003637/1.297, allocations: 148.5 kB / 0.8878 GB, free: 75.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.868e-05/1.297, allocations: 39.44 kB / 0.8879 GB, free: 75.36 MB / 0.5137 GB Notification: Performance of SimCode: time 9.82e-07/1.297, allocations: 0 / 0.8879 GB, free: 75.36 MB / 0.5137 GB Notification: Performance of Templates: time 0.2762/1.573, allocations: 125.9 MB / 1.011 GB, free: 201.1 MB / 0.5137 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)