Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 114.5 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.001373/0.001374, allocations: 208 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.374/1.374, 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.2121/0.2121, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 79.81 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3241, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.03778/0.3619, allocations: 37.9 MB / 0.5687 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02651/0.3884, allocations: 21.74 MB / 0.5899 GB, free: 5.863 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008287/0.3893, allocations: 11.94 kB / 0.5899 GB, free: 5.852 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.3906, allocations: 294.1 kB / 0.5902 GB, free: 5.562 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01454/0.4052, allocations: 4.646 MB / 0.5947 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00561/0.4108, allocations: 2.018 MB / 0.5967 GB, free: 14.89 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001847/0.4127, allocations: 1.15 MB / 0.5978 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006672/0.4134, allocations: 345.3 kB / 0.5982 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01229/0.4257, allocations: 5.723 MB / 0.6037 GB, free: 7.598 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009421/0.4267, allocations: 354.6 kB / 0.6041 GB, free: 7.25 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.4269, allocations: 40 kB / 0.6041 GB, free: 7.211 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01624/0.4431, allocations: 7.347 MB / 0.6113 GB, free: 15.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002608/0.4434, allocations: 123.6 kB / 0.6114 GB, free: 15.74 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.4439, allocations: 266.8 kB / 0.6117 GB, free: 15.48 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4547, allocations: 4.561 MB / 0.6161 GB, free: 10.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4548, allocations: 4 kB / 0.6161 GB, free: 10.9 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4548, allocations: 0 / 0.6161 GB, free: 10.9 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.901e-05/0.4548, allocations: 0 / 0.6161 GB, free: 10.9 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.003737/0.4586, allocations: 1.314 MB / 0.6174 GB, free: 9.535 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4586, allocations: 16.03 kB / 0.6174 GB, free: 9.52 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/0.4606, allocations: 228.2 kB / 0.6176 GB, free: 9.297 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007218/0.4613, allocations: 415.1 kB / 0.618 GB, free: 8.855 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.4613, allocations: 33.38 kB / 0.6181 GB, free: 8.824 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.4614, allocations: 40.12 kB / 0.6181 GB, free: 8.785 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.4631, allocations: 0.6691 MB / 0.6188 GB, free: 8.062 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4632, allocations: 3.938 kB / 0.6188 GB, free: 8.059 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.4632, allocations: 20 kB / 0.6188 GB, free: 8.039 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.4632, allocations: 8 kB / 0.6188 GB, free: 8.031 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.4649, allocations: 0.5644 MB / 0.6193 GB, free: 7.465 MB / 478.1 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.004244/0.4692, allocations: 3.285 MB / 0.6225 GB, free: 3.926 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.4706, allocations: 434.3 kB / 0.623 GB, free: 3.492 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003807/0.471, allocations: 180.8 kB / 0.6231 GB, free: 3.312 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1177/0.5887, allocations: 62.31 MB / 0.684 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.321e-05/0.5888, allocations: 38.55 kB / 0.684 GB, free: 13.07 MB / 0.545 GB Notification: Performance of pre-optimization done (n=27): time 4.469e-06/0.5888, allocations: 3.984 kB / 0.684 GB, free: 13.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.003166/0.592, allocations: 0.8891 MB / 0.6849 GB, free: 12.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.5921, allocations: 110.8 kB / 0.685 GB, free: 12.01 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.5926, allocations: 397.8 kB / 0.6854 GB, free: 11.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.5926, allocations: 29.7 kB / 0.6854 GB, free: 11.57 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.5928, allocations: 259.5 kB / 0.6856 GB, free: 11.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.5929, allocations: 94.75 kB / 0.6857 GB, free: 11.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.5931, allocations: 90.02 kB / 0.6858 GB, free: 11.13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5932, allocations: 358.7 kB / 0.6862 GB, free: 10.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/0.5936, allocations: 142.5 kB / 0.6863 GB, free: 10.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.5941, allocations: 313.7 kB / 0.6866 GB, free: 10.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008061/0.5949, allocations: 446.6 kB / 0.687 GB, free: 9.742 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.5949, allocations: 4 kB / 0.687 GB, free: 9.738 MB / 0.545 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001113/0.596, allocations: 0.5213 MB / 0.6875 GB, free: 9.207 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5961, allocations: 8 kB / 0.6875 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.5961, allocations: 4 kB / 0.6876 GB, free: 9.195 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0029/0.599, allocations: 360.4 kB / 0.6879 GB, free: 8.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.5994, allocations: 99.81 kB / 0.688 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005032/0.5999, allocations: 0.6069 MB / 0.6886 GB, free: 8.109 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.6003, allocations: 71.42 kB / 0.6887 GB, free: 8.039 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.6003, allocations: 23.98 kB / 0.6887 GB, free: 8.016 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004623/0.6008, allocations: 260.8 kB / 0.6889 GB, free: 7.758 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004302/0.6012, allocations: 297.8 kB / 0.6892 GB, free: 7.391 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008037/0.602, allocations: 444.6 kB / 0.6896 GB, free: 6.887 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.6021, allocations: 0 / 0.6896 GB, free: 6.887 MB / 0.545 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.000986/0.6031, allocations: 492.4 kB / 0.6901 GB, free: 6.398 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.6031, allocations: 8 kB / 0.6901 GB, free: 6.391 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.6031, allocations: 8.656 kB / 0.6901 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.153e-06/0.6031, allocations: 4 kB / 0.6901 GB, free: 6.379 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.6035, allocations: 123.8 kB / 0.6902 GB, free: 6.258 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.6035, allocations: 11.94 kB / 0.6903 GB, free: 6.246 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.6039, allocations: 39.67 kB / 0.6903 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.6039, allocations: 27.98 kB / 0.6903 GB, free: 6.18 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.6041, allocations: 212 kB / 0.6905 GB, free: 5.965 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.6042, allocations: 47.53 kB / 0.6906 GB, free: 5.918 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.6066, allocations: 1.897 MB / 0.6924 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.6066, allocations: 0 / 0.6924 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.6066, allocations: 0 / 0.6924 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/0.6069, allocations: 195.7 kB / 0.6926 GB, free: 3.793 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/0.607, allocations: 31.72 kB / 0.6926 GB, free: 3.762 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.6073, allocations: 31.95 kB / 0.6927 GB, free: 3.73 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.784e-05/0.6074, allocations: 31.95 kB / 0.6927 GB, free: 3.699 MB / 0.545 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 / $cse1, simpleGenericOrifice.state_b.d / $cse1, false, 1.0) 4/4 (1): simpleGenericOrifice.state_a.d = $cse2.rho 5/5 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 6/21 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 7/22 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, massFlowRate1.T, 0) Variables: 1: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: 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] 5: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.R_s:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 16: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.R_s:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 24: massFlowRate1.ports[1].h_outflow:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] 25: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 26: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 31: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 35: simpleGenericOrifice.state_a.d:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 36: simpleGenericOrifice.dp_fg:VARIABLE(start = simpleGenericOrifice.dp_start unit = "Pa" ) "Pressure loss due to friction and gravity" type: Real 37: 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.000947/0.6084, allocations: 0.5268 MB / 0.6932 GB, free: 3.117 MB / 0.545 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestPressure could not be translated