Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 2.339/2.339, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.0004291, allocations: 16 kB / 315 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.358, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.05695/0.4151, allocations: 35.69 MB / 405.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02611/0.4412, allocations: 13.39 MB / 418.9 MB, free: 9.527 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008984/0.4422, allocations: 19.81 kB / 418.9 MB, free: 9.508 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.4434, allocations: 250.8 kB / 419.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0159/0.4593, allocations: 3.615 MB / 422.8 MB, free: 5.637 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007337/0.4667, allocations: 1.718 MB / 424.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.4685, allocations: 0.7424 MB / 425.2 MB, free: 3.172 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006205/0.4691, allocations: 293.1 kB / 425.5 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.4705, allocations: 498.3 kB / 426 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.471, allocations: 266.9 kB / 426.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.272e-05/0.4711, allocations: 24 kB / 426.3 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02066/0.4918, allocations: 7.179 MB / 433.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.4921, allocations: 95.66 kB / 433.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002645/0.4924, allocations: 129.5 kB / 433.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008922/0.5013, allocations: 3.103 MB / 436.8 MB, free: 7.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5014, allocations: 0 / 436.8 MB, free: 7.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5014, allocations: 0 / 436.8 MB, free: 7.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.5014, allocations: 0 / 436.8 MB, free: 7.59 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.004521/0.506, allocations: 1.255 MB / 438 MB, free: 6.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.506, allocations: 12.03 kB / 438.1 MB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002888/0.5089, allocations: 283.1 kB / 438.3 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009781/0.51, allocations: 418.4 kB / 438.7 MB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.313e-05/0.51, allocations: 33 kB / 438.8 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.5101, allocations: 40 kB / 438.8 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.5127, allocations: 0.6898 MB / 439.5 MB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.5128, allocations: 7.938 kB / 439.5 MB, free: 4.727 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.876e-05/0.5129, allocations: 19.95 kB / 439.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.5129, allocations: 16 kB / 439.5 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.5156, allocations: 0.6088 MB / 440.2 MB, free: 4.086 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.004905/0.5205, allocations: 2.87 MB / 443 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.5226, allocations: 463.2 kB / 443.5 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6197/1.142, allocations: 82.74 MB / 0.5139 GB, free: 47.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/1.142, allocations: 38.56 kB / 0.5139 GB, free: 47.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=30): time 3.606e-06/1.142, allocations: 0 / 0.5139 GB, free: 47.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=30): time 0.004279/1.147, allocations: 0.9182 MB / 0.5148 GB, free: 46.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/1.147, allocations: 106.8 kB / 0.5149 GB, free: 46.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/1.147, allocations: 356.5 kB / 0.5153 GB, free: 46.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/1.147, allocations: 35.02 kB / 0.5153 GB, free: 46.03 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/1.148, allocations: 311.6 kB / 0.5156 GB, free: 45.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.987e-05/1.148, allocations: 109.4 kB / 0.5157 GB, free: 45.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/1.148, allocations: 7.844 kB / 0.5157 GB, free: 45.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/1.148, allocations: 330.8 kB / 0.516 GB, free: 45.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000521/1.148, allocations: 132.8 kB / 0.5161 GB, free: 45.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/1.149, allocations: 287.2 kB / 0.5164 GB, free: 44.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/1.15, allocations: 160.6 kB / 0.5166 GB, free: 44.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/1.15, allocations: 4 kB / 0.5166 GB, free: 44.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0015/1.151, allocations: 484.2 kB / 0.517 GB, free: 44.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.151, allocations: 228.5 kB / 0.5173 GB, free: 43.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.151, allocations: 4 kB / 0.5173 GB, free: 43.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003848/1.155, allocations: 241.8 kB / 0.5175 GB, free: 43.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/1.156, allocations: 95.83 kB / 0.5176 GB, free: 43.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005527/1.156, allocations: 0.603 MB / 0.5182 GB, free: 42.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/1.157, allocations: 55.56 kB / 0.5182 GB, free: 42.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/1.157, allocations: 24.88 kB / 0.5183 GB, free: 42.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.615e-06/1.157, allocations: 4 kB / 0.5183 GB, free: 42.86 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001294/1.158, allocations: 419.4 kB / 0.5187 GB, free: 42.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/1.158, allocations: 4 kB / 0.5187 GB, free: 42.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/1.158, allocations: 8 kB / 0.5187 GB, free: 42.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007033/1.159, allocations: 109.9 kB / 0.5188 GB, free: 42.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/1.159, allocations: 8.438 kB / 0.5188 GB, free: 42.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003936/1.159, allocations: 67.61 kB / 0.5188 GB, free: 42.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/1.159, allocations: 20 kB / 0.5189 GB, free: 42.24 MB / 394.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.0002887/1.16, allocations: 243.1 kB / 0.5191 GB, free: 42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/1.16, allocations: 47.47 kB / 0.5191 GB, free: 41.95 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00336/1.163, allocations: 1.995 MB / 0.5211 GB, free: 39.94 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/1.163, allocations: 3.953 kB / 0.5211 GB, free: 39.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.163, allocations: 4 kB / 0.5211 GB, free: 39.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003011/1.164, allocations: 247.4 kB / 0.5213 GB, free: 39.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/1.164, allocations: 4 kB / 0.5213 GB, free: 39.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/1.164, allocations: 47.86 kB / 0.5214 GB, free: 39.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.201e-05/1.164, allocations: 32.22 kB / 0.5214 GB, free: 39.59 MB / 394.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:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00105/1.165, allocations: 0.544 MB / 0.5219 GB, free: 39 MB / 394.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.