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.0009184/0.0009184, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001095/0.001095, allocations: 190.8 kB / 16.14 MB, free: 6.703 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.386/1.386, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04276/0.04276, allocations: 9.084 MB / 278.4 MB, free: 12.41 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.001273/0.001273, allocations: 64.48 kB / 337.3 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0781/0.07938, allocations: 48.18 MB / 385.5 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.2893/0.3688, allocations: 130.7 MB / 0.5041 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3388/0.7077, allocations: 112.8 MB / 0.6142 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006538/0.7084, allocations: 4.188 kB / 0.6142 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.7114, allocations: 1.171 MB / 0.6154 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003274/0.7147, allocations: 1.473 MB / 0.6168 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06539/0.7801, allocations: 25.71 MB / 0.6419 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001872/0.782, allocations: 1.823 MB / 0.6437 GB, free: 15.31 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.7822, allocations: 98.64 kB / 0.6438 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01698/0.7992, allocations: 11.44 MB / 0.655 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005223/0.7997, allocations: 390 kB / 0.6553 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.342e-05/0.7998, allocations: 20 kB / 0.6554 GB, free: 10.2 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05642/0.8562, allocations: 33.02 MB / 0.6876 GB, free: 2.066 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.8565, allocations: 97.48 kB / 0.6877 GB, free: 2 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006109/0.8571, allocations: 285 kB / 0.688 GB, free: 1.785 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04157/0.8987, allocations: 14.09 MB / 0.7017 GB, free: 5.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.8987, allocations: 0 / 0.7017 GB, free: 5.77 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.8988, allocations: 0 / 0.7017 GB, free: 5.77 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.8988, allocations: 0 / 0.7017 GB, free: 5.77 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.005947/0.9047, allocations: 2.566 MB / 0.7042 GB, free: 3.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.9048, allocations: 12.03 kB / 0.7042 GB, free: 3.148 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/0.9054, allocations: 87.33 kB / 0.7043 GB, free: 3.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.9058, allocations: 336 kB / 0.7046 GB, free: 2.699 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.031e-05/0.9058, allocations: 28.66 kB / 0.7047 GB, free: 2.672 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.551e-05/0.9059, allocations: 32 kB / 0.7047 GB, free: 2.641 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.9071, allocations: 0.5963 MB / 0.7053 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.9071, allocations: 0 / 0.7053 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.9072, allocations: 16 kB / 0.7053 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.9072, allocations: 28.92 kB / 0.7053 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.9084, allocations: 0.5481 MB / 0.7059 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.9109, allocations: 2.462 MB / 0.7083 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.9119, allocations: 495.8 kB / 0.7087 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005249/0.9124, allocations: 344.4 kB / 0.7091 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3738/1.286, allocations: 139 MB / 0.8448 GB, free: 248.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/1.286, allocations: 45.91 kB / 0.8448 GB, free: 248.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=77): time 2.344e-06/1.286, allocations: 0 / 0.8448 GB, free: 248.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=81): time 0.005501/1.292, allocations: 2.335 MB / 0.8471 GB, free: 247 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.244e-05/1.292, allocations: 55.38 kB / 0.8472 GB, free: 247 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/1.292, allocations: 263.7 kB / 0.8474 GB, free: 246.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/1.292, allocations: 29.7 kB / 0.8475 GB, free: 246.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/1.292, allocations: 196.9 kB / 0.8476 GB, free: 246.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/1.292, allocations: 257.7 kB / 0.8479 GB, free: 246.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/1.293, allocations: 101.6 kB / 0.848 GB, free: 246.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.003e-05/1.293, allocations: 354.1 kB / 0.8483 GB, free: 246 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/1.293, allocations: 274.4 kB / 0.8486 GB, free: 245.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/1.294, allocations: 393.4 kB / 0.849 GB, free: 245.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009239/1.294, allocations: 0.6957 MB / 0.8496 GB, free: 245.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.295, allocations: 2.031 kB / 0.8496 GB, free: 245.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00129/1.296, allocations: 0.7957 MB / 0.8504 GB, free: 244.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.296, allocations: 10.48 kB / 0.8504 GB, free: 244.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/1.296, allocations: 5.391 kB / 0.8504 GB, free: 244.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/1.296, allocations: 58.78 kB / 0.8505 GB, free: 244.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/1.297, allocations: 139.6 kB / 0.8506 GB, free: 244.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09144/1.388, allocations: 28.44 MB / 0.8784 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/1.389, allocations: 51.95 kB / 0.8784 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/1.389, allocations: 16 kB / 0.8785 GB, free: 216.5 MB / 0.5762 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.0002275/1.389, allocations: 198.6 kB / 0.8786 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.514e-05/1.389, allocations: 43.44 kB / 0.8787 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/1.391, allocations: 1.714 MB / 0.8804 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/1.391, allocations: 19.73 kB / 0.8804 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/1.391, allocations: 0 / 0.8804 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001246/1.392, allocations: 1.288 MB / 0.8816 GB, free: 213.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/1.394, allocations: 1.754 MB / 0.8833 GB, free: 211.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.394, allocations: 4 kB / 0.8834 GB, free: 211.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/1.394, allocations: 76.38 kB / 0.8834 GB, free: 211.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003228/1.395, allocations: 162.4 kB / 0.8836 GB, free: 211 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/1.395, allocations: 15.98 kB / 0.8836 GB, free: 211 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/1.396, allocations: 2.474 MB / 0.886 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.396, allocations: 0 / 0.886 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/1.397, allocations: 1.373 MB / 0.8874 GB, free: 207 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/1.398, allocations: 128.5 kB / 0.8875 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.534e-05/1.398, allocations: 8 kB / 0.8875 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/1.398, allocations: 35.88 kB / 0.8875 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/1.398, allocations: 47.86 kB / 0.8876 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/1.398, allocations: 16 kB / 0.8876 GB, free: 206.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001828/1.398, allocations: 223.1 kB / 0.8878 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.398, allocations: 0 / 0.8878 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007277/1.406, allocations: 3.185 MB / 0.8909 GB, free: 203.8 MB / 0.5762 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.01587/1.422, allocations: 4.359 MB / 0.8952 GB, free: 199.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001975/1.424, allocations: 1.022 MB / 0.8962 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.424, allocations: 0 / 0.8962 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007127/1.424, allocations: 0.5149 MB / 0.8967 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/1.426, allocations: 383.5 kB / 0.897 GB, free: 197.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/1.428, allocations: 1.395 MB / 0.8984 GB, free: 196.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/1.428, allocations: 0.8487 MB / 0.8992 GB, free: 195.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004062/1.428, allocations: 143.1 kB / 0.8994 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.428e-05/1.428, allocations: 39.44 kB / 0.8994 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/1.428, allocations: 0 / 0.8994 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.1149/1.543, allocations: 118.3 MB / 1.015 GB, free: 77.02 MB / 0.5762 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)