Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 106.5 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002208/0.002208, allocations: 216.6 kB / 24.49 MB, free: 3.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2263/0.2263, allocations: 46.95 MB / 361.6 MB, free: 3.992 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 71.89 kB / 0.4973 GB, free: 7.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.325, allocations: 66.03 MB / 0.5618 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.0674/0.3924, allocations: 59.62 MB / 0.6201 GB, free: 8.297 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03244/0.4249, allocations: 24.3 MB / 0.6438 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.426, allocations: 31.69 kB / 0.6438 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.4275, allocations: 0.5161 MB / 0.6443 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01418/0.4417, allocations: 5.224 MB / 0.6494 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009783/0.4515, allocations: 3.605 MB / 0.6529 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.455, allocations: 2.262 MB / 0.6551 GB, free: 4.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009314/0.4559, allocations: 0.5609 MB / 0.6557 GB, free: 3.691 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009019/0.4649, allocations: 4.37 MB / 0.66 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.4664, allocations: 0.7237 MB / 0.6607 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.4666, allocations: 80 kB / 0.6607 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01321/0.4799, allocations: 6.864 MB / 0.6674 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003624/0.4802, allocations: 247.1 kB / 0.6677 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006839/0.4809, allocations: 454.1 kB / 0.6681 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.4927, allocations: 5.026 MB / 0.673 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4927, allocations: 0 / 0.673 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.654e-06/0.4927, allocations: 0 / 0.673 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.311e-05/0.4927, allocations: 4 kB / 0.673 GB, free: 1.859 MB / 0.4981 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.004312/0.497, allocations: 1.775 MB / 0.6748 GB, free: 44 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4971, allocations: 8.031 kB / 0.6748 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004833/0.5019, allocations: 0.5506 MB / 0.6753 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.5031, allocations: 0.5842 MB / 0.6759 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/0.5032, allocations: 66.38 kB / 0.6759 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.5033, allocations: 75.94 kB / 0.676 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003575/0.5069, allocations: 1.628 MB / 0.6776 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.5069, allocations: 15.86 kB / 0.6776 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.254e-05/0.507, allocations: 32 kB / 0.6776 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.507, allocations: 20 kB / 0.6777 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003468/0.5105, allocations: 1.189 MB / 0.6788 GB, free: 11.7 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.006777/0.5172, allocations: 4.267 MB / 0.683 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003124/0.5204, allocations: 0.9227 MB / 0.6839 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007472/0.5211, allocations: 313.5 kB / 0.6842 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06156/0.5827, allocations: 17.69 MB / 0.7015 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.5827, allocations: 46.48 kB / 0.7015 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005263/0.5832, allocations: 75.55 kB / 0.7016 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=58): time 2.765e-06/0.5832, allocations: 0 / 0.7016 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58): time 0.006059/0.5893, allocations: 1.619 MB / 0.7032 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.5894, allocations: 187.9 kB / 0.7033 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007599/0.5902, allocations: 0.5066 MB / 0.7038 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.255e-05/0.5903, allocations: 37.7 kB / 0.7039 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.5906, allocations: 424.1 kB / 0.7043 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.5908, allocations: 210.2 kB / 0.7045 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.5911, allocations: 158.6 kB / 0.7046 GB, free: 1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002308/0.5913, allocations: 386.7 kB / 0.705 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006998/0.592, allocations: 264.7 kB / 0.7053 GB, free: 360 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009942/0.593, allocations: 0.6189 MB / 0.7059 GB, free: 15.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.5947, allocations: 0.7829 MB / 0.7066 GB, free: 14.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.5947, allocations: 4 kB / 0.7066 GB, free: 14.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002064/0.5968, allocations: 0.908 MB / 0.7075 GB, free: 13.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.5968, allocations: 8 kB / 0.7075 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.5968, allocations: 8.719 kB / 0.7075 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00531/0.6021, allocations: 0.6648 MB / 0.7082 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.6028, allocations: 191.7 kB / 0.7084 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.6038, allocations: 1.167 MB / 0.7095 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.6044, allocations: 47.95 kB / 0.7096 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.6045, allocations: 43.98 kB / 0.7096 GB, free: 11.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009177/0.6054, allocations: 414.1 kB / 0.71 GB, free: 11.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009845/0.6064, allocations: 0.6181 MB / 0.7106 GB, free: 10.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001575/0.608, allocations: 0.7637 MB / 0.7113 GB, free: 9.562 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.848e-06/0.608, allocations: 0 / 0.7113 GB, free: 9.562 MB / 0.545 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001962/0.6099, allocations: 0.8512 MB / 0.7122 GB, free: 8.707 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.6099, allocations: 10.81 kB / 0.7122 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.6099, allocations: 11.94 kB / 0.7122 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.61, allocations: 12 kB / 0.7122 GB, free: 8.676 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.6108, allocations: 216.2 kB / 0.7124 GB, free: 8.465 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.6108, allocations: 15.98 kB / 0.7124 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.6113, allocations: 47.91 kB / 0.7125 GB, free: 8.402 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.367e-05/0.6113, allocations: 43.98 kB / 0.7125 GB, free: 8.359 MB / 0.545 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.0002744/0.6116, allocations: 242.7 kB / 0.7127 GB, free: 8.117 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.6118, allocations: 71.58 kB / 0.7128 GB, free: 8.047 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005032/0.6168, allocations: 3.729 MB / 0.7165 GB, free: 4.312 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.6168, allocations: 7.922 kB / 0.7165 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.6168, allocations: 0 / 0.7165 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003929/0.6172, allocations: 214.6 kB / 0.7167 GB, free: 4.094 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.6174, allocations: 63.52 kB / 0.7167 GB, free: 4.031 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005679/0.6179, allocations: 63.92 kB / 0.7168 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.6181, allocations: 63.88 kB / 0.7168 GB, free: 3.906 MB / 0.545 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:521:7-523: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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9812:5-9813:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008034/0.6189, allocations: 323.7 kB / 0.7172 GB, free: 3.582 MB / 0.545 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.2401690690312535] 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.6275182309909724 0.641536485 0.14567649900000001 Calling exit ...