Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004242/0.004242, allocations: 347.2 kB / 15.95 MB, free: 6.219 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.473/3.473, allocations: 341.5 MB / 358.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00521/0.00521, allocations: 209.2 kB / 397.9 MB, free: 4.898 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.506/0.506, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006309/0.0006312, allocations: 8 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09654, allocations: 48.71 MB / 0.6067 GB, free: 4.625 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.3265/0.4231, allocations: 39.2 MB / 0.645 GB, free: 68.05 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.4462, allocations: 14.47 MB / 0.6592 GB, free: 56.8 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009205/0.4471, allocations: 21.44 kB / 0.6592 GB, free: 56.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.4482, allocations: 227.6 kB / 0.6594 GB, free: 56.59 MB / 362.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.01601/0.4642, allocations: 3.619 MB / 0.6629 GB, free: 53.92 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006699/0.4709, allocations: 1.621 MB / 0.6645 GB, free: 52.73 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002208/0.4732, allocations: 1.314 MB / 0.6658 GB, free: 51.95 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007002/0.4739, allocations: 278.6 kB / 0.6661 GB, free: 51.79 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.4753, allocations: 479.5 kB / 0.6665 GB, free: 51.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006993/0.476, allocations: 351.4 kB / 0.6669 GB, free: 51.33 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.584e-05/0.4761, allocations: 28.56 kB / 0.6669 GB, free: 51.32 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01835/0.4945, allocations: 6.878 MB / 0.6736 GB, free: 44.63 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.4948, allocations: 99.58 kB / 0.6737 GB, free: 44.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.4951, allocations: 125.5 kB / 0.6738 GB, free: 44.4 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007329/0.5024, allocations: 3.068 MB / 0.6768 GB, free: 41.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.5025, allocations: 0 / 0.6768 GB, free: 41.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5025, allocations: 4 kB / 0.6768 GB, free: 41.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.5026, allocations: 0 / 0.6768 GB, free: 41.32 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.004525/0.5071, allocations: 1.248 MB / 0.678 GB, free: 40.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5072, allocations: 8.031 kB / 0.678 GB, free: 40.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002832/0.51, allocations: 267.1 kB / 0.6783 GB, free: 39.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008377/0.5109, allocations: 418.5 kB / 0.6787 GB, free: 39.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.312e-05/0.511, allocations: 41 kB / 0.6787 GB, free: 39.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.489e-05/0.511, allocations: 38.25 kB / 0.6788 GB, free: 39.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/0.5134, allocations: 0.6898 MB / 0.6794 GB, free: 38.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.5135, allocations: 4 kB / 0.6794 GB, free: 38.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.5136, allocations: 20 kB / 0.6795 GB, free: 38.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.5136, allocations: 15.94 kB / 0.6795 GB, free: 38.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/0.5161, allocations: 0.601 MB / 0.6801 GB, free: 37.86 MB / 362.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.005672/0.5218, allocations: 2.882 MB / 0.6829 GB, free: 34.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.5246, allocations: 462.5 kB / 0.6833 GB, free: 34.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007856/0.5255, allocations: 172.2 kB / 0.6835 GB, free: 34.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3452/0.8707, allocations: 82.63 MB / 0.7642 GB, free: 7.453 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/0.8708, allocations: 38.56 kB / 0.7642 GB, free: 7.406 MB / 426.7 MB Notification: Performance of pre-optimization done (n=30): time 3.216e-06/0.8708, allocations: 0 / 0.7642 GB, free: 7.406 MB / 426.7 MB Notification: Performance of matching and sorting (n=30): time 0.004803/0.8756, allocations: 0.9202 MB / 0.7651 GB, free: 6.457 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.8758, allocations: 110.8 kB / 0.7652 GB, free: 6.324 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/0.8764, allocations: 357.5 kB / 0.7656 GB, free: 5.965 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.8764, allocations: 33.7 kB / 0.7656 GB, free: 5.926 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.8767, allocations: 259.8 kB / 0.7658 GB, free: 5.668 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.8769, allocations: 106.5 kB / 0.7659 GB, free: 5.562 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.8769, allocations: 12 kB / 0.766 GB, free: 5.551 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.8771, allocations: 350.8 kB / 0.7663 GB, free: 5.199 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/0.8777, allocations: 136.8 kB / 0.7664 GB, free: 5.066 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007251/0.8785, allocations: 291 kB / 0.7667 GB, free: 4.715 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000654/0.8791, allocations: 159.9 kB / 0.7668 GB, free: 4.559 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.8791, allocations: 0 / 0.7668 GB, free: 4.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001788/0.8809, allocations: 0.4923 MB / 0.7673 GB, free: 4.059 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001861/0.8812, allocations: 225.3 kB / 0.7675 GB, free: 3.773 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.8812, allocations: 7.938 kB / 0.7676 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003998/0.8852, allocations: 239.9 kB / 0.7678 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/0.8859, allocations: 95.83 kB / 0.7679 GB, free: 3.438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007899/0.8867, allocations: 0.6108 MB / 0.7685 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005967/0.8873, allocations: 51.66 kB / 0.7685 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.358e-05/0.8874, allocations: 24 kB / 0.7685 GB, free: 2.727 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.8875, allocations: 4.062 kB / 0.7685 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001544/0.889, allocations: 417 kB / 0.7689 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.889, allocations: 4 kB / 0.7689 GB, free: 2.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.8891, allocations: 9.312 kB / 0.769 GB, free: 2.305 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007763/0.8898, allocations: 116.4 kB / 0.7691 GB, free: 2.191 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.8899, allocations: 4 kB / 0.7691 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.8904, allocations: 63.56 kB / 0.7691 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.8905, allocations: 20 kB / 0.7691 GB, free: 2.105 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (45): * Single equations (assignments): 44 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003873/0.8909, allocations: 258.9 kB / 0.7694 GB, free: 1.844 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.891, allocations: 39.53 kB / 0.7694 GB, free: 1.805 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3348/1.226, allocations: 1.989 MB / 0.7714 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/1.226, allocations: 4.703 kB / 0.7714 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/1.226, allocations: 2.094 kB / 0.7714 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/1.226, allocations: 245.8 kB / 0.7716 GB, free: 147.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/1.226, allocations: 8.531 kB / 0.7716 GB, free: 147.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005734/1.227, allocations: 47.73 kB / 0.7717 GB, free: 147.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/1.227, allocations: 28.97 kB / 0.7717 GB, free: 147.6 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.F_p = simpleGenericOrifice.A_mean * (101325.0 - massFlowRate1.ports[1].p) 2/2 (1): -simpleGenericOrifice.F_p = simpleGenericOrifice.A_mean * simpleGenericOrifice.dp_fg 3/3 (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) 4/4 (1): simpleGenericOrifice.state_a.d = $cse2.rho 5/5 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 6/21 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 7/22 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, 323.15, 0) Variables: 1: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 7: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 13: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 14: 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] 15: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.R:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 23: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 25: 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] 26: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 27: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.s: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 37: simpleGenericOrifice.F_p:VARIABLE(unit = "N" ) "Pressure force" 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.001141/1.228, allocations: 0.5364 MB / 0.7722 GB, free: 147.2 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.