Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001544/0.001544, allocations: 172.7 kB / 15.95 MB, free: 208 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.55/1.55, allocations: 205.4 MB / 222.1 MB, free: 5.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04591/0.04591, allocations: 9.061 MB / 279.5 MB, free: 12.13 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.0005714/0.0005715, allocations: 19.98 kB / 339.1 MB, free: 25.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09905/0.09964, allocations: 49.2 MB / 388.3 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.3423/0.4419, allocations: 118.7 MB / 0.4952 GB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3622/0.8042, allocations: 102.3 MB / 0.5951 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006568/0.8049, allocations: 7.75 kB / 0.5951 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.8071, allocations: 0.7705 MB / 0.5959 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.8095, allocations: 0.8385 MB / 0.5967 GB, free: 10.44 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06274/0.8723, allocations: 22.32 MB / 0.6185 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.8743, allocations: 1.544 MB / 0.62 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.8746, allocations: 100.5 kB / 0.6201 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01874/0.8933, allocations: 11.89 MB / 0.6317 GB, free: 8.727 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004924/0.8939, allocations: 357 kB / 0.632 GB, free: 8.605 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.587e-05/0.8939, allocations: 24 kB / 0.6321 GB, free: 8.602 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04968/0.9436, allocations: 26.34 MB / 0.6578 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.9439, allocations: 92.61 kB / 0.6579 GB, free: 12.03 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003888/0.9443, allocations: 146.5 kB / 0.658 GB, free: 11.92 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02025/0.9646, allocations: 8.581 MB / 0.6664 GB, free: 5.07 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.9646, allocations: 0 / 0.6664 GB, free: 5.07 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.9646, allocations: 0 / 0.6664 GB, free: 5.07 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.9646, allocations: 0 / 0.6664 GB, free: 5.07 MB / 462.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.007949/0.9726, allocations: 2.497 MB / 0.6688 GB, free: 2.625 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.9727, allocations: 8.031 kB / 0.6688 GB, free: 2.617 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.9733, allocations: 98.55 kB / 0.6689 GB, free: 2.523 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.9737, allocations: 325.3 kB / 0.6692 GB, free: 2.215 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.9737, allocations: 24.84 kB / 0.6693 GB, free: 2.203 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.257e-05/0.9738, allocations: 40.06 kB / 0.6693 GB, free: 2.176 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.975, allocations: 0.6122 MB / 0.6699 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.9751, allocations: 0 / 0.6699 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.9751, allocations: 13.75 kB / 0.6699 GB, free: 1.727 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.9751, allocations: 18.61 kB / 0.6699 GB, free: 1.715 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.9763, allocations: 0.5738 MB / 0.6705 GB, free: 1.305 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/0.9789, allocations: 2.552 MB / 0.673 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.9799, allocations: 0.5168 MB / 0.6735 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004901/0.9804, allocations: 351.1 kB / 0.6738 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4941/1.475, allocations: 135.8 MB / 0.8064 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/1.475, allocations: 40.48 kB / 0.8065 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 4.428e-06/1.475, allocations: 0 / 0.8065 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005879/1.481, allocations: 2.401 MB / 0.8088 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/1.481, allocations: 56.12 kB / 0.8089 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/1.481, allocations: 259.2 kB / 0.8091 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.621e-05/1.481, allocations: 32.02 kB / 0.8092 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/1.481, allocations: 185.2 kB / 0.8093 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/1.481, allocations: 267.4 kB / 0.8096 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/1.481, allocations: 8.062 kB / 0.8096 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.711e-05/1.481, allocations: 351.8 kB / 0.8099 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/1.482, allocations: 280.2 kB / 0.8102 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/1.482, allocations: 405.2 kB / 0.8106 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/1.483, allocations: 329.8 kB / 0.8109 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/1.483, allocations: 3.188 kB / 0.8109 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001374/1.484, allocations: 0.8138 MB / 0.8117 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.484, allocations: 8.438 kB / 0.8117 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.484, allocations: 2.344 kB / 0.8117 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/1.485, allocations: 63.81 kB / 0.8118 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/1.485, allocations: 110.5 kB / 0.8119 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08281/1.568, allocations: 22.62 MB / 0.834 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/1.569, allocations: 52.94 kB / 0.834 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.989e-05/1.569, allocations: 22.94 kB / 0.834 GB, free: 141.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003355/1.569, allocations: 182.5 kB / 0.8342 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/1.569, allocations: 48.02 kB / 0.8343 GB, free: 141.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/1.571, allocations: 1.581 MB / 0.8358 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/1.571, allocations: 16.11 kB / 0.8358 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/1.571, allocations: 0 / 0.8358 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001282/1.572, allocations: 1.161 MB / 0.837 GB, free: 141 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/1.575, allocations: 1.616 MB / 0.8385 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.575, allocations: 0.875 kB / 0.8385 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/1.575, allocations: 90.92 kB / 0.8386 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002333/1.575, allocations: 51.83 kB / 0.8387 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/1.575, allocations: 11.42 kB / 0.8387 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008666/1.576, allocations: 1.33 MB / 0.84 GB, free: 139.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.576, allocations: 0 / 0.84 GB, free: 139.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/1.578, allocations: 1.223 MB / 0.8412 GB, free: 139.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/1.578, allocations: 142.4 kB / 0.8413 GB, free: 139 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-05/1.578, allocations: 10.09 kB / 0.8413 GB, free: 139 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003651/1.579, allocations: 47.59 kB / 0.8414 GB, free: 139 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/1.579, allocations: 44.62 kB / 0.8414 GB, free: 139 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/1.579, allocations: 17.28 kB / 0.8414 GB, free: 139 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002443/1.579, allocations: 239.3 kB / 0.8416 GB, free: 138.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/1.579, allocations: 0 / 0.8416 GB, free: 138.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008972/1.588, allocations: 3.186 MB / 0.8448 GB, free: 138.8 MB / 0.5762 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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01815/1.606, allocations: 4.114 MB / 0.8488 GB, free: 138.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001812/1.608, allocations: 0.9588 MB / 0.8497 GB, free: 138 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.608, allocations: 0 / 0.8497 GB, free: 138 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008434/1.609, allocations: 492.7 kB / 0.8502 GB, free: 137.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/1.611, allocations: 325.5 kB / 0.8505 GB, free: 137.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/1.613, allocations: 1.382 MB / 0.8518 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/1.613, allocations: 0.8559 MB / 0.8527 GB, free: 136.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005445/1.614, allocations: 155.4 kB / 0.8528 GB, free: 136.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/1.614, allocations: 37.83 kB / 0.8529 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.382e-06/1.614, allocations: 0 / 0.8529 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.1437/1.758, allocations: 116.6 MB / 0.9667 GB, free: 22.89 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.makefile Environment - environmentSimulation: (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1) Environment - environmentSimulation: