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.001785/0.001785, allocations: 106.6 kB / 16.41 MB, free: 6.496 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.001718/0.001718, allocations: 192.2 kB / 17.35 MB, free: 5.738 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.337/1.337, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04586/0.04586, allocations: 9.096 MB / 279.7 MB, free: 2.949 MB / 222.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.00138/0.00138, allocations: 71.83 kB / 388.2 MB, free: 47.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07681/0.0782, allocations: 48.18 MB / 436.4 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3976/0.4758, allocations: 196 MB / 0.6176 GB, free: 13.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4497/0.9255, allocations: 141.7 MB / 0.756 GB, free: 180 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007906/0.9264, allocations: 9.969 kB / 0.756 GB, free: 180 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00321/0.9297, allocations: 1.367 MB / 0.7573 GB, free: 176 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003249/0.9329, allocations: 1.64 MB / 0.7589 GB, free: 160 kB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.09301/1.026, allocations: 38.16 MB / 0.7962 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002974/1.029, allocations: 1.925 MB / 0.798 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003616/1.029, allocations: 196.8 kB / 0.7982 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001686/1.031, allocations: 0.8338 MB / 0.7991 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007618/1.032, allocations: 0.5327 MB / 0.7996 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.893e-05/1.032, allocations: 59.56 kB / 0.7996 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07804/1.11, allocations: 44.16 MB / 0.8428 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003775/1.11, allocations: 166.2 kB / 0.8429 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008781/1.111, allocations: 430.5 kB / 0.8433 GB, free: 7.586 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.05398/1.165, allocations: 18.81 MB / 0.8617 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.165, allocations: 7.938 kB / 0.8617 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/1.165, allocations: 0 / 0.8617 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.761e-05/1.165, allocations: 0 / 0.8617 GB, free: 6.645 MB / 0.5919 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.008426/1.174, allocations: 3.346 MB / 0.865 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/1.174, allocations: 8.031 kB / 0.865 GB, free: 3.246 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008064/1.175, allocations: 123 kB / 0.8651 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000513/1.175, allocations: 409.6 kB / 0.8655 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/1.175, allocations: 45 kB / 0.8655 GB, free: 2.645 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/1.175, allocations: 51.91 kB / 0.8656 GB, free: 2.594 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/1.177, allocations: 0.8212 MB / 0.8664 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/1.177, allocations: 0 / 0.8664 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.308e-05/1.177, allocations: 20 kB / 0.8664 GB, free: 1.73 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/1.177, allocations: 23.53 kB / 0.8664 GB, free: 1.711 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/1.179, allocations: 0.7574 MB / 0.8672 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003478/1.182, allocations: 3.425 MB / 0.8705 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/1.184, allocations: 0.6938 MB / 0.8712 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007104/1.185, allocations: 479.1 kB / 0.8716 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5986/1.783, allocations: 185.3 MB / 1.053 GB, free: 178.4 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/1.783, allocations: 40.19 kB / 1.053 GB, free: 178.3 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.877e-06/1.783, allocations: 0 / 1.053 GB, free: 178.3 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009018/1.792, allocations: 3.419 MB / 1.056 GB, free: 177.8 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.765e-05/1.792, allocations: 57.38 kB / 1.056 GB, free: 177.7 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/1.793, allocations: 312.9 kB / 1.056 GB, free: 177.6 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/1.793, allocations: 34.64 kB / 1.056 GB, free: 177.6 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/1.793, allocations: 231.8 kB / 1.057 GB, free: 177.5 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000207/1.793, allocations: 384.9 kB / 1.057 GB, free: 177.2 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/1.793, allocations: 139.1 kB / 1.057 GB, free: 177.2 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 7.7e-05/1.793, allocations: 367.3 kB / 1.057 GB, free: 176.9 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/1.794, allocations: 398.5 kB / 1.058 GB, free: 176.9 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007275/1.795, allocations: 0.5312 MB / 1.058 GB, free: 176.8 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/1.796, allocations: 0.9807 MB / 1.059 GB, free: 176.6 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/1.796, allocations: 0 / 1.059 GB, free: 176.6 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001926/1.798, allocations: 1.129 MB / 1.06 GB, free: 176.5 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.798, allocations: 7.75 kB / 1.06 GB, free: 176.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/1.798, allocations: 5.531 kB / 1.06 GB, free: 176.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003702/1.798, allocations: 102 kB / 1.061 GB, free: 176.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009468/1.799, allocations: 209.9 kB / 1.061 GB, free: 176.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1359/1.935, allocations: 35.27 MB / 1.095 GB, free: 163.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005922/1.936, allocations: 43.98 kB / 1.095 GB, free: 163.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.149e-05/1.936, allocations: 28.47 kB / 1.095 GB, free: 163.2 MB / 0.7481 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.0003535/1.936, allocations: 230.2 kB / 1.095 GB, free: 163.1 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/1.937, allocations: 53.38 kB / 1.095 GB, free: 163 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002524/1.939, allocations: 2.382 MB / 1.098 GB, free: 162.7 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00178/1.941, allocations: 1.647 MB / 1.099 GB, free: 162.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.941, allocations: 0 / 1.099 GB, free: 162.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/1.941, allocations: 141.1 kB / 1.1 GB, free: 162.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/1.941, allocations: 17.02 kB / 1.1 GB, free: 162.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/1.941, allocations: 38.7 kB / 1.1 GB, free: 162.1 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/1.942, allocations: 58.14 kB / 1.1 GB, free: 162.1 MB / 0.7481 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): fixedMassFlowRate.T_ambient = $cse17.T 2/2 (7): $cse17 = HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse17.h:VARIABLE(protected = true ) type: Real unreplaceable 2: fixedMassFlowRate.medium.state.h:VARIABLE(min = -1e5 max = 1.3e6 start = 6e5 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 3: $cse17.s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse17.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse17.phase:DISCRETE(protected = true ) type: Integer unreplaceable 6: $cse17.d:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse17.p:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse17.u:VARIABLE(protected = true ) type: Real unreplaceable [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005837/1.942, allocations: 193.8 kB / 1.1 GB, free: 162 MB / 0.7481 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2 could not be translated