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.006589/0.006589, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001375/0.001375, allocations: 196.4 kB / 16.68 MB, free: 5.957 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.365/1.365, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04553/0.04553, allocations: 9.104 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.001416/0.001416, allocations: 75.83 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3046, allocations: 48.15 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1469/0.4515, allocations: 128.1 MB / 0.5506 GB, free: 144 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3772/0.8288, allocations: 110.1 MB / 0.6581 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006493/0.8295, allocations: 10.84 kB / 0.6581 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004139/0.8337, allocations: 1.279 MB / 0.6593 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003135/0.8369, allocations: 1.546 MB / 0.6609 GB, free: 256 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.07957/0.9165, allocations: 28.67 MB / 0.6889 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002174/0.9187, allocations: 1.331 MB / 0.6902 GB, free: 7.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.919, allocations: 123.7 kB / 0.6903 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01538/0.9344, allocations: 8.639 MB / 0.6987 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005127/0.9349, allocations: 369.3 kB / 0.6991 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.686e-05/0.935, allocations: 44 kB / 0.6991 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06476/0.9998, allocations: 33.65 MB / 0.732 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002846/1, allocations: 124.9 kB / 0.7321 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006349/1.001, allocations: 301.8 kB / 0.7324 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04387/1.045, allocations: 14.14 MB / 0.7462 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.792e-05/1.045, allocations: 0 / 0.7462 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.774e-06/1.045, allocations: 0 / 0.7462 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.698e-06/1.045, allocations: 0 / 0.7462 GB, free: 4.852 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.006404/1.051, allocations: 2.567 MB / 0.7487 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/1.051, allocations: 8.031 kB / 0.7487 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006721/1.052, allocations: 91.39 kB / 0.7488 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/1.052, allocations: 330.8 kB / 0.7491 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/1.052, allocations: 28.66 kB / 0.7491 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/1.053, allocations: 36 kB / 0.7492 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/1.054, allocations: 0.6002 MB / 0.7498 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/1.054, allocations: 3.938 kB / 0.7498 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/1.054, allocations: 23.98 kB / 0.7498 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/1.054, allocations: 14.02 kB / 0.7498 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/1.055, allocations: 0.5481 MB / 0.7503 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/1.058, allocations: 2.497 MB / 0.7528 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/1.059, allocations: 0.5027 MB / 0.7533 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005702/1.06, allocations: 342.4 kB / 0.7536 GB, free: 12.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4756/1.535, allocations: 139 MB / 0.8893 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/1.536, allocations: 43.38 kB / 0.8893 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 4.879e-06/1.536, allocations: 0.5 kB / 0.8893 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006342/1.542, allocations: 2.325 MB / 0.8916 GB, free: 221.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/1.542, allocations: 60.66 kB / 0.8917 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/1.542, allocations: 258.7 kB / 0.8919 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/1.542, allocations: 32.8 kB / 0.892 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/1.542, allocations: 188.8 kB / 0.8921 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/1.543, allocations: 264.8 kB / 0.8924 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/1.543, allocations: 97.55 kB / 0.8925 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.933e-05/1.543, allocations: 360.4 kB / 0.8928 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/1.543, allocations: 274.6 kB / 0.8931 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/1.544, allocations: 408.5 kB / 0.8935 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009978/1.545, allocations: 0.7081 MB / 0.8942 GB, free: 219 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.545, allocations: 0 / 0.8942 GB, free: 219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001401/1.546, allocations: 0.7904 MB / 0.8949 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/1.546, allocations: 11.98 kB / 0.895 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/1.546, allocations: 4 kB / 0.895 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003665/1.547, allocations: 64.31 kB / 0.895 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007357/1.547, allocations: 123.8 kB / 0.8951 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06776/1.615, allocations: 19.88 MB / 0.9145 GB, free: 197.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/1.616, allocations: 27.91 kB / 0.9146 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/1.616, allocations: 22.31 kB / 0.9146 GB, free: 197.5 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.0002858/1.616, allocations: 204.1 kB / 0.9148 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/1.616, allocations: 39.53 kB / 0.9148 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/1.618, allocations: 1.574 MB / 0.9164 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/1.618, allocations: 15.98 kB / 0.9164 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/1.618, allocations: 0 / 0.9164 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001265/1.619, allocations: 1.176 MB / 0.9175 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/1.622, allocations: 1.637 MB / 0.9191 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/1.622, allocations: 0 / 0.9191 GB, free: 192.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/1.622, allocations: 83.91 kB / 0.9192 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002653/1.622, allocations: 105.5 kB / 0.9193 GB, free: 192.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/1.622, allocations: 11.98 kB / 0.9193 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009791/1.623, allocations: 1.993 MB / 0.9213 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.623, allocations: 0 / 0.9213 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/1.625, allocations: 1.25 MB / 0.9225 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/1.625, allocations: 128.4 kB / 0.9226 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/1.625, allocations: 12.06 kB / 0.9226 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/1.626, allocations: 23.97 kB / 0.9226 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/1.626, allocations: 39.95 kB / 0.9227 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/1.626, allocations: 15.98 kB / 0.9227 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002133/1.626, allocations: 243 kB / 0.9229 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.626, allocations: 0 / 0.9229 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009395/1.635, allocations: 3.516 MB / 0.9264 GB, free: 185.5 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.01813/1.654, allocations: 4.593 MB / 0.9308 GB, free: 181.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002285/1.656, allocations: 0.9992 MB / 0.9318 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.656, allocations: 0 / 0.9318 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008816/1.657, allocations: 0.5073 MB / 0.9323 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/1.659, allocations: 394.5 kB / 0.9327 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/1.661, allocations: 1.148 MB / 0.9338 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/1.661, allocations: 0.8486 MB / 0.9346 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000386/1.661, allocations: 137.1 kB / 0.9348 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.209e-05/1.661, allocations: 43.38 kB / 0.9348 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of SimCode: time 6.81e-07/1.661, allocations: 0 / 0.9348 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1408/1.802, allocations: 126.3 MB / 1.058 GB, free: 50.92 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)