Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 199.9 kB / 16.76 MB, free: 5.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.5 MB / 244 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007836/0.0007835, allocations: 104.9 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3245/0.3245, allocations: 44.81 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.0002749, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3037, allocations: 62.95 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.02465/0.3284, allocations: 35.36 MB / 0.551 GB, free: 12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01974/0.3482, allocations: 20.21 MB / 0.5708 GB, free: 13.61 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006002/0.3488, allocations: 18.31 kB / 0.5708 GB, free: 13.6 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000801/0.3496, allocations: 229.1 kB / 0.571 GB, free: 13.48 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01267/0.3623, allocations: 3.618 MB / 0.5745 GB, free: 10.97 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005738/0.3681, allocations: 1.583 MB / 0.5761 GB, free: 9.816 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.3697, allocations: 1.31 MB / 0.5774 GB, free: 9.039 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000454/0.3702, allocations: 290.8 kB / 0.5776 GB, free: 8.855 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01447/0.3847, allocations: 9.206 MB / 0.5866 GB, free: 1.59 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000867/0.3856, allocations: 342.6 kB / 0.587 GB, free: 1.254 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.3857, allocations: 20 kB / 0.587 GB, free: 1.234 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.3993, allocations: 6.98 MB / 0.5938 GB, free: 10.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.3996, allocations: 99.58 kB / 0.5939 GB, free: 10.15 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004762/0.4001, allocations: 256.7 kB / 0.5941 GB, free: 9.891 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0057/0.4058, allocations: 3.083 MB / 0.5971 GB, free: 6.801 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4058, allocations: 0 / 0.5971 GB, free: 6.801 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.4058, allocations: 3.984 kB / 0.5972 GB, free: 6.797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.4059, allocations: 0 / 0.5972 GB, free: 6.797 MB / 410.7 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.00327/0.4091, allocations: 1.224 MB / 0.5983 GB, free: 5.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4092, allocations: 11.97 kB / 0.5984 GB, free: 5.508 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.4111, allocations: 244.2 kB / 0.5986 GB, free: 5.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006315/0.4117, allocations: 387.1 kB / 0.599 GB, free: 4.848 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.233e-05/0.4118, allocations: 37.38 kB / 0.599 GB, free: 4.812 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.4118, allocations: 40.12 kB / 0.599 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.4135, allocations: 0.6925 MB / 0.5997 GB, free: 4.023 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4135, allocations: 0 / 0.5997 GB, free: 4.023 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.4136, allocations: 16 kB / 0.5997 GB, free: 4.008 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.4136, allocations: 12 kB / 0.5997 GB, free: 3.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.4153, allocations: 0.5917 MB / 0.6003 GB, free: 3.402 MB / 410.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.004004/0.4193, allocations: 3.309 MB / 0.6035 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.4207, allocations: 464.1 kB / 0.604 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/0.4211, allocations: 184.8 kB / 0.6042 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1095/0.5306, allocations: 62.6 MB / 0.6653 GB, free: 8.703 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.129e-05/0.5307, allocations: 38.56 kB / 0.6653 GB, free: 8.656 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 2.705e-06/0.5307, allocations: 3.938 kB / 0.6653 GB, free: 8.652 MB / 490.7 MB Notification: Performance of matching and sorting (n=27): time 0.003299/0.5341, allocations: 0.9398 MB / 0.6663 GB, free: 7.684 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.5341, allocations: 102.8 kB / 0.6664 GB, free: 7.559 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005563/0.5347, allocations: 393.8 kB / 0.6667 GB, free: 7.164 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.5348, allocations: 33.7 kB / 0.6668 GB, free: 7.125 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.535, allocations: 251.7 kB / 0.667 GB, free: 6.875 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.561e-05/0.5351, allocations: 98.64 kB / 0.6671 GB, free: 6.777 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.5351, allocations: 4 kB / 0.6671 GB, free: 6.773 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.5353, allocations: 358.7 kB / 0.6674 GB, free: 6.414 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.5357, allocations: 140.8 kB / 0.6676 GB, free: 6.277 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.5362, allocations: 321.6 kB / 0.6679 GB, free: 5.883 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000869/0.5371, allocations: 472.3 kB / 0.6683 GB, free: 5.352 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5371, allocations: 7.875 kB / 0.6683 GB, free: 5.344 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001211/0.5383, allocations: 0.5247 MB / 0.6689 GB, free: 4.809 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001832/0.5385, allocations: 244.5 kB / 0.6691 GB, free: 4.496 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5385, allocations: 4 kB / 0.6691 GB, free: 4.492 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003052/0.5416, allocations: 380.3 kB / 0.6695 GB, free: 4.117 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.542, allocations: 99.81 kB / 0.6695 GB, free: 4.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000555/0.5425, allocations: 0.6069 MB / 0.6701 GB, free: 3.387 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/0.543, allocations: 87.34 kB / 0.6702 GB, free: 3.301 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.5431, allocations: 20 kB / 0.6702 GB, free: 3.281 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/0.5431, allocations: 4 kB / 0.6702 GB, free: 3.277 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001002/0.5441, allocations: 443.1 kB / 0.6707 GB, free: 2.844 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.5441, allocations: 8 kB / 0.6707 GB, free: 2.836 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/0.5441, allocations: 4 kB / 0.6707 GB, free: 2.832 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/0.5446, allocations: 124.4 kB / 0.6708 GB, free: 2.711 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.5446, allocations: 11.98 kB / 0.6708 GB, free: 2.699 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.545, allocations: 63.77 kB / 0.6709 GB, free: 2.637 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.5451, allocations: 27.98 kB / 0.6709 GB, free: 2.609 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000291/0.5454, allocations: 252.9 kB / 0.6711 GB, free: 2.352 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.5455, allocations: 43.53 kB / 0.6712 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/0.5481, allocations: 1.918 MB / 0.6731 GB, free: 388 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.5481, allocations: 0 / 0.6731 GB, free: 388 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5481, allocations: 3.984 kB / 0.6731 GB, free: 384 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.5485, allocations: 255.4 kB / 0.6733 GB, free: 108 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.18e-05/0.5486, allocations: 8 kB / 0.6733 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/0.549, allocations: 51.94 kB / 0.6734 GB, free: 48 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5491, allocations: 31.95 kB / 0.6734 GB, free: 16 kB / 490.7 MB [/var/lib/jenkins1/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.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 = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "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 = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "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 = 100000.0 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:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000947/0.5501, allocations: 0.5645 MB / 0.6739 GB, free: 15.39 MB / 0.4949 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.