Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002585/0.00259, allocations: 346 kB / 15.94 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.288/3.288, allocations: 341.5 MB / 358.2 MB, free: 28.64 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00365/0.00365, allocations: 215.4 kB / 397.9 MB, free: 6.016 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5438/0.5438, allocations: 76.1 MB / 0.5014 GB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004652, allocations: 16 kB / 0.5592 GB, free: 60.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08888, allocations: 48.7 MB / 0.6068 GB, free: 11.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.05626/0.1452, allocations: 34.74 MB / 0.6407 GB, free: 8.688 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3628/0.5081, allocations: 19.92 MB / 0.6601 GB, free: 13.28 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008099/0.5089, allocations: 16.41 kB / 0.6602 GB, free: 13.28 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.51, allocations: 218.5 kB / 0.6604 GB, free: 13.28 MB / 314.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0167/0.5267, allocations: 3.564 MB / 0.6638 GB, free: 13.19 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006431/0.5332, allocations: 1.532 MB / 0.6653 GB, free: 12.99 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.5353, allocations: 1.286 MB / 0.6666 GB, free: 12.76 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007823/0.5362, allocations: 275.8 kB / 0.6669 GB, free: 12.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02912/0.5653, allocations: 9.037 MB / 0.6757 GB, free: 12.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.5665, allocations: 331.2 kB / 0.676 GB, free: 11.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.5667, allocations: 19.31 kB / 0.676 GB, free: 11.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02495/0.5916, allocations: 6.808 MB / 0.6827 GB, free: 7.117 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003005/0.592, allocations: 93.75 kB / 0.6828 GB, free: 7.055 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.5923, allocations: 122.4 kB / 0.6829 GB, free: 6.953 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009121/0.6015, allocations: 3.014 MB / 0.6858 GB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.6015, allocations: 0 / 0.6858 GB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.6015, allocations: 4 kB / 0.6858 GB, free: 4.383 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.6016, allocations: 0 / 0.6858 GB, free: 4.383 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.005118/0.6067, allocations: 1.213 MB / 0.687 GB, free: 3.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.6068, allocations: 8.031 kB / 0.687 GB, free: 3.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003612/0.6104, allocations: 224.7 kB / 0.6872 GB, free: 2.973 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.6115, allocations: 398.1 kB / 0.6876 GB, free: 2.605 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.6116, allocations: 37 kB / 0.6876 GB, free: 2.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.6117, allocations: 40.31 kB / 0.6877 GB, free: 2.559 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.6149, allocations: 0.6856 MB / 0.6883 GB, free: 1.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.615, allocations: 0 / 0.6883 GB, free: 1.969 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.88e-05/0.6151, allocations: 21.75 kB / 0.6884 GB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/0.6152, allocations: 10.73 kB / 0.6884 GB, free: 1.953 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003341/0.6185, allocations: 0.5923 MB / 0.689 GB, free: 1.492 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006741/0.6253, allocations: 3.186 MB / 0.6921 GB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002804/0.6281, allocations: 435.3 kB / 0.6925 GB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006584/0.6288, allocations: 168.1 kB / 0.6926 GB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3339/0.9627, allocations: 81.67 MB / 0.7724 GB, free: 5.047 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.725e-05/0.9628, allocations: 38.56 kB / 0.7724 GB, free: 5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 2.865e-06/0.9628, allocations: 0 / 0.7724 GB, free: 5 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.004504/0.9674, allocations: 0.8421 MB / 0.7733 GB, free: 4.137 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/0.9675, allocations: 110.8 kB / 0.7734 GB, free: 4.004 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006389/0.9681, allocations: 349.4 kB / 0.7737 GB, free: 3.656 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.9682, allocations: 33.7 kB / 0.7737 GB, free: 3.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.9685, allocations: 260.5 kB / 0.774 GB, free: 3.359 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.9687, allocations: 109.6 kB / 0.7741 GB, free: 3.254 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.9687, allocations: 4 kB / 0.7741 GB, free: 3.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.9689, allocations: 350.8 kB / 0.7744 GB, free: 2.898 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006098/0.9695, allocations: 132.8 kB / 0.7745 GB, free: 2.766 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007825/0.9703, allocations: 334 kB / 0.7749 GB, free: 2.352 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007432/0.9711, allocations: 181.9 kB / 0.775 GB, free: 2.176 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.9711, allocations: 0 / 0.775 GB, free: 2.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001887/0.973, allocations: 0.5215 MB / 0.7755 GB, free: 1.645 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002556/0.9733, allocations: 268.2 kB / 0.7758 GB, free: 1.293 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.9733, allocations: 10.08 kB / 0.7758 GB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003973/0.9773, allocations: 232.2 kB / 0.776 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007983/0.9782, allocations: 111.8 kB / 0.7761 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000776/0.979, allocations: 0.6029 MB / 0.7767 GB, free: 332 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006572/0.9797, allocations: 55.58 kB / 0.7768 GB, free: 276 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.339e-05/0.9797, allocations: 31.98 kB / 0.7768 GB, free: 244 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.9798, allocations: 4 kB / 0.7768 GB, free: 240 kB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001578/0.9814, allocations: 443.2 kB / 0.7772 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.9814, allocations: 8 kB / 0.7772 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.9814, allocations: 12.75 kB / 0.7773 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007983/0.9822, allocations: 123.8 kB / 0.7774 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.9823, allocations: 15.92 kB / 0.7774 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.9829, allocations: 58.3 kB / 0.7774 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.983, allocations: 27.98 kB / 0.7775 GB, free: 15.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004078/0.9834, allocations: 257.7 kB / 0.7777 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.9835, allocations: 39.53 kB / 0.7778 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003905/0.9874, allocations: 1.873 MB / 0.7796 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.9875, allocations: 8 kB / 0.7796 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.9875, allocations: 0 / 0.7796 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004388/0.988, allocations: 247.4 kB / 0.7798 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.9881, allocations: 7.953 kB / 0.7798 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005664/0.9887, allocations: 43.97 kB / 0.7799 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.9888, allocations: 27.89 kB / 0.7799 GB, free: 13.04 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): -simpleGenericOrifice.dp_fg = 101325.0 - massFlowRate1.ports[1].p 2/2 (1): simpleGenericOrifice.m_flow = Modelica.Fluid.Utilities.regRoot2(simpleGenericOrifice.dp_fg, simpleGenericOrifice.dp_small, simpleGenericOrifice.state_a.d / $cse1, simpleGenericOrifice.state_b.d / $cse1, false, 1.0) 3/3 (1): simpleGenericOrifice.state_a.d = $cse2.rho 4/4 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 5/20 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 6/21 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, 323.15, 0) Variables: 1: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: massFlowRate1.ports[1].p:VARIABLE(flow=false min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "Thermodynamic pressure in the connection point" type: Real [1] 5: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 16: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.R:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 24: massFlowRate1.ports[1].h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] 25: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 26: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 31: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 35: simpleGenericOrifice.state_a.d:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 36: simpleGenericOrifice.dp_fg:VARIABLE(start = simpleGenericOrifice.dp_start unit = "Pa" ) "pressure loss due to friction and gravity" type: Real [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9662:5-9663:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001209/0.99, allocations: 0.5089 MB / 0.7804 GB, free: 12.47 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.