Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001589/0.001589, allocations: 178.9 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.426/1.426, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.0008422/0.0008423, allocations: 89.05 kB / 271.9 MB, free: 8.258 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.3591/0.3591, allocations: 43.55 MB / 363.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003632, allocations: 12 kB / 432.6 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1193, allocations: 58.84 MB / 491.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.2609/0.3803, allocations: 61.01 MB / 0.5395 GB, free: 6.707 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.4056, allocations: 25.26 MB / 0.5642 GB, free: 4.59 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/0.4069, allocations: 29.03 kB / 0.5642 GB, free: 4.574 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.4084, allocations: 451.5 kB / 0.5647 GB, free: 4.332 MB / 394.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. [/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.01384/0.4223, allocations: 4.173 MB / 0.5687 GB, free: 2.395 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009628/0.4319, allocations: 2.962 MB / 0.5716 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004078/0.436, allocations: 2.497 MB / 0.5741 GB, free: 15.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001088/0.4371, allocations: 0.5627 MB / 0.5746 GB, free: 15.14 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01298/0.4501, allocations: 6.578 MB / 0.581 GB, free: 13.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.4519, allocations: 0.6566 MB / 0.5817 GB, free: 13.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002099/0.4521, allocations: 43 kB / 0.5817 GB, free: 13.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01481/0.4669, allocations: 6.609 MB / 0.5882 GB, free: 7.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003739/0.4673, allocations: 199.2 kB / 0.5884 GB, free: 7.055 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009239/0.4683, allocations: 495.7 kB / 0.5888 GB, free: 6.562 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006554/0.4748, allocations: 3.442 MB / 0.5922 GB, free: 3.113 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4748, allocations: 0 / 0.5922 GB, free: 3.113 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4749, allocations: 0 / 0.5922 GB, free: 3.113 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.4749, allocations: 0 / 0.5922 GB, free: 3.113 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.003856/0.4787, allocations: 1.613 MB / 0.5938 GB, free: 1.453 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4788, allocations: 8.031 kB / 0.5938 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004284/0.4831, allocations: 0.6203 MB / 0.5944 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009241/0.484, allocations: 0.6064 MB / 0.595 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.352e-05/0.4841, allocations: 66.31 kB / 0.5951 GB, free: 112 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.4842, allocations: 79.94 kB / 0.5951 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003258/0.4875, allocations: 1.386 MB / 0.5965 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.4875, allocations: 4 kB / 0.5965 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-05/0.4876, allocations: 36 kB / 0.5965 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.4877, allocations: 20 kB / 0.5965 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003454/0.4911, allocations: 1.24 MB / 0.5978 GB, free: 13.26 MB / 426.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.008587/0.4997, allocations: 5.754 MB / 0.6034 GB, free: 7.152 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003139/0.5029, allocations: 1.01 MB / 0.6044 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007691/0.5037, allocations: 361.5 kB / 0.6047 GB, free: 5.766 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05864/0.5623, allocations: 32.6 MB / 0.6365 GB, free: 1.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/0.5624, allocations: 54.53 kB / 0.6366 GB, free: 1.258 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000689/0.5631, allocations: 103 kB / 0.6367 GB, free: 1.156 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 4.369e-06/0.5631, allocations: 0 / 0.6367 GB, free: 1.156 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.00609/0.5692, allocations: 1.88 MB / 0.6385 GB, free: 15.23 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/0.5693, allocations: 187.9 kB / 0.6387 GB, free: 15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009244/0.5703, allocations: 0.6685 MB / 0.6394 GB, free: 14.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.5704, allocations: 37.7 kB / 0.6394 GB, free: 14.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.5706, allocations: 395.8 kB / 0.6398 GB, free: 13.89 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.5708, allocations: 209 kB / 0.64 GB, free: 13.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.5709, allocations: 12 kB / 0.64 GB, free: 13.67 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.571, allocations: 394.7 kB / 0.6404 GB, free: 13.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.5717, allocations: 281.8 kB / 0.6406 GB, free: 13 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000838/0.5726, allocations: 0.5297 MB / 0.6411 GB, free: 12.35 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.5742, allocations: 0.8109 MB / 0.6419 GB, free: 11.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.5742, allocations: 4 kB / 0.6419 GB, free: 11.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002084/0.5763, allocations: 0.9477 MB / 0.6429 GB, free: 10.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.5765, allocations: 314 kB / 0.6432 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.5765, allocations: 12.62 kB / 0.6432 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005619/0.5821, allocations: 0.7039 MB / 0.6439 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/0.5829, allocations: 191.7 kB / 0.644 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008813/0.5838, allocations: 1.163 MB / 0.6452 GB, free: 7.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008403/0.5846, allocations: 77.42 kB / 0.6453 GB, free: 7.855 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.5848, allocations: 47.98 kB / 0.6453 GB, free: 7.809 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.5848, allocations: 4 kB / 0.6453 GB, free: 7.805 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001864/0.5867, allocations: 0.797 MB / 0.6461 GB, free: 7.008 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.5867, allocations: 8 kB / 0.6461 GB, free: 7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.5867, allocations: 12 kB / 0.6461 GB, free: 6.988 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007998/0.5875, allocations: 232.3 kB / 0.6463 GB, free: 6.766 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.5875, allocations: 12 kB / 0.6463 GB, free: 6.754 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007053/0.5882, allocations: 79.84 kB / 0.6464 GB, free: 6.676 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.281e-05/0.5883, allocations: 43.98 kB / 0.6464 GB, free: 6.633 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004274/0.5888, allocations: 312.7 kB / 0.6467 GB, free: 6.316 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.589, allocations: 87.14 kB / 0.6468 GB, free: 6.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.5938, allocations: 3.72 MB / 0.6505 GB, free: 2.492 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.5939, allocations: 3.984 kB / 0.6505 GB, free: 2.488 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.5939, allocations: 4 kB / 0.6505 GB, free: 2.484 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006308/0.5945, allocations: 457.7 kB / 0.6509 GB, free: 2.016 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.5947, allocations: 12 kB / 0.6509 GB, free: 2.004 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/0.5955, allocations: 107.8 kB / 0.651 GB, free: 1.898 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.5957, allocations: 59.91 kB / 0.6511 GB, free: 1.84 MB / 474.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 / $cse16, simpleGenericOrifice.state_b.d / $cse16, false, 1.0) 4/4 (1): simpleGenericOrifice.state_a.d = $cse17.rho 5/5 (16): $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.h, 0, 0) Variables: 1: $cse17.x:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse17.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse17.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse17.vt:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse17.p:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse17.T:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse17.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse17.phase:DISCRETE(protected = true ) type: Integer unreplaceable 9: 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] 10: $cse17.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse17.R:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse17.cp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse17.region:DISCRETE(protected = true ) type: Integer unreplaceable 14: $cse17.pd:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse17.rho:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse17.h:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse17.pt:VARIABLE(protected = true ) type: Real unreplaceable 18: 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 19: simpleGenericOrifice.dp_fg:VARIABLE(start = simpleGenericOrifice.dp_start unit = "Pa" ) "pressure loss due to friction and gravity" type: Real 20: 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.0007476/0.5964, allocations: 335.4 kB / 0.6514 GB, free: 1.52 MB / 474.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.