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.004896/0.004896, allocations: 100.5 kB / 15.73 MB, free: 6 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.001151/0.001151, allocations: 191.4 kB / 16.67 MB, free: 5.926 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.213/1.213, allocations: 205.1 MB / 222.5 MB, free: 4.406 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04274/0.04274, allocations: 9.096 MB / 279 MB, free: 11.94 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.00133/0.00133, allocations: 75.81 kB / 387.5 MB, free: 7.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2316, allocations: 48.15 MB / 435.7 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1213/0.3529, allocations: 128.1 MB / 0.5506 GB, free: 160 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3093/0.6622, allocations: 110.1 MB / 0.6581 GB, free: 324 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004811/0.6628, allocations: 9.531 kB / 0.6581 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.6655, allocations: 1.457 MB / 0.6595 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.6686, allocations: 1.723 MB / 0.6612 GB, free: 268 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.0638/0.7324, allocations: 30.49 MB / 0.691 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.734, allocations: 1.326 MB / 0.6923 GB, free: 6.445 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.7342, allocations: 117.3 kB / 0.6924 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01255/0.7468, allocations: 8.816 MB / 0.701 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.7472, allocations: 362.8 kB / 0.7013 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.7473, allocations: 47.31 kB / 0.7014 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05447/0.8018, allocations: 33.67 MB / 0.7343 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.8021, allocations: 115.5 kB / 0.7344 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004537/0.8026, allocations: 306.8 kB / 0.7347 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03943/0.842, allocations: 14.13 MB / 0.7485 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.8421, allocations: 0 / 0.7485 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.02e-07/0.8421, allocations: 3.938 kB / 0.7485 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.8421, allocations: 4 kB / 0.7485 GB, free: 2.496 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.005617/0.8477, allocations: 2.568 MB / 0.751 GB, free: 15.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.8477, allocations: 8.031 kB / 0.751 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000554/0.8483, allocations: 87.41 kB / 0.7511 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.8487, allocations: 337.8 kB / 0.7514 GB, free: 15.42 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.8487, allocations: 32.66 kB / 0.7514 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.8488, allocations: 28 kB / 0.7515 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.8499, allocations: 0.6002 MB / 0.752 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.85, allocations: 7.938 kB / 0.752 GB, free: 14.74 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.017e-05/0.85, allocations: 16.56 kB / 0.7521 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.85, allocations: 11.36 kB / 0.7521 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.8512, allocations: 0.552 MB / 0.7526 GB, free: 14.17 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.8534, allocations: 2.509 MB / 0.7551 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.8545, allocations: 0.4911 MB / 0.7555 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.8549, allocations: 342.8 kB / 0.7559 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3803/1.235, allocations: 139 MB / 0.8916 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/1.235, allocations: 38.09 kB / 0.8916 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.155e-06/1.235, allocations: 0 / 0.8916 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.004984/1.24, allocations: 2.333 MB / 0.8939 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.849e-05/1.24, allocations: 62.98 kB / 0.894 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/1.241, allocations: 256.2 kB / 0.8942 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/1.241, allocations: 31.7 kB / 0.8942 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.727e-05/1.241, allocations: 192.5 kB / 0.8944 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/1.241, allocations: 260.9 kB / 0.8947 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/1.241, allocations: 97.55 kB / 0.8948 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.245e-05/1.241, allocations: 353.6 kB / 0.8951 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/1.241, allocations: 277.7 kB / 0.8954 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/1.242, allocations: 404.6 kB / 0.8958 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/1.243, allocations: 0.7155 MB / 0.8965 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.243, allocations: 0 / 0.8965 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001216/1.244, allocations: 0.7889 MB / 0.8972 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.244, allocations: 8 kB / 0.8972 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/1.244, allocations: 4 kB / 0.8972 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/1.244, allocations: 66.17 kB / 0.8973 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/1.245, allocations: 130.8 kB / 0.8974 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06041/1.305, allocations: 19.88 MB / 0.9168 GB, free: 195.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003778/1.306, allocations: 39.97 kB / 0.9169 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/1.306, allocations: 16 kB / 0.9169 GB, free: 195.6 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.0002061/1.306, allocations: 192.3 kB / 0.9171 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.831e-05/1.306, allocations: 43.44 kB / 0.9171 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/1.307, allocations: 1.578 MB / 0.9187 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/1.307, allocations: 7.594 kB / 0.9187 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/1.307, allocations: 0 / 0.9187 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001088/1.309, allocations: 1.188 MB / 0.9198 GB, free: 192.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/1.31, allocations: 1.631 MB / 0.9214 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/1.31, allocations: 6.906 kB / 0.9214 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/1.311, allocations: 79.83 kB / 0.9215 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/1.311, allocations: 105.6 kB / 0.9216 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/1.311, allocations: 8 kB / 0.9216 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008027/1.312, allocations: 2.001 MB / 0.9236 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/1.312, allocations: 0 / 0.9236 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/1.313, allocations: 1.254 MB / 0.9248 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/1.313, allocations: 116.4 kB / 0.9249 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/1.313, allocations: 8 kB / 0.9249 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/1.314, allocations: 28.03 kB / 0.9249 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/1.314, allocations: 47.94 kB / 0.925 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/1.314, allocations: 11.98 kB / 0.925 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001763/1.314, allocations: 243.1 kB / 0.9252 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.21e-07/1.314, allocations: 0 / 0.9252 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006619/1.321, allocations: 3.519 MB / 0.9287 GB, free: 183.6 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.01356/1.334, allocations: 4.587 MB / 0.9331 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001758/1.336, allocations: 1.007 MB / 0.9341 GB, free: 178.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.336, allocations: 0 / 0.9341 GB, free: 178.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006957/1.337, allocations: 0.5031 MB / 0.9346 GB, free: 177.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/1.338, allocations: 396 kB / 0.935 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/1.34, allocations: 1.158 MB / 0.9361 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/1.34, allocations: 0.8408 MB / 0.9369 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003269/1.34, allocations: 148.8 kB / 0.9371 GB, free: 175.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/1.34, allocations: 43.44 kB / 0.9371 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/1.34, allocations: 3.938 kB / 0.9371 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of Templates: time 0.108/1.448, allocations: 126 MB / 1.06 GB, free: 49.21 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)