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: translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001006, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.01028/0.01028, allocations: 173 kB / 16.26 MB, free: 6.613 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.577/1.577, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0431/0.04311, allocations: 9.075 MB / 279.8 MB, free: 12.14 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.0005405/0.0005404, allocations: 16.64 kB / 339.7 MB, free: 25.63 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08101, allocations: 49.19 MB / 388.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3808/0.4619, allocations: 196.3 MB / 0.5715 GB, free: 3.266 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.35/0.8119, allocations: 142.3 MB / 0.7104 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009292/0.8129, allocations: 7.375 kB / 0.7104 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003005/0.8159, allocations: 1.158 MB / 0.7116 GB, free: 12.46 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003375/0.8193, allocations: 1.404 MB / 0.7129 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09867/0.918, allocations: 32.75 MB / 0.7449 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002964/0.921, allocations: 2.572 MB / 0.7474 GB, free: 9.797 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.9214, allocations: 152.3 kB / 0.7476 GB, free: 9.637 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.9227, allocations: 0.7 MB / 0.7483 GB, free: 8.934 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006802/0.9234, allocations: 0.5329 MB / 0.7488 GB, free: 8.398 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.527e-05/0.9234, allocations: 32 kB / 0.7488 GB, free: 8.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07142/0.9949, allocations: 39.37 MB / 0.7873 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.9952, allocations: 131.5 kB / 0.7874 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006787/0.9959, allocations: 420 kB / 0.7878 GB, free: 372 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.3449/1.341, allocations: 18.17 MB / 0.8055 GB, free: 34.62 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/1.341, allocations: 0 / 0.8055 GB, free: 34.62 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.276e-06/1.341, allocations: 2.781 kB / 0.8055 GB, free: 34.62 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.224e-05/1.341, allocations: 0 / 0.8055 GB, free: 34.62 MB / 0.5137 GB 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.01124/1.352, allocations: 3.239 MB / 0.8087 GB, free: 32.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/1.352, allocations: 11.59 kB / 0.8087 GB, free: 32.91 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008734/1.353, allocations: 117 kB / 0.8088 GB, free: 32.87 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005402/1.354, allocations: 403.7 kB / 0.8092 GB, free: 32.62 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/1.354, allocations: 49.75 kB / 0.8092 GB, free: 32.62 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.764e-05/1.354, allocations: 45.41 kB / 0.8093 GB, free: 32.62 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/1.356, allocations: 0.8333 MB / 0.8101 GB, free: 32.52 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/1.356, allocations: 4.812 kB / 0.8101 GB, free: 32.52 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/1.356, allocations: 23.28 kB / 0.8101 GB, free: 32.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.958e-05/1.356, allocations: 20.84 kB / 0.8102 GB, free: 32.52 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/1.357, allocations: 0.7857 MB / 0.8109 GB, free: 32.52 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/1.36, allocations: 3.436 MB / 0.8143 GB, free: 30.28 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/1.362, allocations: 0.6998 MB / 0.815 GB, free: 30.25 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007298/1.362, allocations: 0.4888 MB / 0.8154 GB, free: 30.24 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.312/1.674, allocations: 181.1 MB / 0.9923 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.015e-05/1.674, allocations: 41.78 kB / 0.9923 GB, free: 13.31 MB / 0.67 GB Notification: Performance of pre-optimization done (n=109): time 3.978e-06/1.674, allocations: 0 / 0.9923 GB, free: 13.31 MB / 0.67 GB Notification: Performance of matching and sorting (n=117): time 0.01056/1.685, allocations: 3.523 MB / 0.9958 GB, free: 10.61 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/1.685, allocations: 61.28 kB / 0.9958 GB, free: 10.54 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/1.686, allocations: 310.5 kB / 0.9961 GB, free: 10.28 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/1.686, allocations: 33.58 kB / 0.9962 GB, free: 10.25 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/1.686, allocations: 234 kB / 0.9964 GB, free: 10.05 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/1.686, allocations: 378.6 kB / 0.9967 GB, free: 9.73 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/1.686, allocations: 76.98 kB / 0.9968 GB, free: 9.676 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.686, allocations: 375.5 kB / 0.9972 GB, free: 9.324 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007883/1.687, allocations: 415.9 kB / 0.9976 GB, free: 9.074 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009292/1.688, allocations: 0.546 MB / 0.9981 GB, free: 8.656 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/1.69, allocations: 1.015 MB / 0.9991 GB, free: 7.98 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.69, allocations: 0 / 0.9991 GB, free: 7.98 MB / 0.67 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002483/1.692, allocations: 1.161 MB / 1 GB, free: 7.184 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/1.692, allocations: 11.98 kB / 1 GB, free: 7.172 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/1.692, allocations: 4.547 kB / 1 GB, free: 7.168 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/1.693, allocations: 111.3 kB / 1 GB, free: 7.074 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/1.694, allocations: 216.9 kB / 1.001 GB, free: 6.883 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4941/2.188, allocations: 46.31 MB / 1.046 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007479/2.189, allocations: 80.2 kB / 1.046 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/2.189, allocations: 26.92 kB / 1.046 GB, free: 191.2 MB / 0.67 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 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003699/2.189, allocations: 224.7 kB / 1.046 GB, free: 191.1 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/2.189, allocations: 57.62 kB / 1.046 GB, free: 191.1 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/2.193, allocations: 2.428 MB / 1.049 GB, free: 190.8 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/2.193, allocations: 24.91 kB / 1.049 GB, free: 190.8 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/2.193, allocations: 0.6875 kB / 1.049 GB, free: 190.8 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002096/2.195, allocations: 1.684 MB / 1.05 GB, free: 190.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/2.198, allocations: 2.498 MB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/2.198, allocations: 0 / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/2.198, allocations: 129.4 kB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005881/2.199, allocations: 222.8 kB / 1.053 GB, free: 189.9 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/2.199, allocations: 15.95 kB / 1.053 GB, free: 189.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/2.201, allocations: 3.805 MB / 1.057 GB, free: 186.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/2.201, allocations: 3.5 kB / 1.057 GB, free: 186.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/2.204, allocations: 2.016 MB / 1.059 GB, free: 186.1 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002128/2.204, allocations: 158.9 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/2.204, allocations: 14.44 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005467/2.205, allocations: 61.53 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/2.205, allocations: 66.89 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.852e-05/2.205, allocations: 21.77 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002382/2.205, allocations: 252.5 kB / 1.059 GB, free: 185.9 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.3e-07/2.205, allocations: 0 / 1.059 GB, free: 185.9 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01445/2.22, allocations: 4.818 MB / 1.064 GB, free: 185.7 MB / 0.67 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.02878/2.248, allocations: 5.972 MB / 1.07 GB, free: 181.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003055/2.251, allocations: 1.558 MB / 1.071 GB, free: 180.2 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/2.251, allocations: 0 / 1.071 GB, free: 180.2 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001237/2.253, allocations: 0.843 MB / 1.072 GB, free: 179.6 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/2.256, allocations: 0.5094 MB / 1.073 GB, free: 179.3 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/2.258, allocations: 2.131 MB / 1.075 GB, free: 177.7 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/2.258, allocations: 0.9363 MB / 1.076 GB, free: 176.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005603/2.259, allocations: 192.5 kB / 1.076 GB, free: 176.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/2.259, allocations: 51.38 kB / 1.076 GB, free: 176.6 MB / 0.67 GB Notification: Performance of SimCode: time 6.71e-07/2.259, allocations: 0 / 1.076 GB, free: 176.6 MB / 0.67 GB Notification: Performance of Templates: time 0.4178/2.677, allocations: 186 MB / 1.257 GB, free: 358.3 MB / 0.67 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1) Environment - environmentSimulation: