Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.001511, allocations: 117.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00168/0.001681, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2081/0.2081, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3546, allocations: 62.44 MB / 0.5317 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.04729/0.402, allocations: 42.52 MB / 0.5732 GB, free: 7.207 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01875/0.4207, allocations: 15.66 MB / 0.5885 GB, free: 7.488 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006236/0.4214, allocations: 11.94 kB / 0.5885 GB, free: 7.477 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.4224, allocations: 298 kB / 0.5888 GB, free: 7.184 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01247/0.4349, allocations: 4.669 MB / 0.5933 GB, free: 2.516 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005371/0.4403, allocations: 2.138 MB / 0.5954 GB, free: 384 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001604/0.4419, allocations: 1.181 MB / 0.5966 GB, free: 15.19 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005993/0.4425, allocations: 345.7 kB / 0.5969 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.4437, allocations: 0.5525 MB / 0.5974 GB, free: 14.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006248/0.4443, allocations: 378.4 kB / 0.5978 GB, free: 13.91 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.4445, allocations: 40 kB / 0.5978 GB, free: 13.88 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01491/0.4594, allocations: 7.441 MB / 0.6051 GB, free: 6.43 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.4596, allocations: 115.6 kB / 0.6052 GB, free: 6.316 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004523/0.4601, allocations: 290.7 kB / 0.6055 GB, free: 6.031 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.4712, allocations: 4.659 MB / 0.61 GB, free: 1.363 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4712, allocations: 7.984 kB / 0.61 GB, free: 1.355 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4712, allocations: 0 / 0.61 GB, free: 1.355 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.77e-05/0.4713, allocations: 0 / 0.61 GB, free: 1.355 MB / 462.1 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.004298/0.4756, allocations: 1.367 MB / 0.6114 GB, free: 15.94 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.4756, allocations: 8.031 kB / 0.6114 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002301/0.4779, allocations: 280 kB / 0.6117 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007454/0.4787, allocations: 443.5 kB / 0.6121 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.4787, allocations: 37.38 kB / 0.6121 GB, free: 15.15 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.4788, allocations: 40.12 kB / 0.6122 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.4806, allocations: 0.6741 MB / 0.6128 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4806, allocations: 3.938 kB / 0.6128 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/0.4807, allocations: 24 kB / 0.6128 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4807, allocations: 8 kB / 0.6128 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4824, allocations: 0.5814 MB / 0.6134 GB, free: 13.78 MB / 478.1 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.003502/0.4859, allocations: 2.971 MB / 0.6163 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.4873, allocations: 466.4 kB / 0.6168 GB, free: 10.11 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003941/0.4877, allocations: 192.8 kB / 0.6169 GB, free: 9.918 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0822/0.5699, allocations: 44.51 MB / 0.6604 GB, free: 7.777 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.57, allocations: 42.5 kB / 0.6605 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=30): time 3.016e-06/0.57, allocations: 3.938 kB / 0.6605 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30): time 0.003187/0.5732, allocations: 0.9515 MB / 0.6614 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.5733, allocations: 110.8 kB / 0.6615 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.5738, allocations: 413.8 kB / 0.6619 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.8e-05/0.5738, allocations: 33.7 kB / 0.6619 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.574, allocations: 244 kB / 0.6622 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.5741, allocations: 106.5 kB / 0.6623 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.5742, allocations: 81.62 kB / 0.6623 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5743, allocations: 354.8 kB / 0.6627 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.5747, allocations: 152.7 kB / 0.6628 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.5751, allocations: 267.4 kB / 0.6631 GB, free: 4.906 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007288/0.5759, allocations: 400.5 kB / 0.6635 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5759, allocations: 0 / 0.6635 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001036/0.5769, allocations: 0.4896 MB / 0.6639 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.5769, allocations: 11.98 kB / 0.6639 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.577, allocations: 8.062 kB / 0.6639 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002835/0.5798, allocations: 352.7 kB / 0.6643 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.5801, allocations: 83.89 kB / 0.6644 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004718/0.5806, allocations: 0.6108 MB / 0.665 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.581, allocations: 55.45 kB / 0.665 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.581, allocations: 19.98 kB / 0.665 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00044/0.5815, allocations: 260 kB / 0.6653 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003929/0.5819, allocations: 254.6 kB / 0.6655 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007155/0.5826, allocations: 392.7 kB / 0.6659 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.374e-06/0.5826, allocations: 0 / 0.6659 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.0009177/0.5835, allocations: 456.6 kB / 0.6663 GB, free: 1.367 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.5835, allocations: 8 kB / 0.6663 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.5836, allocations: 4 kB / 0.6663 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.092e-06/0.5836, allocations: 4 kB / 0.6663 GB, free: 1.352 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.584, allocations: 100.3 kB / 0.6664 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.584, allocations: 15.98 kB / 0.6665 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.5843, allocations: 39.73 kB / 0.6665 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.5843, allocations: 16 kB / 0.6665 GB, free: 1.184 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.5844, allocations: 214.3 kB / 0.6667 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.5846, allocations: 51.42 kB / 0.6668 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.5869, allocations: 2 MB / 0.6687 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.5869, allocations: 11.94 kB / 0.6687 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5869, allocations: 0 / 0.6687 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.5871, allocations: 199.8 kB / 0.6689 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.32e-05/0.5872, allocations: 23.69 kB / 0.6689 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.5875, allocations: 31.97 kB / 0.669 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.5876, allocations: 32.28 kB / 0.669 GB, free: 14.59 MB / 0.5294 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): 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 = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "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 = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "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 = 1e5 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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008572/0.5885, allocations: 0.5424 MB / 0.6695 GB, free: 13.99 MB / 0.5294 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate could not be translated