Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 117.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 210.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2256/0.2256, allocations: 46.09 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.88 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3235, allocations: 62.43 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.06254/0.386, allocations: 65.12 MB / 0.5952 GB, free: 388 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0295/0.4156, allocations: 27.05 MB / 0.6217 GB, free: 5.234 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.4169, allocations: 23.88 kB / 0.6217 GB, free: 5.211 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.4185, allocations: 0.555 MB / 0.6222 GB, free: 4.652 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01531/0.4339, allocations: 5.229 MB / 0.6273 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009682/0.4436, allocations: 3.642 MB / 0.6309 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.4467, allocations: 2.227 MB / 0.6331 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.4479, allocations: 0.658 MB / 0.6337 GB, free: 8.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009648/0.4576, allocations: 4.347 MB / 0.638 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.4593, allocations: 0.6964 MB / 0.6386 GB, free: 3.766 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003816/0.4597, allocations: 80 kB / 0.6387 GB, free: 3.688 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01504/0.4748, allocations: 6.938 MB / 0.6455 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004013/0.4752, allocations: 235.2 kB / 0.6457 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008755/0.4761, allocations: 0.5327 MB / 0.6462 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.4864, allocations: 5.024 MB / 0.6511 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4865, allocations: 0 / 0.6511 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4865, allocations: 0 / 0.6511 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.329e-05/0.4865, allocations: 0 / 0.6511 GB, free: 6.941 MB / 0.4981 GB 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.004764/0.4913, allocations: 1.807 MB / 0.6529 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4913, allocations: 8.031 kB / 0.6529 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005139/0.4965, allocations: 0.6163 MB / 0.6535 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.4977, allocations: 0.6377 MB / 0.6541 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.4978, allocations: 66.31 kB / 0.6542 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.498, allocations: 79.94 kB / 0.6543 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003476/0.5015, allocations: 1.332 MB / 0.6556 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.5015, allocations: 4 kB / 0.6556 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.843e-05/0.5016, allocations: 36 kB / 0.6556 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.889e-05/0.5017, allocations: 20 kB / 0.6556 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003399/0.5051, allocations: 1.193 MB / 0.6568 GB, free: 0.9648 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.007057/0.5121, allocations: 5.708 MB / 0.6624 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/0.5152, allocations: 0.9563 MB / 0.6633 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007442/0.516, allocations: 337.5 kB / 0.6636 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0647/0.5807, allocations: 36.12 MB / 0.6989 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/0.5808, allocations: 42.56 kB / 0.6989 GB, free: 0.8086 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005438/0.5813, allocations: 75.2 kB / 0.699 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of pre-optimization done (n=58): time 3.236e-06/0.5813, allocations: 0 / 0.699 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of matching and sorting (n=58): time 0.006121/0.5875, allocations: 1.784 MB / 0.7008 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.5876, allocations: 183.9 kB / 0.7009 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008669/0.5884, allocations: 0.6841 MB / 0.7016 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.629e-05/0.5885, allocations: 41.7 kB / 0.7016 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.5888, allocations: 395.9 kB / 0.702 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.589, allocations: 201.1 kB / 0.7022 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.5892, allocations: 166.4 kB / 0.7024 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5894, allocations: 386.7 kB / 0.7027 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006792/0.5901, allocations: 272.7 kB / 0.703 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.5909, allocations: 0.514 MB / 0.7035 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.5924, allocations: 0.7896 MB / 0.7043 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5924, allocations: 0 / 0.7043 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002048/0.5945, allocations: 0.9161 MB / 0.7052 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.5945, allocations: 8 kB / 0.7052 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.5946, allocations: 8.031 kB / 0.7052 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005739/0.6003, allocations: 0.6687 MB / 0.7058 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007757/0.6011, allocations: 183.7 kB / 0.706 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.6024, allocations: 1.171 MB / 0.7072 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008429/0.6032, allocations: 47.91 kB / 0.7072 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.83e-05/0.6034, allocations: 43.98 kB / 0.7072 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001025/0.6044, allocations: 421.8 kB / 0.7076 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009344/0.6053, allocations: 0.5177 MB / 0.7081 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001563/0.6069, allocations: 0.7634 MB / 0.7089 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.513e-06/0.6069, allocations: 0 / 0.7089 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.002/0.6089, allocations: 0.8633 MB / 0.7097 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.609, allocations: 10.19 kB / 0.7097 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.609, allocations: 8 kB / 0.7098 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.609, allocations: 12 kB / 0.7098 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007808/0.6098, allocations: 224.2 kB / 0.71 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.6098, allocations: 8 kB / 0.71 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.6105, allocations: 47.97 kB / 0.71 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.888e-05/0.6105, allocations: 43.92 kB / 0.7101 GB, free: 4.75 MB / 0.5606 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.00026/0.6108, allocations: 240.5 kB / 0.7103 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002246/0.611, allocations: 86.97 kB / 0.7104 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.6157, allocations: 3.632 MB / 0.7139 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.6157, allocations: 3.984 kB / 0.7139 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.6157, allocations: 3.938 kB / 0.7139 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.6162, allocations: 294.7 kB / 0.7142 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.6164, allocations: 63.28 kB / 0.7143 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.617, allocations: 67.91 kB / 0.7143 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.6172, allocations: 63.92 kB / 0.7144 GB, free: 268 kB / 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.0008076/0.618, allocations: 318.8 kB / 0.7147 GB, free: 15.96 MB / 0.5762 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestDensity could not be translated