Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004226/0.004225, allocations: 349.1 kB / 15.95 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.606/3.606, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003631/0.003631, allocations: 225.2 kB / 397.9 MB, free: 4.98 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6472/0.6472, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006931/0.0006933, allocations: 16 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1202, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.3436/0.4639, allocations: 59.99 MB / 0.6653 GB, free: 51.85 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03625/0.5002, allocations: 24.9 MB / 0.6896 GB, free: 28.16 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001453/0.5017, allocations: 31.69 kB / 0.6897 GB, free: 28.13 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.5037, allocations: 437.4 kB / 0.6901 GB, free: 27.7 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01802/0.5218, allocations: 4.109 MB / 0.6941 GB, free: 23.6 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.5332, allocations: 2.822 MB / 0.6969 GB, free: 20.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003592/0.5368, allocations: 2.464 MB / 0.6993 GB, free: 18.32 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.5381, allocations: 0.5237 MB / 0.6998 GB, free: 17.81 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01402/0.5522, allocations: 6.45 MB / 0.7061 GB, free: 11.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.5538, allocations: 0.6518 MB / 0.7067 GB, free: 10.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002656/0.5542, allocations: 40 kB / 0.7068 GB, free: 10.66 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01758/0.5717, allocations: 6.372 MB / 0.713 GB, free: 4.281 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003887/0.5722, allocations: 191.3 kB / 0.7132 GB, free: 4.094 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.5726, allocations: 221.2 kB / 0.7134 GB, free: 3.871 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007679/0.5803, allocations: 3.325 MB / 0.7166 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.424e-05/0.5804, allocations: 4 kB / 0.7166 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5805, allocations: 7.938 kB / 0.7166 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.5805, allocations: 0 / 0.7166 GB, free: 0.5273 MB / 362.7 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.005954/0.5865, allocations: 1.593 MB / 0.7182 GB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.5865, allocations: 8.031 kB / 0.7182 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007002/0.5935, allocations: 0.5842 MB / 0.7188 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.5953, allocations: 0.6211 MB / 0.7194 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.5955, allocations: 62 kB / 0.7194 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.5956, allocations: 72 kB / 0.7195 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005436/0.6011, allocations: 1.367 MB / 0.7208 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.6012, allocations: 3.938 kB / 0.7208 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001578/0.6013, allocations: 39.44 kB / 0.7209 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.6014, allocations: 20 kB / 0.7209 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005768/0.6072, allocations: 1.24 MB / 0.7221 GB, free: 10.75 MB / 378.7 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.01051/0.6177, allocations: 5.476 MB / 0.7274 GB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004612/0.6224, allocations: 0.8501 MB / 0.7283 GB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.6237, allocations: 294.8 kB / 0.7286 GB, free: 3.758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7167/1.34, allocations: 92.51 MB / 0.8189 GB, free: 86.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/1.341, allocations: 37.69 kB / 0.8189 GB, free: 86.02 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008138/1.341, allocations: 99.16 kB / 0.819 GB, free: 85.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 4.568e-06/1.341, allocations: 0 / 0.819 GB, free: 85.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.008064/1.349, allocations: 1.587 MB / 0.8206 GB, free: 84.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/1.35, allocations: 195.1 kB / 0.8208 GB, free: 84.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008017/1.35, allocations: 0.5411 MB / 0.8213 GB, free: 83.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/1.35, allocations: 37.7 kB / 0.8213 GB, free: 83.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/1.351, allocations: 433.5 kB / 0.8217 GB, free: 83.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/1.351, allocations: 202.6 kB / 0.8219 GB, free: 83.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.78e-05/1.351, allocations: 16 kB / 0.822 GB, free: 83.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/1.351, allocations: 378.8 kB / 0.8223 GB, free: 82.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009752/1.352, allocations: 225.8 kB / 0.8225 GB, free: 82.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/1.353, allocations: 0.5356 MB / 0.8231 GB, free: 82.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/1.354, allocations: 303.7 kB / 0.8233 GB, free: 81.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.457e-06/1.354, allocations: 4 kB / 0.8233 GB, free: 81.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003084/1.358, allocations: 0.89 MB / 0.8242 GB, free: 80.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002497/1.358, allocations: 379.2 kB / 0.8246 GB, free: 80.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/1.358, allocations: 12 kB / 0.8246 GB, free: 80.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007605/1.366, allocations: 436.2 kB / 0.825 GB, free: 79.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/1.367, allocations: 199.7 kB / 0.8252 GB, free: 79.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009715/1.368, allocations: 1.138 MB / 0.8263 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/1.369, allocations: 63.88 kB / 0.8264 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/1.369, allocations: 48.05 kB / 0.8264 GB, free: 78.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/1.369, allocations: 4 kB / 0.8264 GB, free: 78.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/1.372, allocations: 0.7566 MB / 0.8272 GB, free: 77.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/1.372, allocations: 8.938 kB / 0.8272 GB, free: 77.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/1.372, allocations: 16 kB / 0.8272 GB, free: 77.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/1.374, allocations: 223.7 kB / 0.8274 GB, free: 77.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/1.374, allocations: 26.69 kB / 0.8274 GB, free: 77.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/1.375, allocations: 59.95 kB / 0.8275 GB, free: 77.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.964e-05/1.375, allocations: 47.98 kB / 0.8275 GB, free: 77.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005751/1.375, allocations: 315.9 kB / 0.8278 GB, free: 76.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/1.376, allocations: 71.16 kB / 0.8279 GB, free: 76.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00637/1.382, allocations: 3.562 MB / 0.8314 GB, free: 73.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.283e-05/1.382, allocations: 7.938 kB / 0.8314 GB, free: 73.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/1.382, allocations: 0 / 0.8314 GB, free: 73.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006849/1.383, allocations: 404.2 kB / 0.8318 GB, free: 72.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/1.383, allocations: 20 kB / 0.8318 GB, free: 72.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/1.384, allocations: 71.59 kB / 0.8318 GB, free: 72.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/1.384, allocations: 59.91 kB / 0.8319 GB, free: 72.79 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): -simpleGenericOrifice.dp_fg = 101325.0 - massFlowRate1.ports[1].p 2/2 (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) 3/3 (1): simpleGenericOrifice.state_a.d = $cse17.rho 4/4 (16): $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(massFlowRate1.ports[1].p, 3200000.0, 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 = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "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 = 100000.0 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 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9662:5-9663:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009572/1.385, allocations: 291.2 kB / 0.8322 GB, free: 72.55 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.