Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 1.741/1.741, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3315, allocations: 48.71 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.05188/0.3834, allocations: 35.41 MB / 367.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.4078, allocations: 13.28 MB / 380.5 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007011/0.4086, allocations: 19.81 kB / 380.5 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.4097, allocations: 246.8 kB / 380.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01491/0.4246, allocations: 3.592 MB / 384.4 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00668/0.4313, allocations: 1.679 MB / 386 MB, free: 8.211 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.4329, allocations: 0.7346 MB / 386.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005783/0.4335, allocations: 285.3 kB / 387.1 MB, free: 7.188 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.4349, allocations: 494.3 kB / 387.5 MB, free: 6.703 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.4354, allocations: 266.8 kB / 387.8 MB, free: 6.441 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.345e-05/0.4355, allocations: 24 kB / 387.8 MB, free: 6.418 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01948/0.455, allocations: 7.074 MB / 394.9 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.4552, allocations: 95.64 kB / 395 MB, free: 15.24 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002108/0.4554, allocations: 125.4 kB / 395.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.4635, allocations: 3.06 MB / 398.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4636, allocations: 0 / 398.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4636, allocations: 0 / 398.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.4636, allocations: 0 / 398.2 MB, free: 12.04 MB / 330.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.004001/0.4676, allocations: 1.255 MB / 399.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4677, allocations: 8.031 kB / 399.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002678/0.4704, allocations: 263.1 kB / 399.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007937/0.4712, allocations: 418.5 kB / 400.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.4712, allocations: 32.94 kB / 400.1 MB, free: 9.988 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.603e-05/0.4713, allocations: 44 kB / 400.2 MB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002418/0.4738, allocations: 0.6898 MB / 400.9 MB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.4738, allocations: 4 kB / 400.9 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.411e-05/0.4739, allocations: 20 kB / 400.9 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.4739, allocations: 8 kB / 400.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.4765, allocations: 0.6165 MB / 401.5 MB, free: 8.562 MB / 330.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.00459/0.4811, allocations: 2.881 MB / 404.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/0.4832, allocations: 456.3 kB / 404.8 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5737/1.057, allocations: 82.62 MB / 487.5 MB, free: 139 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/1.057, allocations: 42.31 kB / 487.5 MB, free: 138.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 2.775e-06/1.057, allocations: 0 / 487.5 MB, free: 138.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.004309/1.061, allocations: 0.9151 MB / 488.4 MB, free: 138.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/1.061, allocations: 110 kB / 488.5 MB, free: 138.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004919/1.062, allocations: 353.1 kB / 488.9 MB, free: 138.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/1.062, allocations: 35.39 kB / 488.9 MB, free: 138.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/1.062, allocations: 319.7 kB / 489.2 MB, free: 138.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.801e-05/1.062, allocations: 98.86 kB / 489.3 MB, free: 138.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/1.062, allocations: 9.875 kB / 489.3 MB, free: 138.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.288e-05/1.062, allocations: 321.6 kB / 489.6 MB, free: 137.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005357/1.063, allocations: 135 kB / 489.8 MB, free: 137.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/1.063, allocations: 289.2 kB / 490 MB, free: 137.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/1.064, allocations: 168.5 kB / 490.2 MB, free: 137.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/1.064, allocations: 1.188 kB / 490.2 MB, free: 137.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001536/1.066, allocations: 481.9 kB / 490.7 MB, free: 137.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.429e-05/1.066, allocations: 221.6 kB / 490.9 MB, free: 137 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/1.066, allocations: 11.06 kB / 490.9 MB, free: 137 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003821/1.07, allocations: 239.1 kB / 491.1 MB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006141/1.07, allocations: 97.73 kB / 491.2 MB, free: 136.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005418/1.071, allocations: 0.6041 MB / 491.8 MB, free: 136.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/1.071, allocations: 59.77 kB / 491.9 MB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.737e-05/1.071, allocations: 28.55 kB / 491.9 MB, free: 136.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/1.071, allocations: 3.625 kB / 491.9 MB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001354/1.073, allocations: 414.5 kB / 492.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/1.073, allocations: 3.969 kB / 492.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/1.073, allocations: 8.312 kB / 492.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007122/1.074, allocations: 118 kB / 492.5 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.074, allocations: 10.56 kB / 492.5 MB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/1.074, allocations: 60.12 kB / 492.5 MB, free: 136.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/1.074, allocations: 20.78 kB / 492.6 MB, free: 136.1 MB / 410.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.0002832/1.074, allocations: 249 kB / 492.8 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.634e-05/1.074, allocations: 38.97 kB / 492.8 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003543/1.078, allocations: 1.998 MB / 494.8 MB, free: 134.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/1.078, allocations: 4 kB / 494.8 MB, free: 134.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/1.078, allocations: 0 / 494.8 MB, free: 134.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/1.078, allocations: 245.2 kB / 495.1 MB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/1.079, allocations: 6.5 kB / 495.1 MB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005513/1.079, allocations: 51.05 kB / 495.1 MB, free: 134.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.079, allocations: 33.72 kB / 495.2 MB, free: 134.5 MB / 410.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.001043/1.08, allocations: 0.5281 MB / 495.7 MB, free: 134 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.