Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") 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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 194.8 kB / 16.76 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 244.1 MB, free: 8.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007945/0.0007944, allocations: 95.22 kB / 296.1 MB, free: 6.852 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3204/0.3204, allocations: 44.81 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.0002731, allocations: 12 kB / 465.9 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3064, allocations: 62.96 MB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.03231/0.3388, allocations: 39.89 MB / 0.5555 GB, free: 8.535 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01706/0.3559, allocations: 14.64 MB / 0.5698 GB, free: 14.12 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008778/0.3568, allocations: 15.72 kB / 0.5698 GB, free: 14.12 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.3579, allocations: 235.7 kB / 0.57 GB, free: 13.99 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01403/0.3719, allocations: 3.676 MB / 0.5736 GB, free: 11.48 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006203/0.3781, allocations: 1.686 MB / 0.5752 GB, free: 10.25 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001925/0.3801, allocations: 1.347 MB / 0.5766 GB, free: 9.445 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000684/0.3808, allocations: 291.7 kB / 0.5768 GB, free: 9.266 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.3821, allocations: 488.1 kB / 0.5773 GB, free: 9.004 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008053/0.3829, allocations: 366 kB / 0.5776 GB, free: 8.797 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.383, allocations: 21.97 kB / 0.5777 GB, free: 8.797 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0158/0.3988, allocations: 7.068 MB / 0.5846 GB, free: 3.621 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.3992, allocations: 99.62 kB / 0.5847 GB, free: 3.523 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006908/0.3999, allocations: 288.5 kB / 0.5849 GB, free: 3.234 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006679/0.4066, allocations: 3.157 MB / 0.588 GB, free: 72 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4066, allocations: 0 / 0.588 GB, free: 72 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4066, allocations: 0 / 0.588 GB, free: 72 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.4067, allocations: 0 / 0.588 GB, free: 72 kB / 394.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.003412/0.4101, allocations: 1.271 MB / 0.5893 GB, free: 14.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.4101, allocations: 12.03 kB / 0.5893 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/0.4122, allocations: 296 kB / 0.5896 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.4129, allocations: 411.6 kB / 0.59 GB, free: 14.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.413, allocations: 33.38 kB / 0.59 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.965e-05/0.413, allocations: 44.12 kB / 0.59 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4147, allocations: 0.6937 MB / 0.5907 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4147, allocations: 3.938 kB / 0.5907 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.4148, allocations: 16 kB / 0.5907 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.4148, allocations: 12 kB / 0.5907 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4164, allocations: 0.6204 MB / 0.5913 GB, free: 12.54 MB / 410.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.003581/0.42, allocations: 2.983 MB / 0.5943 GB, free: 9.328 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.4215, allocations: 494.4 kB / 0.5947 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.4219, allocations: 194.5 kB / 0.5949 GB, free: 8.645 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07609/0.498, allocations: 44.71 MB / 0.6386 GB, free: 6.301 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.4981, allocations: 46.5 kB / 0.6386 GB, free: 6.246 MB / 458.7 MB Notification: Performance of pre-optimization done (n=30): time 3.547e-06/0.4981, allocations: 0 / 0.6386 GB, free: 6.246 MB / 458.7 MB Notification: Performance of matching and sorting (n=30): time 0.003552/0.5017, allocations: 0.9913 MB / 0.6396 GB, free: 5.227 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.5018, allocations: 106.8 kB / 0.6397 GB, free: 5.098 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.5024, allocations: 421.8 kB / 0.6401 GB, free: 4.676 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.5024, allocations: 29.7 kB / 0.6401 GB, free: 4.641 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.5026, allocations: 247.9 kB / 0.6404 GB, free: 4.391 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.542e-05/0.5027, allocations: 98.59 kB / 0.6404 GB, free: 4.293 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.5027, allocations: 8 kB / 0.6405 GB, free: 4.285 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5029, allocations: 354.7 kB / 0.6408 GB, free: 3.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.5032, allocations: 147.9 kB / 0.6409 GB, free: 3.785 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.5037, allocations: 274.3 kB / 0.6412 GB, free: 3.465 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008034/0.5045, allocations: 421.1 kB / 0.6416 GB, free: 3.008 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5045, allocations: 0 / 0.6416 GB, free: 3.008 MB / 458.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001111/0.5056, allocations: 0.4988 MB / 0.6421 GB, free: 2.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.5058, allocations: 185.4 kB / 0.6423 GB, free: 2.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.5058, allocations: 0 / 0.6423 GB, free: 2.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002964/0.5088, allocations: 372.4 kB / 0.6426 GB, free: 1.902 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.5091, allocations: 99.77 kB / 0.6427 GB, free: 1.805 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005203/0.5097, allocations: 0.603 MB / 0.6433 GB, free: 1.176 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.5101, allocations: 75.56 kB / 0.6434 GB, free: 1.102 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.5101, allocations: 23.98 kB / 0.6434 GB, free: 1.078 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/0.5102, allocations: 3.938 kB / 0.6434 GB, free: 1.074 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009051/0.5111, allocations: 415.8 kB / 0.6438 GB, free: 0.668 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5111, allocations: 4 kB / 0.6438 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.422e-06/0.5111, allocations: 4 kB / 0.6438 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.5115, allocations: 103.9 kB / 0.6439 GB, free: 0.5586 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.5115, allocations: 15.92 kB / 0.6439 GB, free: 0.543 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.5119, allocations: 67.72 kB / 0.644 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.5119, allocations: 24.17 kB / 0.644 GB, free: 464 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (40): * Single equations (assignments): 39 * 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.0002405/0.5122, allocations: 251.9 kB / 0.6442 GB, free: 204 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.5123, allocations: 43.44 kB / 0.6443 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002493/0.5148, allocations: 2.035 MB / 0.6463 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.5148, allocations: 3.984 kB / 0.6463 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.5148, allocations: 3.984 kB / 0.6463 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003017/0.5151, allocations: 267.3 kB / 0.6465 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.183e-05/0.5152, allocations: 12 kB / 0.6465 GB, free: 13.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.5156, allocations: 59.8 kB / 0.6466 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.5157, allocations: 32.27 kB / 0.6466 GB, free: 13.72 MB / 474.7 MB [/var/lib/jenkins1/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 * (boundary_fixed.p - 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, massFlowRate1.T, 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_s: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_s: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008874/0.5166, allocations: 0.55 MB / 0.6472 GB, free: 13.11 MB / 474.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.