Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001904/0.001904, allocations: 114 kB / 21.18 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002105/0.002105, allocations: 214.1 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2219/0.2219, allocations: 46.89 MB / 361.1 MB, free: 4.617 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 75.88 kB / 0.4968 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3534, allocations: 65.99 MB / 0.5612 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.0798/0.4332, allocations: 66.14 MB / 0.6258 GB, free: 2.652 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03742/0.4706, allocations: 27.26 MB / 0.6524 GB, free: 7.297 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.472, allocations: 23.88 kB / 0.6524 GB, free: 7.273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.4737, allocations: 0.5628 MB / 0.653 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01553/0.4892, allocations: 5.247 MB / 0.6581 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01129/0.5005, allocations: 3.657 MB / 0.6617 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00396/0.5045, allocations: 2.246 MB / 0.6639 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.5056, allocations: 0.576 MB / 0.6644 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009463/0.5151, allocations: 4.355 MB / 0.6687 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001708/0.5168, allocations: 0.7237 MB / 0.6694 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000227/0.517, allocations: 84 kB / 0.6695 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01524/0.5323, allocations: 6.958 MB / 0.6763 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004706/0.5327, allocations: 251.1 kB / 0.6765 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0009913/0.5337, allocations: 0.5211 MB / 0.677 GB, free: 14 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.5476, allocations: 5.046 MB / 0.682 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.5477, allocations: 3.938 kB / 0.682 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.452e-06/0.5477, allocations: 0 / 0.682 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.5477, allocations: 0 / 0.682 GB, free: 8.941 MB / 0.5137 GB 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.004875/0.5525, allocations: 1.859 MB / 0.6838 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5526, allocations: 8.031 kB / 0.6838 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004869/0.5575, allocations: 0.5545 MB / 0.6843 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.5589, allocations: 0.6497 MB / 0.685 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/0.5589, allocations: 70.38 kB / 0.685 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.5591, allocations: 75.94 kB / 0.6851 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003453/0.5625, allocations: 1.323 MB / 0.6864 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.5625, allocations: 3.938 kB / 0.6864 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.814e-05/0.5626, allocations: 36 kB / 0.6864 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.5627, allocations: 24 kB / 0.6864 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003517/0.5662, allocations: 1.189 MB / 0.6876 GB, free: 2.973 MB / 0.5137 GB 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.008128/0.5743, allocations: 5.546 MB / 0.693 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003514/0.5778, allocations: 0.9365 MB / 0.6939 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.579, allocations: 309.5 kB / 0.6942 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08995/0.6689, allocations: 36.13 MB / 0.7295 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.116e-05/0.669, allocations: 42.56 kB / 0.7296 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007073/0.6697, allocations: 91.39 kB / 0.7296 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 4.909e-06/0.6697, allocations: 0 / 0.7296 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.006645/0.6763, allocations: 1.792 MB / 0.7314 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.6765, allocations: 187.9 kB / 0.7316 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.6775, allocations: 0.6802 MB / 0.7322 GB, free: 172 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.6776, allocations: 41.7 kB / 0.7323 GB, free: 124 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2893/0.9669, allocations: 398.2 kB / 0.7327 GB, free: 169.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.9671, allocations: 210.3 kB / 0.7329 GB, free: 169.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/0.9674, allocations: 157.2 kB / 0.733 GB, free: 169.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.9675, allocations: 393 kB / 0.7334 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/0.9683, allocations: 273.4 kB / 0.7336 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/0.9692, allocations: 0.5162 MB / 0.7342 GB, free: 168.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.9709, allocations: 0.7772 MB / 0.7349 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.525e-06/0.9709, allocations: 2.438 kB / 0.7349 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002096/0.973, allocations: 0.9238 MB / 0.7358 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.973, allocations: 12.94 kB / 0.7358 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.973, allocations: 10.77 kB / 0.7358 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005438/0.9784, allocations: 0.6728 MB / 0.7365 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006104/0.979, allocations: 178.2 kB / 0.7367 GB, free: 167.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006297/0.9797, allocations: 1.173 MB / 0.7378 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.9803, allocations: 45.75 kB / 0.7379 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.9803, allocations: 47.19 kB / 0.7379 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007697/0.9811, allocations: 415 kB / 0.7383 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006732/0.9818, allocations: 0.5147 MB / 0.7388 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001234/0.983, allocations: 0.764 MB / 0.7395 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.478e-06/0.983, allocations: 3.969 kB / 0.7395 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001627/0.9846, allocations: 0.8539 MB / 0.7404 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.9846, allocations: 11.88 kB / 0.7404 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.9846, allocations: 5.75 kB / 0.7404 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.9846, allocations: 17.91 kB / 0.7404 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006942/0.9853, allocations: 218.7 kB / 0.7406 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.9854, allocations: 21.28 kB / 0.7406 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.9859, allocations: 46 kB / 0.7407 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.9859, allocations: 42.31 kB / 0.7407 GB, free: 164.8 MB / 0.5606 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001956/0.9861, allocations: 236.5 kB / 0.741 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.9863, allocations: 92.98 kB / 0.741 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.9898, allocations: 3.602 MB / 0.7446 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.9898, allocations: 3.844 kB / 0.7446 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.9898, allocations: 0 / 0.7446 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003689/0.9902, allocations: 303.9 kB / 0.7449 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.9903, allocations: 63.59 kB / 0.7449 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006196/0.9909, allocations: 68.11 kB / 0.745 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.9911, allocations: 64.48 kB / 0.745 GB, free: 162.7 MB / 0.5606 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530: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 = 1e8 start = 5e6 unit = \"Pa\" nominal = 1e6 ) \"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 = 1e5 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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9810:5-9811:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007038/0.9918, allocations: 342.3 kB / 0.7454 GB, free: 162.5 MB / 0.5606 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestDensity could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.6405577692203224] Failed to read output from testmodel.py, exit status != 0: ['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'] 0.9997667269781232 1.008357057 0.45833733 Calling exit ...