Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 179.1 kB / 17.39 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.4 MB / 223.5 MB, free: 8.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007337/0.0007337, allocations: 88.11 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3386/0.3386, allocations: 43.56 MB / 363.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.000407, allocations: 12 kB / 432.6 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1202, allocations: 58.85 MB / 491.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.2582/0.3784, allocations: 39.84 MB / 0.5189 GB, free: 22.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.3923, allocations: 14.62 MB / 0.5331 GB, free: 11.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006569/0.393, allocations: 17.78 kB / 0.5332 GB, free: 11.69 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007756/0.3938, allocations: 242.9 kB / 0.5334 GB, free: 11.56 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01071/0.4045, allocations: 3.66 MB / 0.537 GB, free: 9.918 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004668/0.4092, allocations: 1.676 MB / 0.5386 GB, free: 9.035 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.4105, allocations: 1.331 MB / 0.5399 GB, free: 8.484 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003822/0.4109, allocations: 295.5 kB / 0.5402 GB, free: 8.379 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006973/0.4116, allocations: 482.2 kB / 0.5406 GB, free: 8.191 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.412, allocations: 353.4 kB / 0.541 GB, free: 8.051 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.4121, allocations: 21.75 kB / 0.541 GB, free: 8.051 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01336/0.4254, allocations: 7.062 MB / 0.5479 GB, free: 6.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.4257, allocations: 102.9 kB / 0.548 GB, free: 6.355 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004355/0.4261, allocations: 278.6 kB / 0.5483 GB, free: 6.199 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006842/0.433, allocations: 3.15 MB / 0.5513 GB, free: 5.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.433, allocations: 0 / 0.5513 GB, free: 5.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.433, allocations: 0 / 0.5513 GB, free: 5.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.433, allocations: 5.281 kB / 0.5513 GB, free: 5.32 MB / 378.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.004381/0.4374, allocations: 1.257 MB / 0.5526 GB, free: 4.402 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.4375, allocations: 12.78 kB / 0.5526 GB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001942/0.4394, allocations: 287.4 kB / 0.5529 GB, free: 4.281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.44, allocations: 413.7 kB / 0.5533 GB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.4401, allocations: 35.19 kB / 0.5533 GB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.4401, allocations: 36.84 kB / 0.5533 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.4417, allocations: 0.7016 MB / 0.554 GB, free: 3.418 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.4417, allocations: 5.188 kB / 0.554 GB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.4418, allocations: 17.25 kB / 0.554 GB, free: 3.402 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.4418, allocations: 10.09 kB / 0.554 GB, free: 3.402 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.4434, allocations: 0.6168 MB / 0.5546 GB, free: 3.117 MB / 378.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.003151/0.4466, allocations: 2.996 MB / 0.5576 GB, free: 396 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.448, allocations: 0.4897 MB / 0.558 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.4484, allocations: 188.1 kB / 0.5582 GB, free: 52 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07727/0.5257, allocations: 40.32 MB / 0.5976 GB, free: 8.734 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5257, allocations: 45.38 kB / 0.5976 GB, free: 8.684 MB / 426.7 MB Notification: Performance of pre-optimization done (n=30): time 2.375e-06/0.5257, allocations: 0 / 0.5976 GB, free: 8.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=30): time 0.003306/0.5291, allocations: 1.003 MB / 0.5986 GB, free: 7.652 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.5291, allocations: 106.8 kB / 0.5987 GB, free: 7.523 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004927/0.5296, allocations: 405.9 kB / 0.5991 GB, free: 7.113 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.5297, allocations: 29.7 kB / 0.5991 GB, free: 7.078 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.5299, allocations: 252 kB / 0.5994 GB, free: 6.828 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.405e-05/0.53, allocations: 94.56 kB / 0.5995 GB, free: 6.734 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/0.53, allocations: 8 kB / 0.5995 GB, free: 6.727 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.5302, allocations: 358.8 kB / 0.5998 GB, free: 6.367 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.5305, allocations: 143.9 kB / 0.6 GB, free: 6.227 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004678/0.531, allocations: 278.3 kB / 0.6002 GB, free: 5.902 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008316/0.5319, allocations: 412.5 kB / 0.6006 GB, free: 5.453 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5319, allocations: 0 / 0.6006 GB, free: 5.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001118/0.533, allocations: 0.4974 MB / 0.6011 GB, free: 4.945 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.5331, allocations: 194.9 kB / 0.6013 GB, free: 4.707 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.5332, allocations: 4 kB / 0.6013 GB, free: 4.703 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003043/0.5362, allocations: 372.4 kB / 0.6016 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.5366, allocations: 87.89 kB / 0.6017 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005316/0.5371, allocations: 0.6107 MB / 0.6023 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.5376, allocations: 71.56 kB / 0.6024 GB, free: 3.543 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.5377, allocations: 23.98 kB / 0.6024 GB, free: 3.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.5377, allocations: 4 kB / 0.6024 GB, free: 3.516 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009371/0.5387, allocations: 414.6 kB / 0.6028 GB, free: 3.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.5387, allocations: 4 kB / 0.6028 GB, free: 3.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.262e-06/0.5387, allocations: 8 kB / 0.6028 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.5391, allocations: 112.2 kB / 0.6029 GB, free: 2.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.5391, allocations: 4 kB / 0.6029 GB, free: 2.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.5395, allocations: 63.56 kB / 0.603 GB, free: 2.926 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.5395, allocations: 23.98 kB / 0.603 GB, free: 2.902 MB / 426.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.0003033/0.5398, allocations: 253.3 kB / 0.6033 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-05/0.5399, allocations: 51.42 kB / 0.6033 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002599/0.5425, allocations: 2.04 MB / 0.6053 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5425, allocations: 0 / 0.6053 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.5425, allocations: 4 kB / 0.6053 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.5429, allocations: 255.4 kB / 0.6055 GB, free: 276 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.5429, allocations: 12 kB / 0.6056 GB, free: 264 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003686/0.5433, allocations: 59.88 kB / 0.6056 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.315e-05/0.5434, allocations: 32.28 kB / 0.6056 GB, free: 176 kB / 426.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: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/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.0009752/0.5444, allocations: 0.5382 MB / 0.6062 GB, free: 15.57 MB / 442.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.