Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 106 kB / 16.35 MB, free: 5.824 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.001374/0.001374, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.878/1.878, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05255/0.05255, allocations: 9.092 MB / 279.6 MB, free: 2.973 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.001671/0.001672, allocations: 67.91 kB / 339.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3932, allocations: 48.14 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1574/0.5507, allocations: 128.9 MB / 0.5044 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.5813/1.132, allocations: 111.1 MB / 0.6129 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/1.133, allocations: 8.969 kB / 0.6129 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00447/1.138, allocations: 1.37 MB / 0.6142 GB, free: 14.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005162/1.143, allocations: 1.65 MB / 0.6158 GB, free: 13.86 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.1221/1.265, allocations: 30.13 MB / 0.6453 GB, free: 9.289 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003616/1.269, allocations: 1.401 MB / 0.6466 GB, free: 7.918 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004298/1.269, allocations: 135.3 kB / 0.6468 GB, free: 7.793 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02733/1.296, allocations: 11.68 MB / 0.6582 GB, free: 12.53 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007417/1.297, allocations: 377.1 kB / 0.6585 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.423e-05/1.297, allocations: 44 kB / 0.6586 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.102/1.399, allocations: 36.97 MB / 0.6947 GB, free: 8.281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003558/1.4, allocations: 121.2 kB / 0.6948 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007396/1.401, allocations: 310.1 kB / 0.6951 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06972/1.47, allocations: 14.52 MB / 0.7093 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/1.47, allocations: 0 / 0.7093 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.196e-06/1.47, allocations: 0 / 0.7093 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.35e-05/1.47, allocations: 0 / 0.7093 GB, free: 10.16 MB / 0.4981 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.009815/1.48, allocations: 2.56 MB / 0.7118 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/1.48, allocations: 19.95 kB / 0.7118 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007878/1.481, allocations: 79.41 kB / 0.7119 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/1.482, allocations: 346.1 kB / 0.7122 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/1.482, allocations: 29.97 kB / 0.7122 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.049e-05/1.482, allocations: 32 kB / 0.7122 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/1.483, allocations: 0.604 MB / 0.7128 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.495e-05/1.483, allocations: 3.906 kB / 0.7128 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.589e-05/1.483, allocations: 12 kB / 0.7128 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/1.483, allocations: 19.98 kB / 0.7129 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/1.485, allocations: 0.5481 MB / 0.7134 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/1.488, allocations: 2.465 MB / 0.7158 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/1.489, allocations: 486.7 kB / 0.7163 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005277/1.489, allocations: 348.2 kB / 0.7166 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4622/1.951, allocations: 139 MB / 0.8523 GB, free: 80.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/1.952, allocations: 38.56 kB / 0.8524 GB, free: 80.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 4.067e-06/1.952, allocations: 0 / 0.8524 GB, free: 80.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=81): time 0.006337/1.958, allocations: 2.34 MB / 0.8547 GB, free: 78.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/1.958, allocations: 55.41 kB / 0.8547 GB, free: 78.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/1.958, allocations: 258.6 kB / 0.855 GB, free: 78.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/1.958, allocations: 29.7 kB / 0.855 GB, free: 78.13 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/1.958, allocations: 202.4 kB / 0.8552 GB, free: 77.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/1.959, allocations: 263.2 kB / 0.8554 GB, free: 77.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/1.959, allocations: 102 kB / 0.8555 GB, free: 77.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/1.959, allocations: 350.8 kB / 0.8559 GB, free: 77.22 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/1.959, allocations: 274 kB / 0.8561 GB, free: 76.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/1.96, allocations: 394.7 kB / 0.8565 GB, free: 76.54 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009328/1.961, allocations: 0.6912 MB / 0.8572 GB, free: 75.8 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/1.961, allocations: 0 / 0.8572 GB, free: 75.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001299/1.962, allocations: 0.7988 MB / 0.8579 GB, free: 74.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/1.962, allocations: 11.98 kB / 0.858 GB, free: 74.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/1.962, allocations: 384 / 0.858 GB, free: 74.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/1.962, allocations: 63.31 kB / 0.858 GB, free: 74.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006783/1.963, allocations: 139.8 kB / 0.8582 GB, free: 74.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06671/2.03, allocations: 22.96 MB / 0.8806 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/2.03, allocations: 28 kB / 0.8806 GB, free: 51.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/2.031, allocations: 16 kB / 0.8806 GB, free: 51.25 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 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.0003604/2.031, allocations: 199.2 kB / 0.8808 GB, free: 51.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/2.031, allocations: 39.53 kB / 0.8808 GB, free: 51.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/2.033, allocations: 1.707 MB / 0.8825 GB, free: 49.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.653e-05/2.033, allocations: 19.89 kB / 0.8825 GB, free: 49.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/2.033, allocations: 0 / 0.8825 GB, free: 49.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001362/2.035, allocations: 1.296 MB / 0.8838 GB, free: 47.83 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/2.037, allocations: 1.757 MB / 0.8855 GB, free: 46.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/2.037, allocations: 0 / 0.8855 GB, free: 46.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/2.037, allocations: 79.88 kB / 0.8856 GB, free: 45.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003115/2.037, allocations: 170.1 kB / 0.8857 GB, free: 45.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/2.038, allocations: 4 kB / 0.8858 GB, free: 45.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/2.039, allocations: 2.576 MB / 0.8883 GB, free: 43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/2.039, allocations: 0 / 0.8883 GB, free: 43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/2.04, allocations: 1.383 MB / 0.8896 GB, free: 41.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/2.041, allocations: 116.6 kB / 0.8897 GB, free: 41.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.747e-05/2.041, allocations: 8 kB / 0.8897 GB, free: 41.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/2.041, allocations: 27.91 kB / 0.8898 GB, free: 41.42 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.984e-05/2.041, allocations: 43.94 kB / 0.8898 GB, free: 41.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/2.041, allocations: 15.98 kB / 0.8898 GB, free: 41.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002013/2.041, allocations: 223.1 kB / 0.89 GB, free: 41.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/2.041, allocations: 7.938 kB / 0.89 GB, free: 41.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01084/2.052, allocations: 3.519 MB / 0.8935 GB, free: 38.07 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01798/2.07, allocations: 4.77 MB / 0.8981 GB, free: 33.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002661/2.073, allocations: 1.051 MB / 0.8992 GB, free: 32.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/2.073, allocations: 0 / 0.8992 GB, free: 32.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007578/2.074, allocations: 0.511 MB / 0.8997 GB, free: 32.24 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/2.076, allocations: 404.5 kB / 0.9 GB, free: 31.85 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/2.077, allocations: 1.174 MB / 0.9012 GB, free: 30.65 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/2.078, allocations: 0.8526 MB / 0.902 GB, free: 29.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003582/2.078, allocations: 138.1 kB / 0.9022 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.684e-05/2.078, allocations: 35.44 kB / 0.9022 GB, free: 29.6 MB / 0.4981 GB Notification: Performance of SimCode: time 4.3e-07/2.078, allocations: 0 / 0.9022 GB, free: 29.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.4587/2.537, allocations: 126.7 MB / 1.026 GB, free: 137.3 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)