Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009066/0.0009067, allocations: 100.1 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.0008829/0.0008829, 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.357/1.357, 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.04326/0.04326, allocations: 9.067 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.0004897/0.0004897, allocations: 12 kB / 339.2 MB, free: 25.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.0851, allocations: 49.18 MB / 388.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3395/0.4247, allocations: 162.1 MB / 0.5375 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3509/0.7756, allocations: 112.5 MB / 0.6474 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008126/0.7765, allocations: 9 kB / 0.6474 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002505/0.779, allocations: 1.104 MB / 0.6485 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002541/0.7816, allocations: 1.182 MB / 0.6496 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07496/0.8565, allocations: 29.83 MB / 0.6787 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.8585, allocations: 1.083 MB / 0.6798 GB, free: 6.156 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.8588, allocations: 155.1 kB / 0.6799 GB, free: 6.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.8602, allocations: 0.7696 MB / 0.6807 GB, free: 5.992 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005485/0.8608, allocations: 361.9 kB / 0.681 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.8609, allocations: 26.44 kB / 0.6811 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0624/0.9233, allocations: 32.38 MB / 0.7127 GB, free: 14.77 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003201/0.9236, allocations: 123.3 kB / 0.7128 GB, free: 14.71 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004441/0.9241, allocations: 194.6 kB / 0.713 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02118/0.9453, allocations: 8.624 MB / 0.7214 GB, free: 7.785 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9453, allocations: 0 / 0.7214 GB, free: 7.785 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.9453, allocations: 0 / 0.7214 GB, free: 7.785 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.9453, allocations: 0 / 0.7214 GB, free: 7.785 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.006455/0.9518, allocations: 2.587 MB / 0.7239 GB, free: 5.262 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.9519, allocations: 8.031 kB / 0.7239 GB, free: 5.254 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.952, allocations: 104.2 kB / 0.724 GB, free: 5.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007355/0.9527, allocations: 120.6 kB / 0.7242 GB, free: 5.062 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.9532, allocations: 395 kB / 0.7245 GB, free: 4.719 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.9533, allocations: 42.62 kB / 0.7246 GB, free: 4.695 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.639e-05/0.9534, allocations: 48.38 kB / 0.7246 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.9549, allocations: 0.8327 MB / 0.7254 GB, free: 4.074 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.955, allocations: 0 / 0.7254 GB, free: 4.074 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/0.955, allocations: 18.42 kB / 0.7255 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/0.9551, allocations: 26.77 kB / 0.7255 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.9567, allocations: 0.7867 MB / 0.7262 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00317/0.9599, allocations: 3.431 MB / 0.7296 GB, free: 372 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.9613, allocations: 0.6952 MB / 0.7303 GB, free: 15.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.516/1.477, allocations: 181.6 MB / 0.9076 GB, free: 24.95 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/1.477, allocations: 38.66 kB / 0.9076 GB, free: 24.91 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=109): time 2.615e-06/1.477, allocations: 0 / 0.9076 GB, free: 24.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=117): time 0.008344/1.486, allocations: 3.92 MB / 0.9115 GB, free: 23.97 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/1.486, allocations: 61.06 kB / 0.9115 GB, free: 23.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/1.486, allocations: 307.8 kB / 0.9118 GB, free: 23.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/1.486, allocations: 32.89 kB / 0.9119 GB, free: 23.77 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000125/1.486, allocations: 233.1 kB / 0.9121 GB, free: 23.62 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000196/1.487, allocations: 378 kB / 0.9124 GB, free: 23.37 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/1.487, allocations: 12.88 kB / 0.9125 GB, free: 23.37 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001549/1.487, allocations: 366.8 kB / 0.9128 GB, free: 23.06 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/1.487, allocations: 414.6 kB / 0.9132 GB, free: 23.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006655/1.488, allocations: 0.543 MB / 0.9137 GB, free: 22.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/1.489, allocations: 471.7 kB / 0.9142 GB, free: 22.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.489, allocations: 6.938 kB / 0.9142 GB, free: 22.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001763/1.491, allocations: 1.162 MB / 0.9153 GB, free: 22.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.491, allocations: 7.406 kB / 0.9153 GB, free: 22.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.491, allocations: 3.656 kB / 0.9153 GB, free: 22.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/1.491, allocations: 110.5 kB / 0.9154 GB, free: 22.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/1.492, allocations: 214.7 kB / 0.9156 GB, free: 22.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1755/1.667, allocations: 46.26 MB / 0.9608 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007132/1.668, allocations: 73.22 kB / 0.9609 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.5e-05/1.668, allocations: 25.38 kB / 0.9609 GB, free: 13.3 MB / 0.5919 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.0003407/1.668, allocations: 226.8 kB / 0.9611 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/1.669, allocations: 60.7 kB / 0.9612 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/1.671, allocations: 2.424 MB / 0.9636 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/1.671, allocations: 18.89 kB / 0.9636 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/1.672, allocations: 4 kB / 0.9636 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002039/1.674, allocations: 1.678 MB / 0.9652 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/1.677, allocations: 2.486 MB / 0.9676 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/1.677, allocations: 12 kB / 0.9677 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004696/1.677, allocations: 126.6 kB / 0.9678 GB, free: 8.301 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005628/1.678, allocations: 225.9 kB / 0.968 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/1.678, allocations: 20.92 kB / 0.968 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/1.68, allocations: 3.802 MB / 0.9717 GB, free: 4.207 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.68, allocations: 0 / 0.9717 GB, free: 4.207 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/1.683, allocations: 2.02 MB / 0.9737 GB, free: 2.84 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/1.683, allocations: 151.5 kB / 0.9738 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.019e-05/1.683, allocations: 20.08 kB / 0.9739 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/1.684, allocations: 65.36 kB / 0.9739 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/1.684, allocations: 64.2 kB / 0.974 GB, free: 2.559 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/1.684, allocations: 24.61 kB / 0.974 GB, free: 2.539 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002361/1.684, allocations: 255.1 kB / 0.9742 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.684, allocations: 0 / 0.9742 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01143/1.695, allocations: 4.816 MB / 0.9789 GB, free: 13.93 MB / 0.6075 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.02473/1.72, allocations: 8.276 MB / 0.987 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00292/1.723, allocations: 1.556 MB / 0.9885 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.723, allocations: 0 / 0.9885 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001129/1.724, allocations: 0.8372 MB / 0.9894 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/1.726, allocations: 456.8 kB / 0.9898 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/1.741, allocations: 8.494 MB / 0.9981 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/1.742, allocations: 0.9487 MB / 0.999 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000606/1.742, allocations: 183.2 kB / 0.9992 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/1.742, allocations: 247.4 kB / 0.9994 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of SimCode: time 9.31e-07/1.742, allocations: 5.141 kB / 0.9994 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4188/2.161, allocations: 193.9 MB / 1.189 GB, free: 175 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/2.161, allocations: 223.2 kB / 1.189 GB, free: 174.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/10.28, allocations: 0 / 1.189 GB, free: 174.8 MB / 0.6231 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1) Environment - environmentSimulation: