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.TestDensity.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.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 1.856/1.856, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004101/0.0004101, allocations: 8 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3269, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.07969/0.4066, allocations: 53.91 MB / 385.7 MB, free: 8.527 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03977/0.4464, allocations: 22.53 MB / 408.3 MB, free: 1.945 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.4477, allocations: 31.75 kB / 408.3 MB, free: 1.914 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001901/0.4497, allocations: 473.7 kB / 408.8 MB, free: 1.449 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01697/0.4667, allocations: 4.052 MB / 412.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0118/0.4785, allocations: 2.968 MB / 415.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00314/0.4817, allocations: 1.369 MB / 417.1 MB, free: 9.035 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.4827, allocations: 0.5383 MB / 417.7 MB, free: 8.484 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0172/0.5, allocations: 6.362 MB / 424 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.5013, allocations: 0.4942 MB / 424.5 MB, free: 1.621 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.5016, allocations: 44 kB / 424.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01904/0.5206, allocations: 6.641 MB / 431.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003571/0.521, allocations: 179.4 kB / 431.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.5214, allocations: 217.2 kB / 431.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008866/0.5303, allocations: 3.313 MB / 434.9 MB, free: 7.215 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.5304, allocations: 0 / 434.9 MB, free: 7.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5304, allocations: 0 / 434.9 MB, free: 7.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.5304, allocations: 0 / 434.9 MB, free: 7.215 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.005494/0.5359, allocations: 1.59 MB / 436.5 MB, free: 5.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.536, allocations: 12.03 kB / 436.5 MB, free: 5.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006482/0.5425, allocations: 0.5803 MB / 437.1 MB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.5439, allocations: 0.6211 MB / 437.7 MB, free: 4.316 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.816e-05/0.544, allocations: 65.98 kB / 437.8 MB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.5442, allocations: 72 kB / 437.9 MB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004941/0.5492, allocations: 1.367 MB / 439.2 MB, free: 2.727 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.5492, allocations: 3.938 kB / 439.2 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.5494, allocations: 36 kB / 439.3 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.5494, allocations: 20 kB / 439.3 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00536/0.5548, allocations: 1.24 MB / 440.5 MB, free: 1.43 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.009504/0.5643, allocations: 5.471 MB / 446 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004342/0.5687, allocations: 0.8485 MB / 446.8 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6094/1.178, allocations: 92.51 MB / 0.5267 GB, free: 94.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.738e-05/1.178, allocations: 46.55 kB / 0.5268 GB, free: 94 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007778/1.179, allocations: 93.69 kB / 0.5269 GB, free: 93.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 5.26e-06/1.179, allocations: 3.234 kB / 0.5269 GB, free: 93.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.00737/1.186, allocations: 1.585 MB / 0.5284 GB, free: 92.35 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/1.186, allocations: 191.9 kB / 0.5286 GB, free: 92.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007452/1.187, allocations: 0.5405 MB / 0.5291 GB, free: 91.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/1.187, allocations: 41.53 kB / 0.5292 GB, free: 91.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/1.188, allocations: 461.9 kB / 0.5296 GB, free: 91.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/1.188, allocations: 199.5 kB / 0.5298 GB, free: 90.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/1.188, allocations: 16 kB / 0.5298 GB, free: 90.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.826e-05/1.188, allocations: 350.6 kB / 0.5301 GB, free: 90.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009443/1.189, allocations: 225.8 kB / 0.5303 GB, free: 90.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/1.19, allocations: 0.5466 MB / 0.5309 GB, free: 89.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/1.191, allocations: 299.4 kB / 0.5312 GB, free: 89.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.046e-06/1.191, allocations: 0 / 0.5312 GB, free: 89.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002718/1.194, allocations: 0.8512 MB / 0.532 GB, free: 88.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/1.194, allocations: 382.9 kB / 0.5324 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/1.194, allocations: 11.06 kB / 0.5324 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007174/1.201, allocations: 440.7 kB / 0.5328 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/1.202, allocations: 195.7 kB / 0.533 GB, free: 87.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008977/1.203, allocations: 1.14 MB / 0.5341 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/1.204, allocations: 60 kB / 0.5342 GB, free: 86.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.924e-05/1.205, allocations: 55.97 kB / 0.5342 GB, free: 86.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/1.205, allocations: 4 kB / 0.5342 GB, free: 86.02 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002456/1.207, allocations: 0.7475 MB / 0.5349 GB, free: 85.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/1.207, allocations: 8 kB / 0.5349 GB, free: 85.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/1.207, allocations: 20.12 kB / 0.535 GB, free: 85.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.208, allocations: 219.7 kB / 0.5352 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/1.208, allocations: 23.88 kB / 0.5352 GB, free: 85.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000767/1.209, allocations: 63.89 kB / 0.5353 GB, free: 84.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/1.209, allocations: 47.98 kB / 0.5353 GB, free: 84.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004603/1.21, allocations: 314.4 kB / 0.5356 GB, free: 84.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/1.21, allocations: 75.06 kB / 0.5357 GB, free: 84.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006057/1.216, allocations: 3.555 MB / 0.5391 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/1.216, allocations: 11.94 kB / 0.5392 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.106e-06/1.216, allocations: 4 kB / 0.5392 GB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006011/1.217, allocations: 406 kB / 0.5396 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/1.217, allocations: 19.92 kB / 0.5396 GB, free: 80.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/1.218, allocations: 67.94 kB / 0.5396 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/1.218, allocations: 59.66 kB / 0.5397 GB, free: 80.37 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.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 / $cse16, simpleGenericOrifice.state_b.d / $cse16, false, 1.0) 3/3 (1): simpleGenericOrifice.state_a.d = $cse17.rho 4/4 (16): $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, 3200000.0, 0, 0) Variables: 1: $cse17.x:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse17.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse17.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse17.vt:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse17.p:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse17.T:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse17.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse17.phase:DISCRETE(protected = true ) type: Integer unreplaceable 9: 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] 10: $cse17.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse17.R:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse17.cp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse17.region:DISCRETE(protected = true ) type: Integer unreplaceable 14: $cse17.pd:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse17.rho:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse17.h:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse17.pt:VARIABLE(protected = true ) type: Real unreplaceable 18: 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 19: 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.0008996/1.219, allocations: 306.3 kB / 0.54 GB, free: 80.09 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.