Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001363/0.001363, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04255/0.04255, allocations: 9.064 MB / 279.4 MB, free: 12.26 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.0005019/0.000502, allocations: 16.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0757/0.07621, allocations: 49.19 MB / 388.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3155/0.3917, allocations: 163.7 MB / 0.539 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.311/0.7028, allocations: 114.3 MB / 0.6506 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007778/0.7036, allocations: 8.906 kB / 0.6507 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00345/0.707, allocations: 1.519 MB / 0.6521 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004658/0.7117, allocations: 1.985 MB / 0.6541 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0766/0.7883, allocations: 29.92 MB / 0.6833 GB, free: 5.402 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001681/0.79, allocations: 1.1 MB / 0.6844 GB, free: 5.285 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.7903, allocations: 146 kB / 0.6845 GB, free: 5.227 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.7914, allocations: 0.7596 MB / 0.6853 GB, free: 5.141 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004044/0.7918, allocations: 367.5 kB / 0.6856 GB, free: 4.965 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/0.7919, allocations: 28 kB / 0.6856 GB, free: 4.938 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06427/0.8562, allocations: 33.41 MB / 0.7183 GB, free: 12.71 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003313/0.8565, allocations: 125.5 kB / 0.7184 GB, free: 12.65 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/0.857, allocations: 193.3 kB / 0.7186 GB, free: 12.52 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02243/0.8795, allocations: 8.613 MB / 0.727 GB, free: 5.734 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.8795, allocations: 0 / 0.727 GB, free: 5.734 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.8796, allocations: 0 / 0.727 GB, free: 5.734 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.8796, allocations: 0 / 0.727 GB, free: 5.734 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.007655/0.8872, allocations: 2.577 MB / 0.7295 GB, free: 3.219 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.8873, allocations: 8.031 kB / 0.7295 GB, free: 3.211 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000802/0.8881, allocations: 119.1 kB / 0.7296 GB, free: 3.098 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.8887, allocations: 404.5 kB / 0.73 GB, free: 2.742 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.8887, allocations: 44 kB / 0.73 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.394e-05/0.8888, allocations: 44.12 kB / 0.7301 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.8905, allocations: 0.8344 MB / 0.7309 GB, free: 2.098 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.8905, allocations: 3.375 kB / 0.7309 GB, free: 2.098 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.8906, allocations: 17.75 kB / 0.7309 GB, free: 2.094 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.8906, allocations: 31.19 kB / 0.7309 GB, free: 2.074 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.8923, allocations: 0.7868 MB / 0.7317 GB, free: 1.52 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003381/0.8957, allocations: 3.425 MB / 0.7351 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.8971, allocations: 0.6967 MB / 0.7357 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5148/1.412, allocations: 181.6 MB / 0.9131 GB, free: 24.38 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/1.412, allocations: 36.88 kB / 0.9131 GB, free: 24.34 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=109): time 4.007e-06/1.412, allocations: 2.875 kB / 0.9131 GB, free: 24.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117): time 0.008705/1.421, allocations: 3.919 MB / 0.9169 GB, free: 23.42 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/1.421, allocations: 62.97 kB / 0.917 GB, free: 23.35 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/1.421, allocations: 298.4 kB / 0.9173 GB, free: 23.24 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/1.421, allocations: 40.41 kB / 0.9173 GB, free: 23.21 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/1.421, allocations: 236.4 kB / 0.9175 GB, free: 23.05 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/1.422, allocations: 383.2 kB / 0.9179 GB, free: 22.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/1.422, allocations: 11.53 kB / 0.9179 GB, free: 22.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.422, allocations: 376.6 kB / 0.9183 GB, free: 22.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000642/1.422, allocations: 404.5 kB / 0.9187 GB, free: 22.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006887/1.423, allocations: 0.5432 MB / 0.9192 GB, free: 22.34 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/1.424, allocations: 485.6 kB / 0.9197 GB, free: 22.33 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/1.424, allocations: 1.281 kB / 0.9197 GB, free: 22.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001865/1.426, allocations: 1.154 MB / 0.9208 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.426, allocations: 6.188 kB / 0.9208 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/1.426, allocations: 2.938 kB / 0.9208 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/1.426, allocations: 114 kB / 0.9209 GB, free: 22.17 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009446/1.427, allocations: 211.8 kB / 0.9211 GB, free: 22.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1886/1.616, allocations: 46.21 MB / 0.9662 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006989/1.616, allocations: 77.45 kB / 0.9663 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-05/1.616, allocations: 28.86 kB / 0.9663 GB, free: 9.504 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: 12 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.phase,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003526/1.617, allocations: 225.3 kB / 0.9665 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/1.617, allocations: 55.34 kB / 0.9666 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003054/1.62, allocations: 2.426 MB / 0.969 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/1.62, allocations: 24.03 kB / 0.969 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/1.62, allocations: 0 / 0.969 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002222/1.622, allocations: 1.685 MB / 0.9706 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/1.626, allocations: 2.498 MB / 0.9731 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/1.626, allocations: 3.984 kB / 0.9731 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000523/1.626, allocations: 122.8 kB / 0.9732 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006106/1.627, allocations: 225.5 kB / 0.9734 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/1.627, allocations: 17 kB / 0.9734 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/1.629, allocations: 3.815 MB / 0.9772 GB, free: 420 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.629, allocations: 5.516 kB / 0.9772 GB, free: 416 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/1.632, allocations: 2.021 MB / 0.9791 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/1.633, allocations: 151 kB / 0.9793 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.632e-05/1.633, allocations: 13.06 kB / 0.9793 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005224/1.633, allocations: 64.05 kB / 0.9793 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.633, allocations: 68.31 kB / 0.9794 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/1.633, allocations: 20.61 kB / 0.9794 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002566/1.634, allocations: 248.3 kB / 0.9797 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.21e-07/1.634, allocations: 0 / 0.9797 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.01175/1.645, allocations: 4.824 MB / 0.9844 GB, free: 10.13 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0219/1.667, allocations: 5.951 MB / 0.9902 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003177/1.671, allocations: 1.548 MB / 0.9917 GB, free: 3.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/1.671, allocations: 8 kB / 0.9917 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00131/1.672, allocations: 0.8382 MB / 0.9925 GB, free: 3.199 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/1.674, allocations: 455.2 kB / 0.993 GB, free: 2.816 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/1.677, allocations: 2.072 MB / 0.995 GB, free: 1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/1.677, allocations: 0.948 MB / 0.9959 GB, free: 24 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.1421/1.82, allocations: 180.5 kB / 0.9961 GB, free: 332.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/1.82, allocations: 52.5 kB / 0.9961 GB, free: 332.5 MB / 0.6231 GB Notification: Performance of SimCode: time 1.323e-06/1.82, allocations: 0 / 0.9961 GB, free: 332.5 MB / 0.6231 GB Notification: Performance of Templates: time 0.1883/2.008, allocations: 185.9 MB / 1.178 GB, free: 173.6 MB / 0.6231 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile Environment - environmentSimulation: (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1) Environment - environmentSimulation: