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.001666/0.001666, allocations: 112.2 kB / 17.09 MB, free: 6.004 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.002115/0.002115, allocations: 190.2 kB / 18.02 MB, free: 5.086 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.385/1.385, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.202/0.202, allocations: 43.52 MB / 314.8 MB, free: 460 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.001418/0.001418, allocations: 63.91 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 57.8 MB / 0.4886 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.2922/0.3938, allocations: 64.9 MB / 0.5519 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02899/0.4229, allocations: 27 MB / 0.5783 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.4242, allocations: 20.25 kB / 0.5783 GB, free: 6.695 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.4258, allocations: 0.5596 MB / 0.5789 GB, free: 6.348 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0154/0.4412, allocations: 5.217 MB / 0.584 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01015/0.4514, allocations: 3.64 MB / 0.5875 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.4545, allocations: 2.224 MB / 0.5897 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.4558, allocations: 0.6616 MB / 0.5903 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01059/0.4664, allocations: 4.34 MB / 0.5946 GB, free: 12.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.4681, allocations: 0.6814 MB / 0.5952 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003913/0.4685, allocations: 84.09 kB / 0.5953 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01695/0.4854, allocations: 6.924 MB / 0.6021 GB, free: 6.254 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005085/0.486, allocations: 247.1 kB / 0.6023 GB, free: 6.012 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.4871, allocations: 0.5133 MB / 0.6028 GB, free: 5.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.5, allocations: 5.022 MB / 0.6077 GB, free: 472 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.5001, allocations: 0 / 0.6077 GB, free: 472 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5001, allocations: 0 / 0.6077 GB, free: 472 kB / 446.1 MB Notification: Performance of Transformations before backend: time 4.785e-05/0.5001, allocations: 4 kB / 0.6077 GB, free: 468 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.004882/0.505, allocations: 1.843 MB / 0.6095 GB, free: 14.55 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.5051, allocations: 15.89 kB / 0.6095 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004988/0.5101, allocations: 0.5974 MB / 0.6101 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.5113, allocations: 0.6382 MB / 0.6108 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-05/0.5114, allocations: 78.48 kB / 0.6108 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.5115, allocations: 75.94 kB / 0.6109 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003416/0.5149, allocations: 1.332 MB / 0.6122 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.515, allocations: 3.984 kB / 0.6122 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.957e-05/0.5151, allocations: 40 kB / 0.6122 GB, free: 11.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.5151, allocations: 16 kB / 0.6123 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.5185, allocations: 1.193 MB / 0.6134 GB, free: 10.45 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.007103/0.5256, allocations: 5.702 MB / 0.619 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003107/0.5287, allocations: 0.9539 MB / 0.6199 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007517/0.5295, allocations: 329.5 kB / 0.6202 GB, free: 3.078 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06297/0.5925, allocations: 32.41 MB / 0.6519 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/0.5925, allocations: 46.5 kB / 0.6519 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005656/0.5931, allocations: 83.28 kB / 0.652 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=58): time 4.148e-06/0.5931, allocations: 0 / 0.652 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=58): time 0.006086/0.5992, allocations: 1.796 MB / 0.6538 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.5993, allocations: 191.9 kB / 0.654 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008276/0.6002, allocations: 0.6764 MB / 0.6546 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.021e-05/0.6002, allocations: 33.7 kB / 0.6546 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.6005, allocations: 412.6 kB / 0.655 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.6007, allocations: 202.2 kB / 0.6552 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.6009, allocations: 166.5 kB / 0.6554 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.6011, allocations: 394.7 kB / 0.6558 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000665/0.6018, allocations: 264.7 kB / 0.656 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008255/0.6026, allocations: 0.5218 MB / 0.6565 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.6041, allocations: 0.7825 MB / 0.6573 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.6041, allocations: 0 / 0.6573 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002033/0.6062, allocations: 0.9198 MB / 0.6582 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.6062, allocations: 10.66 kB / 0.6582 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.6062, allocations: 8 kB / 0.6582 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/0.6114, allocations: 0.6693 MB / 0.6589 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.6121, allocations: 191.7 kB / 0.659 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009714/0.6131, allocations: 1.167 MB / 0.6602 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006802/0.6138, allocations: 48.08 kB / 0.6602 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.6139, allocations: 51.97 kB / 0.6603 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008979/0.6148, allocations: 409.9 kB / 0.6607 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008487/0.6157, allocations: 0.5101 MB / 0.6612 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001472/0.6172, allocations: 0.77 MB / 0.6619 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.61e-06/0.6172, allocations: 0 / 0.6619 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of matching and sorting (n=90) (initialization_lambda0): time 0.001916/0.6191, allocations: 0.8682 MB / 0.6628 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.6191, allocations: 8 kB / 0.6628 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.6192, allocations: 8 kB / 0.6628 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.6192, allocations: 8 kB / 0.6628 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008155/0.62, allocations: 215.7 kB / 0.663 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/0.62, allocations: 19.92 kB / 0.663 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.6207, allocations: 48.06 kB / 0.6631 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.591e-05/0.6207, allocations: 43.98 kB / 0.6631 GB, free: 2.66 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.0002428/0.621, allocations: 237 kB / 0.6633 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.6212, allocations: 95.42 kB / 0.6634 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004496/0.6257, allocations: 3.637 MB / 0.667 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.6257, allocations: 3.984 kB / 0.667 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.6257, allocations: 0 / 0.667 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004002/0.6261, allocations: 303.5 kB / 0.6673 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.6263, allocations: 63.52 kB / 0.6673 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.627, allocations: 71.84 kB / 0.6674 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.6271, allocations: 63.86 kB / 0.6675 GB, free: 14.16 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.000807/0.6279, allocations: 318.2 kB / 0.6678 GB, free: 13.84 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