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.001271/0.001271, allocations: 99.39 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.001381/0.001382, allocations: 177.3 kB / 15.94 MB, free: 228 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.592/1.592, allocations: 205.4 MB / 222.1 MB, free: 5.902 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04788/0.04788, allocations: 9.052 MB / 279.4 MB, free: 12.52 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.0005386/0.0005387, allocations: 16.22 kB / 339.1 MB, free: 26.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1076, allocations: 49.19 MB / 388.3 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.339/0.4466, allocations: 105.5 MB / 493.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1188/0.5654, allocations: 87.09 MB / 0.5673 GB, free: 6.453 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006993/0.5662, allocations: 7.938 kB / 0.5673 GB, free: 6.445 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.5684, allocations: 0.8177 MB / 0.5681 GB, free: 5.625 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.5705, allocations: 0.787 MB / 0.5688 GB, free: 4.836 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.328/0.8985, allocations: 22.38 MB / 0.5907 GB, free: 17.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001668/0.9002, allocations: 0.772 MB / 0.5914 GB, free: 17.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.9005, allocations: 89.95 kB / 0.5915 GB, free: 17.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02271/0.9232, allocations: 11.51 MB / 0.6028 GB, free: 16.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.9237, allocations: 260.1 kB / 0.603 GB, free: 16.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.9237, allocations: 20.69 kB / 0.603 GB, free: 16.94 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04854/0.9723, allocations: 24.29 MB / 0.6267 GB, free: 16.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003072/0.9726, allocations: 87.19 kB / 0.6268 GB, free: 16.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.9731, allocations: 146.7 kB / 0.627 GB, free: 16.87 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01776/0.9909, allocations: 6.46 MB / 0.6333 GB, free: 15.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.9909, allocations: 4 kB / 0.6333 GB, free: 15.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.991, allocations: 3.688 kB / 0.6333 GB, free: 15.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.991, allocations: 1.75 kB / 0.6333 GB, free: 15.48 MB / 446.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.00618/0.9972, allocations: 1.991 MB / 0.6352 GB, free: 14.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.9972, allocations: 11.25 kB / 0.6352 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006868/0.9979, allocations: 90.19 kB / 0.6353 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.9983, allocations: 325 kB / 0.6356 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.2e-05/0.9984, allocations: 28.66 kB / 0.6357 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.9984, allocations: 33.78 kB / 0.6357 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.9996, allocations: 0.6108 MB / 0.6363 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.9996, allocations: 2.062 kB / 0.6363 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.283e-05/0.9997, allocations: 14.75 kB / 0.6363 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.9997, allocations: 17.7 kB / 0.6363 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/1.001, allocations: 0.5757 MB / 0.6369 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/1.003, allocations: 2.564 MB / 0.6394 GB, free: 11.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/1.004, allocations: 0.513 MB / 0.6399 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.281/1.285, allocations: 136.2 MB / 0.7729 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/1.285, allocations: 35.78 kB / 0.7729 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 2.705e-06/1.285, allocations: 6.844 kB / 0.7729 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006253/1.292, allocations: 2.704 MB / 0.7756 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/1.292, allocations: 59.36 kB / 0.7756 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/1.292, allocations: 244.6 kB / 0.7759 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/1.292, allocations: 36.02 kB / 0.7759 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/1.292, allocations: 186.4 kB / 0.7761 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/1.292, allocations: 259.5 kB / 0.7763 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/1.292, allocations: 9.438 kB / 0.7763 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.292, allocations: 358.1 kB / 0.7767 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005039/1.293, allocations: 274 kB / 0.7769 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005422/1.293, allocations: 411.9 kB / 0.7773 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/1.294, allocations: 331.7 kB / 0.7776 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.294, allocations: 4 kB / 0.7776 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001426/1.295, allocations: 0.8062 MB / 0.7784 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/1.295, allocations: 8 kB / 0.7784 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/1.295, allocations: 0 / 0.7784 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/1.296, allocations: 67.95 kB / 0.7785 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/1.296, allocations: 106.2 kB / 0.7786 GB, free: 9.492 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.376/1.672, allocations: 22.57 MB / 0.8007 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006236/1.673, allocations: 54.8 kB / 0.8007 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/1.673, allocations: 16.34 kB / 0.8007 GB, free: 183.5 MB / 0.5919 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.0003775/1.673, allocations: 196.6 kB / 0.8009 GB, free: 183.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/1.673, allocations: 48.34 kB / 0.801 GB, free: 183.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/1.676, allocations: 1.575 MB / 0.8025 GB, free: 183.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/1.676, allocations: 14.58 kB / 0.8025 GB, free: 183.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.676, allocations: 2.094 kB / 0.8025 GB, free: 183.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001487/1.677, allocations: 1.167 MB / 0.8036 GB, free: 182.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/1.68, allocations: 1.613 MB / 0.8052 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.68, allocations: 0 / 0.8052 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/1.68, allocations: 87.27 kB / 0.8053 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/1.68, allocations: 57.73 kB / 0.8054 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/1.68, allocations: 9.594 kB / 0.8054 GB, free: 182.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000969/1.681, allocations: 1.328 MB / 0.8067 GB, free: 181.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.681, allocations: 7.297 kB / 0.8067 GB, free: 181.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/1.683, allocations: 1.224 MB / 0.8079 GB, free: 180.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/1.684, allocations: 148.2 kB / 0.808 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/1.684, allocations: 7.219 kB / 0.808 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/1.684, allocations: 48.55 kB / 0.8081 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/1.684, allocations: 49.39 kB / 0.8081 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/1.684, allocations: 17.2 kB / 0.8081 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002635/1.685, allocations: 239.2 kB / 0.8084 GB, free: 180.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.685, allocations: 0 / 0.8084 GB, free: 180.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01104/1.696, allocations: 3.18 MB / 0.8115 GB, free: 180.5 MB / 0.5919 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.01944/1.715, allocations: 4.116 MB / 0.8155 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001873/1.717, allocations: 0.9655 MB / 0.8164 GB, free: 179.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.717, allocations: 4.188 kB / 0.8164 GB, free: 179.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007453/1.718, allocations: 492.8 kB / 0.8169 GB, free: 179.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/1.719, allocations: 311.6 kB / 0.8172 GB, free: 179.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/1.721, allocations: 1.381 MB / 0.8185 GB, free: 178.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/1.721, allocations: 0.8604 MB / 0.8194 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004528/1.722, allocations: 162.2 kB / 0.8195 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.743e-05/1.722, allocations: 37.88 kB / 0.8196 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.372e-06/1.722, allocations: 0 / 0.8196 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1304/1.852, allocations: 116.6 MB / 0.9334 GB, free: 76 MB / 0.5919 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: