Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001399, allocations: 114.6 kB / 17.09 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 198.1 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1979/0.1979, allocations: 43.51 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 67.89 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.3136/0.4192, allocations: 64.92 MB / 0.5519 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02923/0.4485, allocations: 27 MB / 0.5783 GB, free: 6.715 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.4502, allocations: 21.62 kB / 0.5783 GB, free: 6.707 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.4519, allocations: 0.5597 MB / 0.5789 GB, free: 6.359 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01515/0.467, allocations: 5.197 MB / 0.5839 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009583/0.4766, allocations: 3.635 MB / 0.5875 GB, free: 0.543 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003312/0.48, allocations: 2.215 MB / 0.5897 GB, free: 15.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009466/0.4809, allocations: 0.6628 MB / 0.5903 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00792/0.4888, allocations: 4.332 MB / 0.5945 GB, free: 12.12 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.4902, allocations: 0.6838 MB / 0.5952 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.4904, allocations: 80.44 kB / 0.5953 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0156/0.506, allocations: 6.929 MB / 0.6021 GB, free: 6.258 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003638/0.5064, allocations: 243.1 kB / 0.6023 GB, free: 6.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008377/0.5073, allocations: 0.5172 MB / 0.6028 GB, free: 5.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01432/0.5216, allocations: 5.001 MB / 0.6077 GB, free: 500 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.5216, allocations: 4 kB / 0.6077 GB, free: 496 kB / 446.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5217, allocations: 0 / 0.6077 GB, free: 496 kB / 446.1 MB Notification: Performance of Transformations before backend: time 4.854e-05/0.5217, allocations: 0 / 0.6077 GB, free: 496 kB / 446.1 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.004754/0.5265, allocations: 1.793 MB / 0.6094 GB, free: 14.64 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.5265, allocations: 11.89 kB / 0.6094 GB, free: 14.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004796/0.5313, allocations: 0.6007 MB / 0.61 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.5325, allocations: 0.6338 MB / 0.6106 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.365e-05/0.5326, allocations: 74.48 kB / 0.6107 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.5327, allocations: 79.94 kB / 0.6108 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.536, allocations: 1.328 MB / 0.6121 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.5361, allocations: 3.984 kB / 0.6121 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.523e-05/0.5362, allocations: 36 kB / 0.6121 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.5362, allocations: 24 kB / 0.6121 GB, free: 11.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/0.5396, allocations: 1.193 MB / 0.6133 GB, free: 10.54 MB / 462.1 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.006865/0.5464, allocations: 5.697 MB / 0.6189 GB, free: 4.469 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003112/0.5496, allocations: 0.9539 MB / 0.6198 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007163/0.5503, allocations: 325.5 kB / 0.6201 GB, free: 3.172 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06361/0.6139, allocations: 32.41 MB / 0.6518 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.614, allocations: 46.5 kB / 0.6518 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000581/0.6146, allocations: 87.05 kB / 0.6519 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 3.647e-06/0.6146, allocations: 0 / 0.6519 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.006184/0.6208, allocations: 1.788 MB / 0.6536 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.6209, allocations: 191.9 kB / 0.6538 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008433/0.6217, allocations: 0.6724 MB / 0.6545 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.6218, allocations: 37.7 kB / 0.6545 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.6221, allocations: 391.9 kB / 0.6549 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.6223, allocations: 205 kB / 0.6551 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.6225, allocations: 158.5 kB / 0.6552 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.6227, allocations: 394.7 kB / 0.6556 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006871/0.6234, allocations: 268.7 kB / 0.6559 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008539/0.6242, allocations: 0.5218 MB / 0.6564 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.6258, allocations: 0.7786 MB / 0.6571 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.6258, allocations: 4 kB / 0.6571 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002081/0.6279, allocations: 0.9155 MB / 0.658 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.6279, allocations: 11.94 kB / 0.658 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.6279, allocations: 8 kB / 0.6581 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005423/0.6334, allocations: 0.6692 MB / 0.6587 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006704/0.6341, allocations: 183.7 kB / 0.6589 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008852/0.635, allocations: 1.171 MB / 0.66 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.6356, allocations: 47.95 kB / 0.6601 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-05/0.6357, allocations: 44.11 kB / 0.6601 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008597/0.6366, allocations: 417.9 kB / 0.6605 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008251/0.6374, allocations: 0.5062 MB / 0.661 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00146/0.6389, allocations: 0.7739 MB / 0.6618 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.008e-06/0.6389, allocations: 0 / 0.6618 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001887/0.6408, allocations: 0.8599 MB / 0.6626 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.6408, allocations: 14.69 kB / 0.6626 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.6408, allocations: 8 kB / 0.6626 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.6408, allocations: 12 kB / 0.6626 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007887/0.6416, allocations: 215.7 kB / 0.6628 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.6417, allocations: 15.92 kB / 0.6629 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005682/0.6422, allocations: 51.97 kB / 0.6629 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.137e-05/0.6423, allocations: 39.98 kB / 0.6629 GB, free: 2.789 MB / 0.4981 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.0002538/0.6426, allocations: 241 kB / 0.6632 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.6428, allocations: 87.05 kB / 0.6633 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004619/0.6474, allocations: 3.628 MB / 0.6668 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.6474, allocations: 3.984 kB / 0.6668 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.6474, allocations: 0 / 0.6668 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003691/0.6478, allocations: 298.7 kB / 0.6671 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.648, allocations: 59.28 kB / 0.6671 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/0.6487, allocations: 75.91 kB / 0.6672 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.6488, allocations: 59.86 kB / 0.6673 GB, free: 14.3 MB / 0.5137 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007913/0.6496, allocations: 314.2 kB / 0.6676 GB, free: 14 MB / 0.5137 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestDensity could not be translated