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.00596/0.00596, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001116/0.001116, allocations: 201.3 kB / 16.68 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.389/1.389, allocations: 205.1 MB / 222.5 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04556/0.04556, allocations: 9.099 MB / 279 MB, free: 12.1 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.001526/0.001526, allocations: 71.84 kB / 387.5 MB, free: 7.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2697, allocations: 48.16 MB / 435.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1401/0.4099, allocations: 128.1 MB / 0.5506 GB, free: 156 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3813/0.7913, allocations: 110.1 MB / 0.6581 GB, free: 332 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00081/0.7921, allocations: 7.844 kB / 0.6581 GB, free: 332 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003486/0.7957, allocations: 1.275 MB / 0.6593 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.7997, allocations: 1.547 MB / 0.6608 GB, free: 276 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.07986/0.8796, allocations: 28.69 MB / 0.6889 GB, free: 8.129 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.8816, allocations: 1.321 MB / 0.6902 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002912/0.8819, allocations: 135.3 kB / 0.6903 GB, free: 7.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01576/0.8977, allocations: 8.628 MB / 0.6987 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005281/0.8983, allocations: 362.4 kB / 0.6991 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.946e-05/0.8983, allocations: 44 kB / 0.6991 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06234/0.9607, allocations: 33.66 MB / 0.732 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.961, allocations: 118.1 kB / 0.7321 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005581/0.9616, allocations: 301.5 kB / 0.7324 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05144/1.013, allocations: 14.16 MB / 0.7462 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/1.013, allocations: 0 / 0.7462 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.425e-06/1.013, allocations: 0 / 0.7462 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.244e-05/1.013, allocations: 8 kB / 0.7462 GB, free: 4.816 MB / 0.5294 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.00685/1.02, allocations: 2.672 MB / 0.7488 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/1.02, allocations: 8.031 kB / 0.7488 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006328/1.021, allocations: 95.62 kB / 0.7489 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004693/1.021, allocations: 342.8 kB / 0.7492 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/1.021, allocations: 28.66 kB / 0.7493 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/1.021, allocations: 32 kB / 0.7493 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/1.023, allocations: 0.601 MB / 0.7499 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/1.023, allocations: 11.92 kB / 0.7499 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/1.023, allocations: 19.94 kB / 0.7499 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/1.023, allocations: 11.05 kB / 0.7499 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/1.024, allocations: 0.5454 MB / 0.7505 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/1.027, allocations: 2.511 MB / 0.7529 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/1.028, allocations: 0.4963 MB / 0.7534 GB, free: 13.14 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/1.029, allocations: 334.3 kB / 0.7537 GB, free: 12.81 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4407/1.469, allocations: 139 MB / 0.8894 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/1.469, allocations: 44.19 kB / 0.8895 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.858e-06/1.469, allocations: 0 / 0.8895 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005681/1.475, allocations: 2.329 MB / 0.8918 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/1.475, allocations: 54.56 kB / 0.8918 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/1.475, allocations: 259.9 kB / 0.8921 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/1.475, allocations: 36.2 kB / 0.8921 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.167e-05/1.476, allocations: 188.2 kB / 0.8923 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/1.476, allocations: 281.1 kB / 0.8925 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/1.476, allocations: 99.86 kB / 0.8926 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.542e-05/1.476, allocations: 357.4 kB / 0.893 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/1.476, allocations: 270.8 kB / 0.8932 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/1.477, allocations: 409.5 kB / 0.8936 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009135/1.478, allocations: 0.7065 MB / 0.8943 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.478, allocations: 4 kB / 0.8943 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001245/1.479, allocations: 0.7961 MB / 0.8951 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/1.479, allocations: 11.06 kB / 0.8951 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.479, allocations: 4 kB / 0.8951 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002348/1.479, allocations: 62.23 kB / 0.8952 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/1.48, allocations: 134.7 kB / 0.8953 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06361/1.543, allocations: 19.88 MB / 0.9147 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/1.544, allocations: 35.98 kB / 0.9147 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.114e-05/1.544, allocations: 19.98 kB / 0.9148 GB, free: 197.3 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.0002289/1.544, allocations: 190.5 kB / 0.9149 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.855e-05/1.544, allocations: 47.72 kB / 0.915 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/1.546, allocations: 1.588 MB / 0.9165 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/1.546, allocations: 7.672 kB / 0.9166 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/1.546, allocations: 0 / 0.9166 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001132/1.547, allocations: 1.176 MB / 0.9177 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/1.549, allocations: 1.646 MB / 0.9193 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/1.549, allocations: 0 / 0.9193 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/1.549, allocations: 79.88 kB / 0.9194 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002376/1.55, allocations: 105.7 kB / 0.9195 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/1.55, allocations: 4 kB / 0.9195 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008477/1.55, allocations: 2.002 MB / 0.9214 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.55, allocations: 0 / 0.9214 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/1.552, allocations: 1.254 MB / 0.9227 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.324e-05/1.552, allocations: 119 kB / 0.9228 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/1.552, allocations: 7.953 kB / 0.9228 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/1.552, allocations: 27.97 kB / 0.9228 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.687e-05/1.553, allocations: 44 kB / 0.9229 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/1.553, allocations: 19.94 kB / 0.9229 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001908/1.553, allocations: 243 kB / 0.9231 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/1.553, allocations: 3.938 kB / 0.9231 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007245/1.56, allocations: 3.579 MB / 0.9266 GB, free: 185.2 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.01623/1.576, allocations: 4.645 MB / 0.9311 GB, free: 181 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002117/1.578, allocations: 1.004 MB / 0.9321 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.579, allocations: 0 / 0.9321 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007857/1.579, allocations: 0.4953 MB / 0.9326 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/1.581, allocations: 399.2 kB / 0.933 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/1.583, allocations: 1.173 MB / 0.9341 GB, free: 177.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/1.583, allocations: 0.8485 MB / 0.935 GB, free: 177 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003638/1.583, allocations: 144.8 kB / 0.9351 GB, free: 176.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.165e-05/1.584, allocations: 47.42 kB / 0.9351 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.583e-06/1.584, allocations: 0 / 0.9351 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.124/1.708, allocations: 126.1 MB / 1.058 GB, free: 50.66 MB / 0.6075 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)