Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001094, allocations: 190.8 kB / 16.75 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.5 MB / 244 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007298/0.00073, allocations: 99.12 kB / 296.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3183/0.3183, allocations: 44.81 MB / 392.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002937, allocations: 8 kB / 466 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2985, allocations: 62.96 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.04497/0.3435, allocations: 61.08 MB / 0.5762 GB, free: 9.438 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02795/0.3715, allocations: 25.28 MB / 0.6008 GB, free: 2.941 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.3727, allocations: 27.75 kB / 0.6009 GB, free: 2.914 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.374, allocations: 449.2 kB / 0.6013 GB, free: 2.473 MB / 410.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. [/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.01245/0.3865, allocations: 4.202 MB / 0.6054 GB, free: 14.27 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008654/0.3952, allocations: 2.958 MB / 0.6083 GB, free: 11.32 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.398, allocations: 2.512 MB / 0.6107 GB, free: 8.801 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007204/0.3987, allocations: 0.5558 MB / 0.6113 GB, free: 8.23 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009707/0.4084, allocations: 6.587 MB / 0.6177 GB, free: 1.637 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.4097, allocations: 0.6575 MB / 0.6184 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000135/0.4098, allocations: 40 kB / 0.6184 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0128/0.4226, allocations: 6.633 MB / 0.6249 GB, free: 10.3 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.4229, allocations: 199.2 kB / 0.6251 GB, free: 10.1 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000644/0.4236, allocations: 499.7 kB / 0.6255 GB, free: 9.605 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006245/0.4298, allocations: 3.457 MB / 0.6289 GB, free: 6.141 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4299, allocations: 0 / 0.6289 GB, free: 6.141 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4299, allocations: 0 / 0.6289 GB, free: 6.141 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.4299, allocations: 0 / 0.6289 GB, free: 6.141 MB / 442.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.004078/0.434, allocations: 1.622 MB / 0.6305 GB, free: 4.469 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/0.434, allocations: 11.97 kB / 0.6305 GB, free: 4.457 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00445/0.4385, allocations: 0.6398 MB / 0.6311 GB, free: 3.816 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008863/0.4394, allocations: 0.6104 MB / 0.6317 GB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-05/0.4395, allocations: 66.12 kB / 0.6318 GB, free: 3.098 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.506e-05/0.4396, allocations: 72 kB / 0.6319 GB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003205/0.4428, allocations: 1.367 MB / 0.6332 GB, free: 1.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.4428, allocations: 7.922 kB / 0.6332 GB, free: 1.562 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.246e-05/0.4429, allocations: 40 kB / 0.6332 GB, free: 1.523 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.443, allocations: 20 kB / 0.6333 GB, free: 1.504 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00335/0.4463, allocations: 1.24 MB / 0.6345 GB, free: 276 kB / 442.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.006767/0.4531, allocations: 5.748 MB / 0.6401 GB, free: 10.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.4562, allocations: 1.011 MB / 0.6411 GB, free: 9.113 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007869/0.457, allocations: 357.5 kB / 0.6414 GB, free: 8.758 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2806/0.7376, allocations: 36.3 MB / 0.6769 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/0.7377, allocations: 41.64 kB / 0.6769 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007318/0.7385, allocations: 112.5 kB / 0.677 GB, free: 140.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=58): time 3.006e-06/0.7385, allocations: 0 / 0.677 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=58): time 0.006414/0.7449, allocations: 1.883 MB / 0.6789 GB, free: 140.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.745, allocations: 187 kB / 0.679 GB, free: 140 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007371/0.7457, allocations: 0.6716 MB / 0.6797 GB, free: 139.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.7458, allocations: 36.27 kB / 0.6797 GB, free: 139.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.746, allocations: 401.5 kB / 0.6801 GB, free: 139.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.7461, allocations: 199 kB / 0.6803 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.7462, allocations: 11.03 kB / 0.6803 GB, free: 139.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.7463, allocations: 395.8 kB / 0.6807 GB, free: 138.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006384/0.7469, allocations: 276.1 kB / 0.6809 GB, free: 138.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007255/0.7476, allocations: 0.5287 MB / 0.6815 GB, free: 138.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.749, allocations: 0.8165 MB / 0.6823 GB, free: 138 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.749, allocations: 6.75 kB / 0.6823 GB, free: 138 MB / 490.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001853/0.7509, allocations: 0.9441 MB / 0.6832 GB, free: 137.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/0.751, allocations: 325.5 kB / 0.6835 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.7511, allocations: 7.375 kB / 0.6835 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005651/0.7567, allocations: 0.7002 MB / 0.6842 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/0.7574, allocations: 200.5 kB / 0.6844 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006654/0.7581, allocations: 1.171 MB / 0.6855 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007106/0.7588, allocations: 80.39 kB / 0.6856 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/0.7589, allocations: 43.53 kB / 0.6856 GB, free: 136 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.7589, allocations: 7.219 kB / 0.6856 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001592/0.7605, allocations: 0.791 MB / 0.6864 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.7605, allocations: 5.438 kB / 0.6864 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.846e-06/0.7605, allocations: 14.16 kB / 0.6864 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007454/0.7613, allocations: 226.9 kB / 0.6867 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.7613, allocations: 18.2 kB / 0.6867 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.7619, allocations: 77.41 kB / 0.6867 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.518e-05/0.762, allocations: 43.73 kB / 0.6868 GB, free: 135.7 MB / 490.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.0003481/0.7623, allocations: 313.4 kB / 0.6871 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.7624, allocations: 84.16 kB / 0.6872 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003828/0.7663, allocations: 3.719 MB / 0.6908 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.7663, allocations: 7.219 kB / 0.6908 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7663, allocations: 0 / 0.6908 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.7668, allocations: 446.4 kB / 0.6912 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.7669, allocations: 16.86 kB / 0.6912 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006548/0.7676, allocations: 105.7 kB / 0.6913 GB, free: 133.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.7677, allocations: 74.86 kB / 0.6914 GB, free: 133.4 MB / 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 / $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_s: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.0006835/0.7684, allocations: 332.9 kB / 0.6917 GB, free: 133.2 MB / 490.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.