Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") 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_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 108.8 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002103/0.002103, allocations: 183 kB / 19.38 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1969/0.1969, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 55.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3785, allocations: 60.83 MB / 0.5196 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.06929/0.4479, allocations: 64.91 MB / 0.583 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03615/0.4841, allocations: 27.03 MB / 0.6094 GB, free: 15.83 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.4856, allocations: 19.88 kB / 0.6094 GB, free: 15.81 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.4877, allocations: 0.555 MB / 0.6099 GB, free: 15.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01747/0.5052, allocations: 5.225 MB / 0.615 GB, free: 10.03 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.5156, allocations: 3.643 MB / 0.6186 GB, free: 6.383 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003619/0.5193, allocations: 2.231 MB / 0.6208 GB, free: 4.145 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001496/0.5208, allocations: 0.6589 MB / 0.6214 GB, free: 3.469 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01122/0.532, allocations: 4.343 MB / 0.6256 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.5336, allocations: 0.6964 MB / 0.6263 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004449/0.5341, allocations: 80 kB / 0.6264 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01492/0.5491, allocations: 6.923 MB / 0.6332 GB, free: 7.363 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.5496, allocations: 243.2 kB / 0.6334 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.5506, allocations: 0.5211 MB / 0.6339 GB, free: 6.602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01213/0.5628, allocations: 5.017 MB / 0.6388 GB, free: 1.574 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.5628, allocations: 0 / 0.6388 GB, free: 1.574 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5628, allocations: 0 / 0.6388 GB, free: 1.574 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.124e-05/0.5629, allocations: 0 / 0.6388 GB, free: 1.574 MB / 494.1 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.00505/0.5679, allocations: 1.793 MB / 0.6405 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.568, allocations: 12.03 kB / 0.6406 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005091/0.5731, allocations: 0.593 MB / 0.6411 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.5746, allocations: 0.6377 MB / 0.6418 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.286e-05/0.5747, allocations: 62.38 kB / 0.6418 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.5748, allocations: 75.94 kB / 0.6419 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003797/0.5787, allocations: 1.332 MB / 0.6432 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.5787, allocations: 4 kB / 0.6432 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.5788, allocations: 32 kB / 0.6432 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.5789, allocations: 20 kB / 0.6432 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003532/0.5824, allocations: 1.2 MB / 0.6444 GB, free: 11.63 MB / 0.4981 GB 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.007747/0.5902, allocations: 5.693 MB / 0.65 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003263/0.5934, allocations: 0.9539 MB / 0.6509 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007742/0.5942, allocations: 333.5 kB / 0.6512 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06553/0.6598, allocations: 32.42 MB / 0.6829 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.161e-05/0.6599, allocations: 46.55 kB / 0.6829 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008277/0.6608, allocations: 83.19 kB / 0.683 GB, free: 15.84 MB / 0.545 GB Notification: Performance of pre-optimization done (n=58): time 6.683e-06/0.6608, allocations: 0 / 0.683 GB, free: 15.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=58): time 0.006623/0.6674, allocations: 1.78 MB / 0.6848 GB, free: 14.01 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.6675, allocations: 191.9 kB / 0.6849 GB, free: 13.78 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.6686, allocations: 0.6763 MB / 0.6856 GB, free: 13.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.492e-05/0.6687, allocations: 33.7 kB / 0.6856 GB, free: 13.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/0.669, allocations: 403.7 kB / 0.686 GB, free: 12.66 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.6692, allocations: 197.2 kB / 0.6862 GB, free: 12.46 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.6694, allocations: 166.4 kB / 0.6864 GB, free: 12.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.6696, allocations: 394.7 kB / 0.6867 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007131/0.6703, allocations: 268.7 kB / 0.687 GB, free: 11.64 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009196/0.6712, allocations: 0.514 MB / 0.6875 GB, free: 11 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.6729, allocations: 0.7775 MB / 0.6883 GB, free: 10.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/0.6729, allocations: 8 kB / 0.6883 GB, free: 10.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002207/0.6751, allocations: 0.9128 MB / 0.6892 GB, free: 9.191 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.6751, allocations: 8 kB / 0.6892 GB, free: 9.184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.6752, allocations: 8 kB / 0.6892 GB, free: 9.176 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00573/0.6809, allocations: 0.6652 MB / 0.6898 GB, free: 8.504 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007166/0.6816, allocations: 183.8 kB / 0.69 GB, free: 8.324 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008871/0.6825, allocations: 1.175 MB / 0.6911 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007113/0.6833, allocations: 43.97 kB / 0.6912 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.6834, allocations: 43.98 kB / 0.6912 GB, free: 7.012 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009517/0.6843, allocations: 429.9 kB / 0.6916 GB, free: 6.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009059/0.6853, allocations: 0.5062 MB / 0.6921 GB, free: 5.969 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001501/0.6868, allocations: 0.761 MB / 0.6929 GB, free: 5.105 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/0.6868, allocations: 4 kB / 0.6929 GB, free: 5.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.002048/0.6888, allocations: 0.8559 MB / 0.6937 GB, free: 4.238 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.6889, allocations: 8.125 kB / 0.6937 GB, free: 4.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.6889, allocations: 12 kB / 0.6937 GB, free: 4.219 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.6889, allocations: 12 kB / 0.6937 GB, free: 4.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008046/0.6897, allocations: 215.7 kB / 0.6939 GB, free: 3.996 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.6897, allocations: 19.92 kB / 0.694 GB, free: 3.977 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006405/0.6904, allocations: 43.97 kB / 0.694 GB, free: 3.934 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.6905, allocations: 51.92 kB / 0.6941 GB, free: 3.883 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002736/0.6907, allocations: 237.1 kB / 0.6943 GB, free: 3.645 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.691, allocations: 82.97 kB / 0.6944 GB, free: 3.562 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00509/0.6961, allocations: 3.641 MB / 0.6979 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.6961, allocations: 3.984 kB / 0.6979 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.6961, allocations: 0 / 0.6979 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.6967, allocations: 298.7 kB / 0.6982 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003205/0.697, allocations: 51.38 kB / 0.6983 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007539/0.6978, allocations: 75.91 kB / 0.6983 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.698, allocations: 59.92 kB / 0.6984 GB, free: 15.4 MB / 0.5606 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): simpleGenericOrifice.F_p = simpleGenericOrifice.A_mean * (boundary_fixed.p - 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 / $cse16, simpleGenericOrifice.state_b.d / $cse16, false, 1.0) 4/4 (1): simpleGenericOrifice.state_a.d = $cse17.rho 5/5 (16): $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.h, 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 = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "Thermodynamic pressure in the connection point" type: Real [1] 10: $cse17.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse17.R_s: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 = 1e5 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 20: simpleGenericOrifice.F_p:VARIABLE(unit = "N" ) "Pressure force" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008052/0.6988, allocations: 346.3 kB / 0.6987 GB, free: 15.07 MB / 0.5606 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestDensity could not be translated