Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003999/0.004004, 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.079/4.079, allocations: 388.9 MB / 405.6 MB, free: 10.24 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.003511/0.003511, allocations: 228.3 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.5555/0.5555, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000733/0.0007332, allocations: 8 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1278, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.06119/0.1891, allocations: 39.47 MB / 0.7186 GB, free: 2.078 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.3464/0.5355, allocations: 14.58 MB / 0.7329 GB, free: 14.17 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008929/0.5365, allocations: 19.06 kB / 0.7329 GB, free: 14.17 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.5376, allocations: 229.6 kB / 0.7331 GB, free: 14.17 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.01662/0.5543, allocations: 3.64 MB / 0.7367 GB, free: 13.8 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007209/0.5615, allocations: 1.66 MB / 0.7383 GB, free: 13.5 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002382/0.5639, allocations: 1.322 MB / 0.7396 GB, free: 13.26 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008155/0.5648, allocations: 280.3 kB / 0.7399 GB, free: 13.23 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.5663, allocations: 481.3 kB / 0.7403 GB, free: 13.12 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008517/0.5671, allocations: 353.2 kB / 0.7407 GB, free: 13.05 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.5673, allocations: 25.81 kB / 0.7407 GB, free: 13.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02101/0.5883, allocations: 6.984 MB / 0.7475 GB, free: 12.16 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.5886, allocations: 96.28 kB / 0.7476 GB, free: 12.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003173/0.589, allocations: 128.2 kB / 0.7477 GB, free: 12.07 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008356/0.5973, allocations: 3.118 MB / 0.7508 GB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.5974, allocations: 1.406 kB / 0.7508 GB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.5974, allocations: 0 / 0.7508 GB, free: 10.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.5974, allocations: 4 kB / 0.7508 GB, free: 10.7 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.004913/0.6024, allocations: 1.257 MB / 0.752 GB, free: 9.855 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.6024, allocations: 13.62 kB / 0.752 GB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002925/0.6054, allocations: 283.5 kB / 0.7523 GB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.6063, allocations: 416.8 kB / 0.7527 GB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/0.6064, allocations: 34.47 kB / 0.7527 GB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.6065, allocations: 41.03 kB / 0.7527 GB, free: 9.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.6089, allocations: 0.6952 MB / 0.7534 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.6089, allocations: 9.266 kB / 0.7534 GB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.319e-05/0.609, allocations: 16.69 kB / 0.7534 GB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.6091, allocations: 13.08 kB / 0.7535 GB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.6116, allocations: 0.6122 MB / 0.7541 GB, free: 8.938 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.004834/0.6165, allocations: 2.865 MB / 0.7569 GB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.6188, allocations: 468.6 kB / 0.7573 GB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/0.6195, allocations: 178.6 kB / 0.7575 GB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.371/0.9905, allocations: 82.74 MB / 0.8383 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/0.9906, allocations: 34.56 kB / 0.8383 GB, free: 13.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=30): time 3.877e-06/0.9907, allocations: 0 / 0.8383 GB, free: 13.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=30): time 0.004964/0.9956, allocations: 0.9262 MB / 0.8392 GB, free: 12.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.9957, allocations: 114.8 kB / 0.8393 GB, free: 12.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000596/0.9964, allocations: 349.5 kB / 0.8397 GB, free: 11.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.9964, allocations: 29.7 kB / 0.8397 GB, free: 11.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.9967, allocations: 269.8 kB / 0.8399 GB, free: 11.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.9969, allocations: 98.5 kB / 0.84 GB, free: 11.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.9969, allocations: 12 kB / 0.84 GB, free: 11.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.9971, allocations: 346.8 kB / 0.8404 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.9977, allocations: 136.8 kB / 0.8405 GB, free: 10.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.9985, allocations: 295.1 kB / 0.8408 GB, free: 10.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007098/0.9992, allocations: 163.9 kB / 0.8409 GB, free: 10.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.9992, allocations: 0 / 0.8409 GB, free: 10.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001885/1.001, allocations: 0.5003 MB / 0.8414 GB, free: 9.945 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/1.001, allocations: 217.8 kB / 0.8416 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/1.001, allocations: 8 kB / 0.8416 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004088/1.005, allocations: 244 kB / 0.8419 GB, free: 9.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000742/1.006, allocations: 95.89 kB / 0.842 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007944/1.007, allocations: 0.5953 MB / 0.8426 GB, free: 8.707 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/1.008, allocations: 70.45 kB / 0.8426 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.143e-05/1.008, allocations: 20 kB / 0.8426 GB, free: 8.621 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/1.008, allocations: 4 kB / 0.8426 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/1.01, allocations: 407.3 kB / 0.843 GB, free: 8.219 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/1.01, allocations: 4.75 kB / 0.843 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/1.01, allocations: 12 kB / 0.843 GB, free: 8.203 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008138/1.01, allocations: 119.8 kB / 0.8432 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/1.011, allocations: 15.89 kB / 0.8432 GB, free: 8.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005891/1.011, allocations: 55.66 kB / 0.8432 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-05/1.011, allocations: 23.94 kB / 0.8433 GB, free: 7.992 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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.0003955/1.012, allocations: 245.8 kB / 0.8435 GB, free: 7.742 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/1.012, allocations: 39.53 kB / 0.8435 GB, free: 7.703 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00416/1.016, allocations: 2 MB / 0.8455 GB, free: 5.715 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/1.016, allocations: 0 / 0.8455 GB, free: 5.715 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/1.016, allocations: 2.625 kB / 0.8455 GB, free: 5.715 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004852/1.016, allocations: 247.5 kB / 0.8457 GB, free: 5.453 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/1.017, allocations: 4 kB / 0.8457 GB, free: 5.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/1.017, allocations: 47.86 kB / 0.8458 GB, free: 5.402 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/1.017, allocations: 32.28 kB / 0.8458 GB, free: 5.371 MB / 442.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.F_p = simpleGenericOrifice.A_mean * (101325.0 - 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, 323.15, 0) Variables: 1: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 7: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 13: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 14: 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] 15: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.R:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 23: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 25: 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] 26: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 27: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.s: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/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.001244/1.019, allocations: 0.5419 MB / 0.8463 GB, free: 4.801 MB / 442.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.