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.TestDensity.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 234.9 MB / 251.1 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004556/0.0004558, allocations: 12 kB / 315 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3729, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.08637/0.4593, allocations: 54.35 MB / 424.2 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04228/0.5016, allocations: 22.83 MB / 447 MB, free: 13.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.503, allocations: 31.75 kB / 447 MB, free: 13.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002059/0.5051, allocations: 461.8 kB / 447.5 MB, free: 12.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01796/0.523, allocations: 4.102 MB / 451.6 MB, free: 8.789 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01288/0.536, allocations: 3.031 MB / 454.6 MB, free: 5.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003551/0.5395, allocations: 1.396 MB / 456 MB, free: 4.352 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.5407, allocations: 0.5423 MB / 456.5 MB, free: 3.793 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01765/0.5584, allocations: 6.451 MB / 463 MB, free: 13.34 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.5601, allocations: 0.4981 MB / 463.5 MB, free: 12.84 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.5603, allocations: 44 kB / 463.5 MB, free: 12.79 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02048/0.5808, allocations: 6.723 MB / 470.3 MB, free: 6.062 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004038/0.5813, allocations: 191.3 kB / 470.4 MB, free: 5.875 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004393/0.5818, allocations: 209.3 kB / 470.6 MB, free: 5.664 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009737/0.5915, allocations: 3.36 MB / 474 MB, free: 2.297 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5916, allocations: 4 kB / 474 MB, free: 2.293 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5916, allocations: 3.938 kB / 474 MB, free: 2.289 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.5916, allocations: 0 / 474 MB, free: 2.289 MB / 394.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.006243/0.5979, allocations: 1.625 MB / 475.6 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.598, allocations: 12.03 kB / 475.7 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3272/0.9252, allocations: 0.6141 MB / 476.3 MB, free: 97.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/0.9273, allocations: 0.6001 MB / 476.9 MB, free: 97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.9275, allocations: 67.28 kB / 476.9 MB, free: 97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002365/0.9277, allocations: 72.75 kB / 477 MB, free: 97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006203/0.9339, allocations: 1.361 MB / 478.4 MB, free: 96.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.761e-05/0.934, allocations: 5.906 kB / 478.4 MB, free: 96.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/0.9342, allocations: 39.14 kB / 478.4 MB, free: 96.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/0.9343, allocations: 20.3 kB / 478.4 MB, free: 96.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005807/0.9401, allocations: 1.248 MB / 479.7 MB, free: 96.18 MB / 394.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.009785/0.9499, allocations: 5.475 MB / 485.2 MB, free: 91.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00431/0.9543, allocations: 0.8483 MB / 486 MB, free: 91.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3541/1.308, allocations: 92.6 MB / 0.565 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.422e-05/1.309, allocations: 46.55 kB / 0.5651 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008972/1.309, allocations: 92.92 kB / 0.5652 GB, free: 10.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 4.378e-06/1.309, allocations: 0 / 0.5652 GB, free: 10.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.008304/1.318, allocations: 1.59 MB / 0.5667 GB, free: 9.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/1.318, allocations: 195.9 kB / 0.5669 GB, free: 8.836 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009737/1.319, allocations: 0.5351 MB / 0.5674 GB, free: 8.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.172e-05/1.319, allocations: 33.7 kB / 0.5675 GB, free: 8.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004272/1.319, allocations: 465 kB / 0.5679 GB, free: 7.793 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/1.32, allocations: 197.2 kB / 0.5681 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.347e-05/1.32, allocations: 16 kB / 0.5681 GB, free: 7.586 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/1.32, allocations: 342.8 kB / 0.5684 GB, free: 7.242 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/1.321, allocations: 229.8 kB / 0.5687 GB, free: 7.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/1.322, allocations: 0.5398 MB / 0.5692 GB, free: 6.332 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/1.324, allocations: 304.4 kB / 0.5695 GB, free: 6.043 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/1.324, allocations: 4 kB / 0.5695 GB, free: 6.039 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00317/1.327, allocations: 0.8469 MB / 0.5703 GB, free: 5.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003423/1.327, allocations: 374.7 kB / 0.5707 GB, free: 4.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/1.327, allocations: 12 kB / 0.5707 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007595/1.335, allocations: 446.4 kB / 0.5711 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/1.336, allocations: 199.7 kB / 0.5713 GB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/1.338, allocations: 1.134 MB / 0.5724 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/1.339, allocations: 63.94 kB / 0.5725 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/1.339, allocations: 55.94 kB / 0.5725 GB, free: 2.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/1.339, allocations: 4 kB / 0.5725 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002857/1.342, allocations: 0.7536 MB / 0.5733 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/1.342, allocations: 10.34 kB / 0.5733 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/1.342, allocations: 16 kB / 0.5733 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/1.344, allocations: 219.7 kB / 0.5735 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.778e-05/1.344, allocations: 19.94 kB / 0.5735 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000802/1.344, allocations: 63.89 kB / 0.5736 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/1.345, allocations: 43.98 kB / 0.5736 GB, free: 1.609 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.0006143/1.345, allocations: 323.8 kB / 0.5739 GB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/1.345, allocations: 79.11 kB / 0.574 GB, free: 1.207 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007679/1.353, allocations: 3.557 MB / 0.5775 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/1.353, allocations: 7.984 kB / 0.5775 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/1.353, allocations: 0 / 0.5775 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008267/1.354, allocations: 410 kB / 0.5779 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/1.354, allocations: 12 kB / 0.5779 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/1.355, allocations: 71.86 kB / 0.5779 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/1.355, allocations: 55.88 kB / 0.578 GB, free: 13.07 MB / 426.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.001014/1.357, allocations: 303.9 kB / 0.5783 GB, free: 12.78 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.