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.001177/0.001177, allocations: 114.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2172/0.2172, allocations: 46.09 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 71.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4011, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.06847/0.4696, allocations: 65.12 MB / 0.5953 GB, free: 436 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03335/0.503, allocations: 27.05 MB / 0.6217 GB, free: 5.281 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.5046, allocations: 19.88 kB / 0.6217 GB, free: 5.262 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.5062, allocations: 0.5589 MB / 0.6222 GB, free: 4.699 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0184/0.5246, allocations: 5.236 MB / 0.6273 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01041/0.5351, allocations: 3.654 MB / 0.6309 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003338/0.5384, allocations: 2.238 MB / 0.6331 GB, free: 9.559 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/0.5398, allocations: 0.6618 MB / 0.6337 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01162/0.5515, allocations: 4.355 MB / 0.638 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.5533, allocations: 0.6808 MB / 0.6387 GB, free: 3.785 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004798/0.5538, allocations: 84 kB / 0.6387 GB, free: 3.703 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01636/0.5701, allocations: 6.946 MB / 0.6455 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005937/0.5708, allocations: 239.2 kB / 0.6458 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001375/0.5722, allocations: 0.525 MB / 0.6463 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.588, allocations: 5.02 MB / 0.6512 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.5881, allocations: 0 / 0.6512 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.855e-06/0.5881, allocations: 0 / 0.6512 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.309e-05/0.5882, allocations: 0 / 0.6512 GB, free: 6.957 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.006186/0.5944, allocations: 1.801 MB / 0.6529 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.5945, allocations: 8.031 kB / 0.6529 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.5997, allocations: 0.6202 MB / 0.6535 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.6011, allocations: 0.6377 MB / 0.6542 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.571e-05/0.6012, allocations: 70.38 kB / 0.6542 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.6013, allocations: 71.94 kB / 0.6543 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003592/0.6049, allocations: 1.34 MB / 0.6556 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.605, allocations: 7.875 kB / 0.6556 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.6051, allocations: 36 kB / 0.6557 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.6051, allocations: 20 kB / 0.6557 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003397/0.6085, allocations: 1.193 MB / 0.6568 GB, free: 0.9727 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.007835/0.6164, allocations: 5.708 MB / 0.6624 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003264/0.6196, allocations: 0.9561 MB / 0.6633 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000761/0.6204, allocations: 337.5 kB / 0.6637 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07307/0.6935, allocations: 36.12 MB / 0.6989 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.109e-05/0.6936, allocations: 42.5 kB / 0.699 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006797/0.6943, allocations: 71.22 kB / 0.6991 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of pre-optimization done (n=58): time 7.534e-06/0.6943, allocations: 3.984 kB / 0.6991 GB, free: 0.7422 MB / 0.545 GB Notification: Performance of matching and sorting (n=58): time 0.006613/0.7009, allocations: 1.784 MB / 0.7008 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/0.7011, allocations: 187.9 kB / 0.701 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.7021, allocations: 0.6802 MB / 0.7016 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/0.7022, allocations: 37.7 kB / 0.7017 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003644/0.7025, allocations: 399.9 kB / 0.7021 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.7028, allocations: 201.1 kB / 0.7023 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.7031, allocations: 162.5 kB / 0.7024 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001958/0.7033, allocations: 394.7 kB / 0.7028 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007724/0.7041, allocations: 268.7 kB / 0.703 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.7051, allocations: 0.514 MB / 0.7035 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/0.7069, allocations: 0.7894 MB / 0.7043 GB, free: 11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/0.7069, allocations: 4 kB / 0.7043 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002466/0.7094, allocations: 0.9076 MB / 0.7052 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.7094, allocations: 12 kB / 0.7052 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.7094, allocations: 4 kB / 0.7052 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005738/0.7152, allocations: 0.6694 MB / 0.7059 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/0.7159, allocations: 187.8 kB / 0.706 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.717, allocations: 1.163 MB / 0.7072 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/0.7178, allocations: 52.08 kB / 0.7072 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.718, allocations: 43.98 kB / 0.7073 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001076/0.7191, allocations: 425.8 kB / 0.7077 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009204/0.72, allocations: 0.5138 MB / 0.7082 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001601/0.7216, allocations: 0.7574 MB / 0.7089 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.083e-05/0.7216, allocations: 8 kB / 0.7089 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.002184/0.7238, allocations: 0.8597 MB / 0.7098 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.7239, allocations: 8 kB / 0.7098 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.7239, allocations: 8 kB / 0.7098 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.7239, allocations: 12 kB / 0.7098 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008744/0.7248, allocations: 215.7 kB / 0.71 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.115e-05/0.7248, allocations: 20.27 kB / 0.71 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007678/0.7256, allocations: 51.91 kB / 0.7101 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.902e-05/0.7257, allocations: 47.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.0003526/0.7261, allocations: 231.9 kB / 0.7103 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.7264, allocations: 86.97 kB / 0.7104 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005049/0.7314, allocations: 3.632 MB / 0.714 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.7315, allocations: 0 / 0.714 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.7315, allocations: 11.98 kB / 0.714 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005434/0.732, allocations: 294.7 kB / 0.7143 GB, free: 472 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002496/0.7323, allocations: 63.22 kB / 0.7143 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000764/0.7331, allocations: 67.91 kB / 0.7144 GB, free: 340 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.7332, allocations: 63.86 kB / 0.7144 GB, free: 276 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.000888/0.7341, allocations: 320.2 kB / 0.7148 GB, free: 15.97 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