Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.005802/0.005806, allocations: 370.7 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.796/3.796, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003616/0.003616, allocations: 226.7 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5258/0.5258, allocations: 80.03 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006797/0.00068, allocations: 15.98 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1307, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.5041/0.6349, allocations: 60.4 MB / 0.7391 GB, free: 14.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03857/0.6735, allocations: 25.17 MB / 0.7637 GB, free: 1.133 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.6751, allocations: 31.88 kB / 0.7637 GB, free: 1.117 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.6771, allocations: 434 kB / 0.7641 GB, free: 0.8242 MB / 346.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0192/0.6964, allocations: 4.15 MB / 0.7682 GB, free: 13.7 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01358/0.71, allocations: 2.882 MB / 0.771 GB, free: 11.57 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004782/0.7148, allocations: 2.489 MB / 0.7734 GB, free: 10.1 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.7164, allocations: 0.536 MB / 0.7739 GB, free: 9.746 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01718/0.7336, allocations: 6.533 MB / 0.7803 GB, free: 5.539 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.7357, allocations: 0.6497 MB / 0.781 GB, free: 4.887 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003204/0.7361, allocations: 40 kB / 0.781 GB, free: 4.848 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02051/0.7566, allocations: 6.492 MB / 0.7873 GB, free: 14.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005509/0.7572, allocations: 187.3 kB / 0.7875 GB, free: 14.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005192/0.7577, allocations: 213.2 kB / 0.7877 GB, free: 13.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008804/0.7665, allocations: 3.383 MB / 0.791 GB, free: 10.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.7666, allocations: 0 / 0.791 GB, free: 10.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.7666, allocations: 0 / 0.791 GB, free: 10.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.486e-05/0.7667, allocations: 0 / 0.791 GB, free: 10.56 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.006578/0.7733, allocations: 1.622 MB / 0.7926 GB, free: 8.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.7733, allocations: 8.031 kB / 0.7926 GB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007143/0.7805, allocations: 0.6194 MB / 0.7932 GB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.7822, allocations: 0.6133 MB / 0.7938 GB, free: 7.602 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.7824, allocations: 62 kB / 0.7939 GB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.7826, allocations: 72 kB / 0.7939 GB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00555/0.7881, allocations: 1.363 MB / 0.7953 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.7882, allocations: 11.89 kB / 0.7953 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/0.7884, allocations: 40 kB / 0.7953 GB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.073e-05/0.7884, allocations: 20 kB / 0.7953 GB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005765/0.7942, allocations: 1.243 MB / 0.7966 GB, free: 4.715 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.01047/0.8047, allocations: 5.491 MB / 0.8019 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004598/0.8093, allocations: 0.8403 MB / 0.8027 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.8106, allocations: 293.5 kB / 0.803 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3904/1.201, allocations: 92.6 MB / 0.8934 GB, free: 8.305 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.928e-05/1.201, allocations: 38.56 kB / 0.8935 GB, free: 8.258 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008057/1.202, allocations: 99.31 kB / 0.8936 GB, free: 8.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=58): time 3.246e-06/1.202, allocations: 0 / 0.8936 GB, free: 8.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=58): time 0.008451/1.21, allocations: 1.58 MB / 0.8951 GB, free: 6.531 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/1.211, allocations: 203.8 kB / 0.8953 GB, free: 6.289 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009844/1.212, allocations: 0.5389 MB / 0.8958 GB, free: 5.738 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/1.212, allocations: 37.7 kB / 0.8959 GB, free: 5.695 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000468/1.212, allocations: 422.8 kB / 0.8963 GB, free: 5.277 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/1.213, allocations: 205.1 kB / 0.8965 GB, free: 5.074 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/1.213, allocations: 16 kB / 0.8965 GB, free: 5.059 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002328/1.213, allocations: 374.8 kB / 0.8969 GB, free: 4.684 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/1.214, allocations: 229.8 kB / 0.8971 GB, free: 4.461 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/1.215, allocations: 0.5398 MB / 0.8976 GB, free: 3.773 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/1.217, allocations: 301.2 kB / 0.8979 GB, free: 3.484 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/1.217, allocations: 0 / 0.8979 GB, free: 3.484 MB / 490.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003304/1.22, allocations: 0.8856 MB / 0.8987 GB, free: 2.586 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003797/1.22, allocations: 386.5 kB / 0.8991 GB, free: 2.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/1.22, allocations: 8 kB / 0.8991 GB, free: 2.062 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007635/1.228, allocations: 445 kB / 0.8996 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/1.23, allocations: 195.7 kB / 0.8997 GB, free: 1.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/1.231, allocations: 1.155 MB / 0.9009 GB, free: 228 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/1.232, allocations: 63.98 kB / 0.9009 GB, free: 164 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/1.232, allocations: 47.98 kB / 0.901 GB, free: 116 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/1.232, allocations: 4 kB / 0.901 GB, free: 112 kB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.33/1.562, allocations: 0.7379 MB / 0.9017 GB, free: 184.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/1.562, allocations: 10.31 kB / 0.9017 GB, free: 184.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/1.562, allocations: 15.22 kB / 0.9017 GB, free: 184.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/1.564, allocations: 224.8 kB / 0.9019 GB, free: 184.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.163e-05/1.564, allocations: 21.78 kB / 0.902 GB, free: 184.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/1.565, allocations: 60.7 kB / 0.902 GB, free: 184.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/1.565, allocations: 47.38 kB / 0.9021 GB, free: 184.6 MB / 490.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.0006005/1.566, allocations: 311.7 kB / 0.9024 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/1.566, allocations: 74.5 kB / 0.9024 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007452/1.573, allocations: 3.558 MB / 0.9059 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.819e-05/1.574, allocations: 8.625 kB / 0.9059 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/1.574, allocations: 1.156 kB / 0.9059 GB, free: 183.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/1.574, allocations: 401.4 kB / 0.9063 GB, free: 183.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/1.575, allocations: 21 kB / 0.9063 GB, free: 183.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/1.576, allocations: 68.33 kB / 0.9064 GB, free: 183.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/1.576, allocations: 61.34 kB / 0.9064 GB, free: 183.1 MB / 490.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:9662:5-9663:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009672/1.577, allocations: 296.4 kB / 0.9067 GB, free: 182.9 MB / 490.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.