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.TestPressure.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.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadModel(ModelicaTest): time 2.399/2.399, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004677/0.000468, allocations: 8 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3806, allocations: 54.87 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.06073/0.4414, allocations: 31.67 MB / 401.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03799/0.4795, allocations: 18.32 MB / 419.8 MB, free: 8.617 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008822/0.4805, allocations: 15.88 kB / 419.8 MB, free: 8.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.482, allocations: 234.9 kB / 420.1 MB, free: 8.371 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01789/0.4999, allocations: 3.565 MB / 423.6 MB, free: 4.797 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008265/0.5083, allocations: 1.613 MB / 425.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.5104, allocations: 0.7079 MB / 425.9 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008953/0.5114, allocations: 285.7 kB / 426.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02771/0.5391, allocations: 9.044 MB / 435.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008551/0.5401, allocations: 243 kB / 435.5 MB, free: 8.902 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.5402, allocations: 20 kB / 435.5 MB, free: 8.883 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02228/0.5625, allocations: 7.097 MB / 442.6 MB, free: 1.777 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003048/0.5629, allocations: 83.66 kB / 442.7 MB, free: 1.695 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.5632, allocations: 121.5 kB / 442.8 MB, free: 1.57 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009774/0.573, allocations: 3.037 MB / 445.9 MB, free: 14.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.5731, allocations: 0 / 445.9 MB, free: 14.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.5731, allocations: 0 / 445.9 MB, free: 14.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.5731, allocations: 3.938 kB / 445.9 MB, free: 14.52 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.005262/0.5784, allocations: 1.228 MB / 447.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.873e-05/0.5785, allocations: 8.031 kB / 447.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002644/0.5812, allocations: 235.2 kB / 447.3 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.5823, allocations: 390 kB / 447.7 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.697e-05/0.5824, allocations: 37 kB / 447.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.524e-05/0.5826, allocations: 36 kB / 447.8 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.5854, allocations: 0.6885 MB / 448.5 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.5855, allocations: 7.938 kB / 448.5 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-05/0.5856, allocations: 24 kB / 448.5 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.5857, allocations: 12 kB / 448.5 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.5886, allocations: 0.58 MB / 449.1 MB, free: 11.14 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.006308/0.5949, allocations: 3.196 MB / 452.3 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.5972, allocations: 419 kB / 452.7 MB, free: 7.277 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6937/1.291, allocations: 81.77 MB / 0.5219 GB, free: 39.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/1.291, allocations: 42.08 kB / 0.522 GB, free: 39.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 3.817e-06/1.291, allocations: 3.938 kB / 0.522 GB, free: 39.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.004303/1.295, allocations: 0.8495 MB / 0.5228 GB, free: 38.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/1.296, allocations: 106.8 kB / 0.5229 GB, free: 38.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/1.296, allocations: 342.3 kB / 0.5232 GB, free: 38.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/1.296, allocations: 33.7 kB / 0.5233 GB, free: 38.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/1.296, allocations: 319.8 kB / 0.5236 GB, free: 37.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/1.296, allocations: 96.86 kB / 0.5237 GB, free: 37.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/1.296, allocations: 8 kB / 0.5237 GB, free: 37.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.643e-05/1.297, allocations: 330.8 kB / 0.524 GB, free: 37.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/1.297, allocations: 132.8 kB / 0.5241 GB, free: 37.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008696/1.298, allocations: 338.2 kB / 0.5244 GB, free: 37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/1.299, allocations: 170.5 kB / 0.5246 GB, free: 36.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/1.299, allocations: 4 kB / 0.5246 GB, free: 36.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002286/1.301, allocations: 0.5052 MB / 0.5251 GB, free: 36.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002117/1.302, allocations: 276.3 kB / 0.5254 GB, free: 35.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/1.302, allocations: 12 kB / 0.5254 GB, free: 35.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00538/1.307, allocations: 227.1 kB / 0.5256 GB, free: 35.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.308, allocations: 107.8 kB / 0.5257 GB, free: 35.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008441/1.309, allocations: 0.5914 MB / 0.5263 GB, free: 35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/1.31, allocations: 79.41 kB / 0.5263 GB, free: 34.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/1.31, allocations: 24 kB / 0.5264 GB, free: 34.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/1.31, allocations: 4 kB / 0.5264 GB, free: 34.9 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002021/1.312, allocations: 444.2 kB / 0.5268 GB, free: 34.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/1.312, allocations: 8 kB / 0.5268 GB, free: 34.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/1.312, allocations: 11.56 kB / 0.5268 GB, free: 34.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.313, allocations: 124.4 kB / 0.5269 GB, free: 34.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.78e-05/1.313, allocations: 14.98 kB / 0.5269 GB, free: 34.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007158/1.314, allocations: 51.72 kB / 0.527 GB, free: 34.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.45e-05/1.314, allocations: 28 kB / 0.527 GB, free: 34.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (51): * Single equations (assignments): 50 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004833/1.315, allocations: 252.9 kB / 0.5273 GB, free: 33.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/1.315, allocations: 43.53 kB / 0.5273 GB, free: 33.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/1.32, allocations: 1.869 MB / 0.5291 GB, free: 32.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/1.32, allocations: 3.984 kB / 0.5291 GB, free: 32.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/1.32, allocations: 0 / 0.5291 GB, free: 32.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005394/1.32, allocations: 239.5 kB / 0.5294 GB, free: 31.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/1.32, allocations: 11.95 kB / 0.5294 GB, free: 31.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008455/1.321, allocations: 43.86 kB / 0.5294 GB, free: 31.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/1.322, allocations: 27.83 kB / 0.5294 GB, free: 31.71 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.dp_fg = 101325.0 - massFlowRate1.ports[1].p 2/2 (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) 3/3 (1): simpleGenericOrifice.state_a.d = $cse2.rho 4/4 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 5/20 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 6/21 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, 323.15, 0) Variables: 1: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: 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] 5: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 16: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.R:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 24: 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] 25: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 26: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 31: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.p: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 [/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.001453/1.323, allocations: 0.508 MB / 0.5299 GB, free: 31.16 MB / 394.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.