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.001036/0.001036, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001138/0.001139, allocations: 190.3 kB / 16.25 MB, free: 6.617 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.412/1.412, allocations: 205.1 MB / 222.1 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04325/0.04325, allocations: 9.085 MB / 278.5 MB, free: 12.35 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.001515/0.001515, allocations: 63.84 kB / 337.5 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09887/0.1004, allocations: 48.17 MB / 385.7 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3057/0.4062, allocations: 128.3 MB / 0.502 GB, free: 5.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.343/0.7492, allocations: 110.8 MB / 0.6102 GB, free: 288 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005995/0.7498, allocations: 5.812 kB / 0.6102 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003458/0.7534, allocations: 1.276 MB / 0.6114 GB, free: 280 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003957/0.7574, allocations: 1.558 MB / 0.613 GB, free: 264 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07746/0.8348, allocations: 27.28 MB / 0.6396 GB, free: 15.22 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001844/0.8367, allocations: 1.402 MB / 0.641 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.837, allocations: 125.1 kB / 0.6411 GB, free: 15.06 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01743/0.8544, allocations: 12 MB / 0.6528 GB, free: 9.035 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004808/0.8549, allocations: 398.7 kB / 0.6532 GB, free: 8.723 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.855, allocations: 44 kB / 0.6532 GB, free: 8.68 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05916/0.9142, allocations: 36.21 MB / 0.6886 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002625/0.9145, allocations: 120.2 kB / 0.6887 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000634/0.9151, allocations: 306.4 kB / 0.689 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04586/0.961, allocations: 14.54 MB / 0.7032 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.961, allocations: 0 / 0.7032 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.9611, allocations: 0 / 0.7032 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.9611, allocations: 0 / 0.7032 GB, free: 0.8867 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.007947/0.969, allocations: 2.565 MB / 0.7057 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.9691, allocations: 11.97 kB / 0.7057 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006483/0.9698, allocations: 87.39 kB / 0.7058 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.9702, allocations: 339.3 kB / 0.7061 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.9702, allocations: 32.66 kB / 0.7061 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.9703, allocations: 32 kB / 0.7062 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.9716, allocations: 0.5963 MB / 0.7068 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.9716, allocations: 7.906 kB / 0.7068 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.9717, allocations: 16 kB / 0.7068 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.9717, allocations: 15.98 kB / 0.7068 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.973, allocations: 0.5481 MB / 0.7073 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.9756, allocations: 2.462 MB / 0.7097 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.9767, allocations: 492.1 kB / 0.7102 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005187/0.9772, allocations: 349.5 kB / 0.7105 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4099/1.387, allocations: 139 MB / 0.8462 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/1.387, allocations: 42.11 kB / 0.8463 GB, free: 274.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 4.909e-06/1.387, allocations: 2.812 kB / 0.8463 GB, free: 274.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005519/1.393, allocations: 2.334 MB / 0.8486 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/1.393, allocations: 56.34 kB / 0.8486 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/1.393, allocations: 260 kB / 0.8489 GB, free: 273 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/1.393, allocations: 41.55 kB / 0.8489 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/1.393, allocations: 186 kB / 0.8491 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/1.393, allocations: 265 kB / 0.8493 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/1.393, allocations: 100.5 kB / 0.8494 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.425e-05/1.393, allocations: 346 kB / 0.8498 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/1.394, allocations: 285.1 kB / 0.85 GB, free: 272 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004506/1.394, allocations: 382.9 kB / 0.8504 GB, free: 271.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/1.395, allocations: 0.6925 MB / 0.8511 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.395, allocations: 2.719 kB / 0.8511 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001302/1.397, allocations: 0.8134 MB / 0.8519 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/1.397, allocations: 3.969 kB / 0.8519 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/1.397, allocations: 3.969 kB / 0.8519 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/1.397, allocations: 64.67 kB / 0.8519 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006537/1.398, allocations: 140.9 kB / 0.8521 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09257/1.49, allocations: 28.73 MB / 0.8801 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004542/1.491, allocations: 51.91 kB / 0.8802 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/1.491, allocations: 23.98 kB / 0.8802 GB, free: 243.8 MB / 0.5919 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.000225/1.491, allocations: 184.1 kB / 0.8804 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/1.491, allocations: 43.44 kB / 0.8804 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/1.492, allocations: 1.722 MB / 0.8821 GB, free: 241.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/1.493, allocations: 12 kB / 0.8821 GB, free: 241.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.493, allocations: 3.938 kB / 0.8821 GB, free: 241.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/1.494, allocations: 1.293 MB / 0.8834 GB, free: 240.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/1.495, allocations: 1.762 MB / 0.8851 GB, free: 238.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.495, allocations: 0 / 0.8851 GB, free: 238.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/1.496, allocations: 71.89 kB / 0.8852 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/1.496, allocations: 162.4 kB / 0.8853 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/1.496, allocations: 12 kB / 0.8853 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009821/1.497, allocations: 2.58 MB / 0.8879 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.497, allocations: 0 / 0.8879 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/1.499, allocations: 1.38 MB / 0.8892 GB, free: 234.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.321e-05/1.499, allocations: 119.5 kB / 0.8893 GB, free: 234 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/1.499, allocations: 7.938 kB / 0.8893 GB, free: 234 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/1.499, allocations: 43.97 kB / 0.8894 GB, free: 234 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/1.499, allocations: 39.94 kB / 0.8894 GB, free: 233.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/1.499, allocations: 15.98 kB / 0.8894 GB, free: 233.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001534/1.499, allocations: 223.1 kB / 0.8896 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.499, allocations: 0 / 0.8896 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006552/1.506, allocations: 3.186 MB / 0.8928 GB, free: 230.9 MB / 0.5919 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.01267/1.519, allocations: 4.351 MB / 0.897 GB, free: 227 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002027/1.521, allocations: 1.047 MB / 0.898 GB, free: 226 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.521, allocations: 0 / 0.898 GB, free: 226 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006167/1.521, allocations: 0.5072 MB / 0.8985 GB, free: 225.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/1.523, allocations: 405.3 kB / 0.8989 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/1.524, allocations: 1.408 MB / 0.9003 GB, free: 223.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/1.525, allocations: 0.8526 MB / 0.9011 GB, free: 222.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003597/1.525, allocations: 131.2 kB / 0.9012 GB, free: 222.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/1.525, allocations: 51.36 kB / 0.9013 GB, free: 222.6 MB / 0.5919 GB Notification: Performance of SimCode: time 3.4e-07/1.525, allocations: 0 / 0.9013 GB, free: 222.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.1084/1.633, allocations: 118.8 MB / 1.017 GB, free: 103.5 MB / 0.5919 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)