Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004247/0.004246, allocations: 364.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.101/4.101, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003625/0.003624, allocations: 222.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.7027/0.7027, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004602/0.0004604, allocations: 12.97 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09397, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.0429/0.1369, allocations: 34.98 MB / 0.7143 GB, free: 6.59 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.339/0.4759, allocations: 20.08 MB / 0.7339 GB, free: 14.08 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007537/0.4767, allocations: 21.47 kB / 0.7339 GB, free: 14.08 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009311/0.4777, allocations: 218.7 kB / 0.7341 GB, free: 14.07 MB / 346.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01543/0.4931, allocations: 3.603 MB / 0.7376 GB, free: 13.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006862/0.5, allocations: 1.54 MB / 0.7391 GB, free: 13.49 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.5021, allocations: 1.294 MB / 0.7404 GB, free: 13.26 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.5028, allocations: 275.3 kB / 0.7406 GB, free: 13.23 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02338/0.5262, allocations: 9.154 MB / 0.7496 GB, free: 12.89 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.5274, allocations: 332.5 kB / 0.7499 GB, free: 12.81 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.5276, allocations: 19.47 kB / 0.7499 GB, free: 12.81 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01915/0.5467, allocations: 6.923 MB / 0.7567 GB, free: 9.523 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002686/0.547, allocations: 87.09 kB / 0.7568 GB, free: 9.441 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.5474, allocations: 121.5 kB / 0.7569 GB, free: 9.316 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007235/0.5546, allocations: 3.051 MB / 0.7599 GB, free: 6.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5547, allocations: 4 kB / 0.7599 GB, free: 6.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5547, allocations: 0 / 0.7599 GB, free: 6.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.5547, allocations: 0 / 0.7599 GB, free: 6.457 MB / 346.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.003979/0.5587, allocations: 1.218 MB / 0.7611 GB, free: 5.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.5587, allocations: 8.562 kB / 0.7611 GB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.5611, allocations: 231.2 kB / 0.7613 GB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007138/0.5618, allocations: 405.8 kB / 0.7617 GB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.802e-05/0.5619, allocations: 41 kB / 0.7617 GB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.629e-05/0.562, allocations: 39.95 kB / 0.7617 GB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.5642, allocations: 0.6847 MB / 0.7624 GB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.5642, allocations: 7.938 kB / 0.7624 GB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.5643, allocations: 16 kB / 0.7624 GB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.5643, allocations: 12 kB / 0.7625 GB, free: 3.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.5667, allocations: 0.5917 MB / 0.763 GB, free: 3.117 MB / 346.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.004265/0.5709, allocations: 3.195 MB / 0.7661 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002092/0.5731, allocations: 429.8 kB / 0.7666 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006223/0.5737, allocations: 171.4 kB / 0.7667 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3312/0.9049, allocations: 81.77 MB / 0.8466 GB, free: 5.246 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.905, allocations: 42.52 kB / 0.8466 GB, free: 5.195 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 3.596e-06/0.905, allocations: 0 / 0.8466 GB, free: 5.195 MB / 442.7 MB Notification: Performance of matching and sorting (n=27): time 0.004465/0.9095, allocations: 0.8462 MB / 0.8474 GB, free: 4.324 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.9096, allocations: 110.8 kB / 0.8476 GB, free: 4.191 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005905/0.9102, allocations: 345.4 kB / 0.8479 GB, free: 3.848 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.9103, allocations: 29.7 kB / 0.8479 GB, free: 3.812 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.9106, allocations: 265.8 kB / 0.8482 GB, free: 3.551 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.9108, allocations: 97.03 kB / 0.8483 GB, free: 3.457 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.9108, allocations: 8 kB / 0.8483 GB, free: 3.449 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.911, allocations: 346.8 kB / 0.8486 GB, free: 3.102 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.9117, allocations: 140.8 kB / 0.8487 GB, free: 2.965 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007741/0.9125, allocations: 330 kB / 0.849 GB, free: 2.551 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.9132, allocations: 176.6 kB / 0.8492 GB, free: 2.383 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.9132, allocations: 4 kB / 0.8492 GB, free: 2.379 MB / 442.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00188/0.9151, allocations: 0.5231 MB / 0.8497 GB, free: 1.848 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002451/0.9154, allocations: 276.9 kB / 0.85 GB, free: 1.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.9154, allocations: 4 kB / 0.85 GB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003883/0.9193, allocations: 234.6 kB / 0.8502 GB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007592/0.9201, allocations: 111.8 kB / 0.8503 GB, free: 1.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007618/0.9208, allocations: 0.5925 MB / 0.8509 GB, free: 0.5273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006263/0.9215, allocations: 63.62 kB / 0.851 GB, free: 476 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-05/0.9216, allocations: 31.95 kB / 0.851 GB, free: 444 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.9216, allocations: 4 kB / 0.851 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001576/0.9232, allocations: 443.6 kB / 0.8514 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.9232, allocations: 14.66 kB / 0.8514 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.9232, allocations: 12 kB / 0.8514 GB, free: 15.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007809/0.924, allocations: 119.8 kB / 0.8516 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.9241, allocations: 11.94 kB / 0.8516 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.9246, allocations: 59.97 kB / 0.8516 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.9247, allocations: 24 kB / 0.8517 GB, free: 15.76 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (51): * Single equations (assignments): 50 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004007/0.9251, allocations: 249.1 kB / 0.8519 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.9252, allocations: 43.42 kB / 0.8519 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003874/0.9291, allocations: 1.881 MB / 0.8538 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.9292, allocations: 3.984 kB / 0.8538 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.974e-06/0.9292, allocations: 0 / 0.8538 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004081/0.9296, allocations: 239.5 kB / 0.854 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.9297, allocations: 8 kB / 0.854 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005679/0.9303, allocations: 43.95 kB / 0.854 GB, free: 13.28 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.9304, allocations: 27.95 kB / 0.8541 GB, free: 13.25 MB / 458.7 MB [/var/lib/jenkins/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.dp_fg = 101325.0 - massFlowRate1.ports[1].p 2/2 (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) 3/3 (1): simpleGenericOrifice.state_a.d = $cse2.rho 4/4 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 5/20 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 6/21 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, 323.15, 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 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9662:5-9663:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001195/0.9316, allocations: 0.5228 MB / 0.8546 GB, free: 12.69 MB / 458.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.