Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001088/0.001088, allocations: 121.2 kB / 18.46 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 206.7 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2177, allocations: 46.09 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 79.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3217, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.04023/0.3619, allocations: 42.51 MB / 0.5732 GB, free: 7.082 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0175/0.3795, allocations: 15.65 MB / 0.5885 GB, free: 7.371 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004131/0.3799, allocations: 11.94 kB / 0.5885 GB, free: 7.359 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007803/0.3807, allocations: 306 kB / 0.5888 GB, free: 7.059 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01125/0.392, allocations: 4.679 MB / 0.5933 GB, free: 2.383 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00512/0.3971, allocations: 2.151 MB / 0.5954 GB, free: 236 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.3986, allocations: 1.185 MB / 0.5966 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.399, allocations: 341.7 kB / 0.5969 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008613/0.3999, allocations: 0.5564 MB / 0.5975 GB, free: 14.14 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.4004, allocations: 370.4 kB / 0.5978 GB, free: 13.77 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.691e-05/0.4005, allocations: 44 kB / 0.5979 GB, free: 13.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01346/0.4139, allocations: 7.43 MB / 0.6051 GB, free: 6.293 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.4141, allocations: 127.5 kB / 0.6052 GB, free: 6.168 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003994/0.4145, allocations: 290.7 kB / 0.6055 GB, free: 5.883 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00997/0.4245, allocations: 4.673 MB / 0.6101 GB, free: 1.199 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4245, allocations: 8 kB / 0.6101 GB, free: 1.191 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4245, allocations: 0 / 0.6101 GB, free: 1.191 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.4246, allocations: 0 / 0.6101 GB, free: 1.191 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002829/0.4274, allocations: 1.409 MB / 0.6115 GB, free: 15.73 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.4274, allocations: 12.03 kB / 0.6115 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002115/0.4296, allocations: 280.3 kB / 0.6117 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000623/0.4302, allocations: 436 kB / 0.6122 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.4302, allocations: 33.38 kB / 0.6122 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.4303, allocations: 44.12 kB / 0.6122 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.4319, allocations: 0.678 MB / 0.6129 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.4319, allocations: 4 kB / 0.6129 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.4319, allocations: 19.98 kB / 0.6129 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.432, allocations: 12 kB / 0.6129 GB, free: 14.15 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.4336, allocations: 0.5853 MB / 0.6135 GB, free: 13.56 MB / 478.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.003349/0.4369, allocations: 2.971 MB / 0.6164 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.4383, allocations: 466.4 kB / 0.6168 GB, free: 9.895 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.4387, allocations: 192.8 kB / 0.617 GB, free: 9.703 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07902/0.5178, allocations: 44.52 MB / 0.6605 GB, free: 7.555 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.5179, allocations: 46.5 kB / 0.6605 GB, free: 7.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=30): time 3.968e-06/0.5179, allocations: 3.984 kB / 0.6605 GB, free: 7.496 MB / 0.5138 GB Notification: Performance of matching and sorting (n=30): time 0.003277/0.5211, allocations: 0.9479 MB / 0.6615 GB, free: 6.52 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.5212, allocations: 106.8 kB / 0.6616 GB, free: 6.391 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005292/0.5217, allocations: 421.8 kB / 0.662 GB, free: 5.977 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.5218, allocations: 33.7 kB / 0.662 GB, free: 5.938 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.522, allocations: 252.4 kB / 0.6623 GB, free: 5.684 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 8.692e-05/0.5221, allocations: 107.1 kB / 0.6624 GB, free: 5.578 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.5222, allocations: 85.58 kB / 0.6624 GB, free: 5.488 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.5224, allocations: 354.8 kB / 0.6628 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.5227, allocations: 152.7 kB / 0.6629 GB, free: 4.98 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004196/0.5231, allocations: 259.5 kB / 0.6632 GB, free: 4.676 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007466/0.5239, allocations: 400.5 kB / 0.6635 GB, free: 4.238 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.5239, allocations: 4 kB / 0.6636 GB, free: 4.234 MB / 0.5138 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001035/0.525, allocations: 0.4976 MB / 0.664 GB, free: 3.727 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.525, allocations: 8 kB / 0.664 GB, free: 3.719 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.525, allocations: 4 kB / 0.664 GB, free: 3.715 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002691/0.5277, allocations: 344.8 kB / 0.6644 GB, free: 3.375 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.528, allocations: 91.89 kB / 0.6645 GB, free: 3.285 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004792/0.5285, allocations: 0.6031 MB / 0.6651 GB, free: 2.656 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/0.5289, allocations: 63.52 kB / 0.6651 GB, free: 2.594 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.5289, allocations: 16 kB / 0.6651 GB, free: 2.578 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004457/0.5293, allocations: 264.1 kB / 0.6654 GB, free: 2.316 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003966/0.5298, allocations: 250.5 kB / 0.6656 GB, free: 2.02 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007183/0.5305, allocations: 388.7 kB / 0.666 GB, free: 1.594 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.5305, allocations: 4 kB / 0.666 GB, free: 1.59 MB / 0.5138 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.0009263/0.5314, allocations: 460.8 kB / 0.6664 GB, free: 1.133 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.5314, allocations: 8 kB / 0.6664 GB, free: 1.125 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.5315, allocations: 4 kB / 0.6664 GB, free: 1.121 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/0.5315, allocations: 4 kB / 0.6664 GB, free: 1.117 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.5319, allocations: 108.3 kB / 0.6666 GB, free: 1.012 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.5319, allocations: 7.938 kB / 0.6666 GB, free: 1.004 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.5321, allocations: 39.83 kB / 0.6666 GB, free: 0.9648 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.5322, allocations: 23.98 kB / 0.6666 GB, free: 0.9414 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001537/0.5323, allocations: 215.4 kB / 0.6668 GB, free: 0.7266 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.5324, allocations: 47.91 kB / 0.6669 GB, free: 0.6797 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.5348, allocations: 2.007 MB / 0.6688 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5349, allocations: 3.938 kB / 0.6688 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5349, allocations: 0 / 0.6688 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.5351, allocations: 208.2 kB / 0.669 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/0.5352, allocations: 27.78 kB / 0.6691 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.5355, allocations: 31.95 kB / 0.6691 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.5356, allocations: 32.28 kB / 0.6691 GB, free: 14.35 MB / 0.5294 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 / $cse1, simpleGenericOrifice.state_b.d / $cse1, false, 1.0) 4/4 (1): simpleGenericOrifice.state_a.d = $cse2.rho 5/5 (16): $cse2 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, massFlowRate1.ports[1].h_outflow, 0, 0) 6/21 (1): massFlowRate1.ports[1].h_outflow = $cse7.h 7/22 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(massFlowRate1.ports[1].p, massFlowRate1.T, 0) Variables: 1: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse7.R_s:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 7: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 13: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 14: 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] 15: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.cv:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse2.vp:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse2.R_s:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 23: $cse2.dpT:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse2.pt:VARIABLE(protected = true ) type: Real unreplaceable 25: massFlowRate1.ports[1].h_outflow:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] 26: $cse2.region:DISCRETE(protected = true ) type: Integer unreplaceable 27: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse2.vt:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse2.rho:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse2.pd:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 35: simpleGenericOrifice.state_a.d:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 36: simpleGenericOrifice.dp_fg:VARIABLE(start = simpleGenericOrifice.dp_start unit = "Pa" ) "Pressure loss due to friction and gravity" type: Real 37: 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.0008531/0.5364, allocations: 0.5401 MB / 0.6697 GB, free: 13.75 MB / 0.5294 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate could not be translated