Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 178.2 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.4 MB / 223.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008297/0.0008297, allocations: 90.83 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3384/0.3384, allocations: 43.56 MB / 363.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003716, allocations: 15.98 kB / 432.6 MB, free: 5.598 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1092, allocations: 58.85 MB / 491.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.2251/0.3344, allocations: 35.29 MB / 0.5144 GB, free: 25.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.3528, allocations: 20.2 MB / 0.5342 GB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007146/0.3536, allocations: 14.47 kB / 0.5342 GB, free: 10.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000816/0.3544, allocations: 227.4 kB / 0.5344 GB, free: 10.76 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01037/0.3648, allocations: 3.606 MB / 0.5379 GB, free: 9.156 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004672/0.3695, allocations: 1.577 MB / 0.5395 GB, free: 8.328 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.3707, allocations: 1.307 MB / 0.5407 GB, free: 7.789 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003985/0.3712, allocations: 288.9 kB / 0.541 GB, free: 7.684 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01284/0.384, allocations: 9.193 MB / 0.55 GB, free: 6.414 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008804/0.3849, allocations: 332.2 kB / 0.5503 GB, free: 6.285 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.494e-05/0.385, allocations: 20.78 kB / 0.5503 GB, free: 6.285 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01413/0.3992, allocations: 6.975 MB / 0.5571 GB, free: 4.668 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.3994, allocations: 91.98 kB / 0.5572 GB, free: 4.625 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.3998, allocations: 263 kB / 0.5575 GB, free: 4.477 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005927/0.4058, allocations: 3.072 MB / 0.5605 GB, free: 2.758 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.4058, allocations: 0 / 0.5605 GB, free: 2.758 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4058, allocations: 0 / 0.5605 GB, free: 2.758 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.4058, allocations: 0 / 0.5605 GB, free: 2.758 MB / 378.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.003297/0.4091, allocations: 1.219 MB / 0.5617 GB, free: 1.867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.4092, allocations: 6.344 kB / 0.5617 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/0.4108, allocations: 238.3 kB / 0.5619 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.4114, allocations: 398.4 kB / 0.5623 GB, free: 1.406 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.496e-05/0.4114, allocations: 34.97 kB / 0.5623 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/0.4115, allocations: 38 kB / 0.5623 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.4131, allocations: 0.6954 MB / 0.563 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.4131, allocations: 1.5 kB / 0.563 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.024e-05/0.4131, allocations: 21.41 kB / 0.563 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.4132, allocations: 10.38 kB / 0.563 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.4146, allocations: 0.5905 MB / 0.5636 GB, free: 360 kB / 378.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.003945/0.4186, allocations: 3.305 MB / 0.5669 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.42, allocations: 474.3 kB / 0.5673 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.4204, allocations: 184.7 kB / 0.5675 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1035/0.5239, allocations: 56.33 MB / 0.6225 GB, free: 13.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.524, allocations: 34.56 kB / 0.6225 GB, free: 13.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=27): time 2.815e-06/0.524, allocations: 3.938 kB / 0.6225 GB, free: 13.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=27): time 0.003324/0.5274, allocations: 0.9382 MB / 0.6234 GB, free: 12.17 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.5275, allocations: 106.8 kB / 0.6236 GB, free: 12.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005401/0.528, allocations: 389.9 kB / 0.6239 GB, free: 11.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.5281, allocations: 29.7 kB / 0.624 GB, free: 11.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.5283, allocations: 255.7 kB / 0.6242 GB, free: 11.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.5284, allocations: 98.59 kB / 0.6243 GB, free: 11.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/0.5284, allocations: 8 kB / 0.6243 GB, free: 11.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.5286, allocations: 350.7 kB / 0.6246 GB, free: 10.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.529, allocations: 156.7 kB / 0.6248 GB, free: 10.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/0.5295, allocations: 309.7 kB / 0.6251 GB, free: 10.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009406/0.5305, allocations: 471.3 kB / 0.6255 GB, free: 9.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.5305, allocations: 0 / 0.6255 GB, free: 9.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001259/0.5318, allocations: 0.5291 MB / 0.626 GB, free: 9.301 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002067/0.532, allocations: 251.6 kB / 0.6263 GB, free: 8.984 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.532, allocations: 4 kB / 0.6263 GB, free: 8.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003055/0.5351, allocations: 380.3 kB / 0.6266 GB, free: 8.605 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.5355, allocations: 95.88 kB / 0.6267 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005719/0.536, allocations: 0.6069 MB / 0.6273 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.5366, allocations: 79.47 kB / 0.6274 GB, free: 7.801 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.65e-05/0.5366, allocations: 20 kB / 0.6274 GB, free: 7.781 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.5366, allocations: 4 kB / 0.6274 GB, free: 7.777 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001026/0.5377, allocations: 448.3 kB / 0.6279 GB, free: 7.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5377, allocations: 4 kB / 0.6279 GB, free: 7.336 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.5377, allocations: 8.656 kB / 0.6279 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/0.5382, allocations: 119.9 kB / 0.628 GB, free: 7.211 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.36e-05/0.5382, allocations: 15.86 kB / 0.628 GB, free: 7.195 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.5387, allocations: 55.67 kB / 0.6281 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.5387, allocations: 31.98 kB / 0.6281 GB, free: 7.109 MB / 458.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.0002982/0.539, allocations: 248.9 kB / 0.6283 GB, free: 6.855 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5391, allocations: 47.44 kB / 0.6284 GB, free: 6.809 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/0.5419, allocations: 1.936 MB / 0.6303 GB, free: 4.863 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.5419, allocations: 7.984 kB / 0.6303 GB, free: 4.855 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5419, allocations: 0 / 0.6303 GB, free: 4.855 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/0.5423, allocations: 247.5 kB / 0.6305 GB, free: 4.594 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.5425, allocations: 8 kB / 0.6305 GB, free: 4.586 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.5429, allocations: 59.81 kB / 0.6306 GB, free: 4.527 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.543, allocations: 31.95 kB / 0.6306 GB, free: 4.496 MB / 458.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: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: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.0009984/0.544, allocations: 0.5531 MB / 0.6311 GB, free: 3.879 MB / 458.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.