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.001696/0.001696, allocations: 114.9 kB / 16.37 MB, free: 6.012 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.001598/0.001598, allocations: 192.6 kB / 17.31 MB, free: 5.613 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.688/1.688, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04769/0.04769, allocations: 9.092 MB / 279.6 MB, free: 2.977 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.002123/0.002123, allocations: 67.91 kB / 339.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.423, allocations: 48.15 MB / 387.6 MB, free: 51.45 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1508/0.5739, allocations: 128.1 MB / 0.5037 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.5279/1.102, allocations: 110.1 MB / 0.6112 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009101/1.103, allocations: 9.531 kB / 0.6112 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003665/1.107, allocations: 1.279 MB / 0.6124 GB, free: 14.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004147/1.111, allocations: 1.533 MB / 0.6139 GB, free: 14.14 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.1063/1.217, allocations: 28.69 MB / 0.6419 GB, free: 12.04 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003357/1.22, allocations: 1.328 MB / 0.6432 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/1.221, allocations: 116.8 kB / 0.6433 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02118/1.242, allocations: 8.624 MB / 0.6518 GB, free: 2.375 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006337/1.243, allocations: 357.6 kB / 0.6521 GB, free: 2.051 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.412e-05/1.243, allocations: 44 kB / 0.6522 GB, free: 2.008 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08658/1.329, allocations: 33.67 MB / 0.685 GB, free: 1.328 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003149/1.33, allocations: 123.5 kB / 0.6851 GB, free: 1.211 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006742/1.331, allocations: 309.4 kB / 0.6854 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05782/1.388, allocations: 14.13 MB / 0.6992 GB, free: 3.863 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/1.388, allocations: 0 / 0.6992 GB, free: 3.863 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.377e-06/1.388, allocations: 3.656 kB / 0.6992 GB, free: 3.863 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/1.388, allocations: 0 / 0.6992 GB, free: 3.863 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.00831/1.397, allocations: 2.579 MB / 0.7018 GB, free: 1.238 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/1.397, allocations: 8.031 kB / 0.7018 GB, free: 1.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/1.398, allocations: 83.41 kB / 0.7019 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006594/1.398, allocations: 334.1 kB / 0.7022 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/1.398, allocations: 28.66 kB / 0.7022 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/1.398, allocations: 39.98 kB / 0.7022 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/1.4, allocations: 0.5984 MB / 0.7028 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/1.4, allocations: 12.53 kB / 0.7028 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/1.4, allocations: 16 kB / 0.7028 GB, free: 76 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/1.4, allocations: 15.36 kB / 0.7029 GB, free: 64 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/1.401, allocations: 0.551 MB / 0.7034 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/1.404, allocations: 2.501 MB / 0.7058 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/1.405, allocations: 0.4907 MB / 0.7063 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005147/1.405, allocations: 346.8 kB / 0.7067 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5196/1.925, allocations: 139 MB / 0.8424 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.965e-05/1.925, allocations: 34.83 kB / 0.8424 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 4.609e-06/1.925, allocations: 0 / 0.8424 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=82): time 0.005606/1.931, allocations: 2.333 MB / 0.8447 GB, free: 120 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.443e-05/1.931, allocations: 59.41 kB / 0.8447 GB, free: 119.9 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/1.931, allocations: 250.5 kB / 0.845 GB, free: 119.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/1.931, allocations: 37.7 kB / 0.845 GB, free: 119.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/1.931, allocations: 201.8 kB / 0.8452 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.931, allocations: 255.9 kB / 0.8454 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/1.931, allocations: 98.11 kB / 0.8455 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.743e-05/1.932, allocations: 350.8 kB / 0.8459 GB, free: 118.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/1.932, allocations: 273.2 kB / 0.8461 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/1.932, allocations: 405.3 kB / 0.8465 GB, free: 118 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/1.933, allocations: 0.7203 MB / 0.8472 GB, free: 117.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.933, allocations: 0 / 0.8472 GB, free: 117.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001213/1.935, allocations: 0.798 MB / 0.848 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/1.935, allocations: 8 kB / 0.848 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.935, allocations: 4 kB / 0.848 GB, free: 116.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/1.935, allocations: 65.61 kB / 0.8481 GB, free: 116.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/1.936, allocations: 131.9 kB / 0.8482 GB, free: 116.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06622/2.002, allocations: 19.86 MB / 0.8676 GB, free: 95.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/2.002, allocations: 31.97 kB / 0.8676 GB, free: 95.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/2.003, allocations: 20.08 kB / 0.8676 GB, free: 95.82 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.000401/2.003, allocations: 188.5 kB / 0.8678 GB, free: 95.63 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/2.003, allocations: 47.38 kB / 0.8679 GB, free: 95.59 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/2.005, allocations: 1.574 MB / 0.8694 GB, free: 93.94 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/2.005, allocations: 18.66 kB / 0.8694 GB, free: 93.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/2.005, allocations: 3.938 kB / 0.8694 GB, free: 93.92 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001278/2.007, allocations: 1.18 MB / 0.8706 GB, free: 92.64 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/2.009, allocations: 1.627 MB / 0.8722 GB, free: 90.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/2.009, allocations: 7.969 kB / 0.8722 GB, free: 90.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/2.009, allocations: 75.89 kB / 0.8723 GB, free: 90.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002773/2.01, allocations: 106.2 kB / 0.8724 GB, free: 90.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/2.01, allocations: 8 kB / 0.8724 GB, free: 90.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/2.011, allocations: 2.003 MB / 0.8743 GB, free: 88.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/2.011, allocations: 4.031 kB / 0.8743 GB, free: 88.59 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/2.012, allocations: 1.255 MB / 0.8755 GB, free: 87.31 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/2.013, allocations: 108.7 kB / 0.8757 GB, free: 87.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/2.013, allocations: 19.78 kB / 0.8757 GB, free: 87.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/2.013, allocations: 27.97 kB / 0.8757 GB, free: 87.14 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/2.013, allocations: 39.94 kB / 0.8757 GB, free: 87.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/2.013, allocations: 23.86 kB / 0.8758 GB, free: 87.08 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002535/2.014, allocations: 243.1 kB / 0.876 GB, free: 86.84 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/2.014, allocations: 4.062 kB / 0.876 GB, free: 86.84 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0115/2.025, allocations: 3.513 MB / 0.8794 GB, free: 83.79 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.02159/2.047, allocations: 4.595 MB / 0.8839 GB, free: 79.65 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002597/2.049, allocations: 0.9874 MB / 0.8849 GB, free: 78.64 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/2.049, allocations: 4.188 kB / 0.8849 GB, free: 78.63 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009052/2.05, allocations: 0.4912 MB / 0.8854 GB, free: 78.13 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/2.052, allocations: 396.9 kB / 0.8857 GB, free: 77.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/2.055, allocations: 1.17 MB / 0.8869 GB, free: 76.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/2.055, allocations: 0.8525 MB / 0.8877 GB, free: 75.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005096/2.056, allocations: 141.2 kB / 0.8878 GB, free: 75.57 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/2.056, allocations: 47.44 kB / 0.8879 GB, free: 75.52 MB / 0.5137 GB Notification: Performance of SimCode: time 1.193e-06/2.056, allocations: 0 / 0.8879 GB, free: 75.52 MB / 0.5137 GB Notification: Performance of Templates: time 0.4555/2.511, allocations: 125.9 MB / 1.011 GB, free: 201.4 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)