Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8698/0.8698, allocations: 143.4 MB / 158.3 MB, free: 5.801 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 189 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 223.2 MB / 447.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 87.78 kB / 0.5188 GB, free: 1.168 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001878/0.001878, allocations: 279.3 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004403, allocations: 14.83 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2028, allocations: 82.79 MB / 0.7737 GB, free: 13.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.558, allocations: 421.6 MB / 1.185 GB, free: 263.3 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/1.558, allocations: 99.33 kB / 1.185 GB, free: 263.2 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 26.24/27.8, allocations: 6.484 GB / 7.67 GB, free: 28.18 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.877e-06/27.8, allocations: 0 / 7.67 GB, free: 28.18 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.004294/27.8, allocations: 443.5 kB / 7.67 GB, free: 27.75 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.09124/27.9, allocations: 20.6 MB / 7.69 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/27.9, allocations: 8.562 kB / 7.69 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01769/27.91, allocations: 2.195 MB / 7.692 GB, free: 4.766 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.077/28.99, allocations: 21.73 MB / 7.714 GB, free: 47.94 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001603/28.99, allocations: 0.688 MB / 7.714 GB, free: 47.93 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008076/29, allocations: 0.9707 MB / 7.715 GB, free: 47.93 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05181/29.05, allocations: 15.94 MB / 7.731 GB, free: 47.14 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006328/29.05, allocations: 9.281 kB / 7.731 GB, free: 47.14 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005462/29.06, allocations: 330.4 kB / 7.731 GB, free: 47.14 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005675/29.06, allocations: 371.3 kB / 7.732 GB, free: 47.12 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04114/29.1, allocations: 20.14 MB / 7.751 GB, free: 47.06 MB / 0.9636 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.1845/29.28, allocations: 78.7 MB / 7.828 GB, free: 31.63 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02664/29.31, allocations: 12.82 MB / 7.841 GB, free: 31.15 MB / 0.9792 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 evalFunc (simulation): time 0.09556/29.41, allocations: 34.25 MB / 7.874 GB, free: 22.64 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02261/29.43, allocations: 9.672 MB / 7.883 GB, free: 22.48 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04985/29.48, allocations: 14.85 MB / 7.898 GB, free: 22.2 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=637): time 7.757e-05/29.48, allocations: 0 / 7.898 GB, free: 22.2 MB / 0.9792 GB Notification: Performance of matching and sorting (n=955): time 2.234/31.71, allocations: 322.7 MB / 8.213 GB, free: 71.6 MB / 0.9948 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of inlineWhenForInitialization (initialization): time 0.02307/31.74, allocations: 6.383 MB / 8.219 GB, free: 70.97 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05284/31.79, allocations: 14.31 MB / 8.233 GB, free: 70.3 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.006767/31.8, allocations: 255.2 kB / 8.234 GB, free: 70.27 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01486/31.81, allocations: 7.188 MB / 8.241 GB, free: 70 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.01216/31.82, allocations: 3.379 MB / 8.244 GB, free: 69.61 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00674/31.83, allocations: 214.2 kB / 8.244 GB, free: 69.61 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.001359/31.83, allocations: 0.7569 MB / 8.245 GB, free: 69.29 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03811/31.87, allocations: 18.54 MB / 8.263 GB, free: 69.23 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04253/31.91, allocations: 21.6 MB / 8.284 GB, free: 65.95 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04511/31.96, allocations: 19.9 MB / 8.303 GB, free: 65.61 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001869/31.96, allocations: 11.53 kB / 8.303 GB, free: 65.61 MB / 0.9948 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 1.766/33.72, allocations: 147.9 MB / 8.448 GB, free: 93.62 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.007957/33.73, allocations: 31.93 MB / 8.479 GB, free: 60.28 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003202/33.73, allocations: 45.53 kB / 8.479 GB, free: 60.28 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6222/34.35, allocations: 153.1 MB / 8.628 GB, free: 60.12 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02039/34.38, allocations: 3.451 MB / 8.632 GB, free: 60.12 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1779/34.55, allocations: 79.01 MB / 8.709 GB, free: 52.68 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1034/34.66, allocations: 6.69 MB / 8.716 GB, free: 51.61 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01342/34.67, allocations: 1.38 MB / 8.717 GB, free: 51.61 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/34.67, allocations: 4.594 kB / 8.717 GB, free: 51.61 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.916/36.59, allocations: 146.4 MB / 8.86 GB, free: 96.63 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003396/36.59, allocations: 44.22 kB / 8.86 GB, free: 96.63 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6241/37.21, allocations: 152.8 MB / 9.009 GB, free: 96.45 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01877/37.23, allocations: 3.42 MB / 9.012 GB, free: 96.41 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1895/37.42, allocations: 86.41 MB / 9.097 GB, free: 91.99 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09836/37.52, allocations: 6.677 MB / 9.103 GB, free: 90.46 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01084/37.53, allocations: 1.336 MB / 9.105 GB, free: 89.94 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (991): * Single equations (assignments): 973 * Array equations: 6 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {33 119,33 119} Notification: Performance of prepare postOptimizeDAE: time 0.02714/37.56, allocations: 4.037 MB / 9.109 GB, free: 88.13 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01393/37.57, allocations: 1.492 MB / 9.11 GB, free: 87.43 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2302/37.8, allocations: 63.12 MB / 9.172 GB, free: 36.7 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516/39.32, allocations: 70.2 MB / 9.24 GB, free: 98.76 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003075/39.32, allocations: 29.91 kB / 9.24 GB, free: 98.76 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2294/39.55, allocations: 69.43 MB / 9.308 GB, free: 98 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4385/39.98, allocations: 164.2 MB / 9.468 GB, free: 91.71 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001569/39.98, allocations: 0 / 9.468 GB, free: 91.71 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01214/40, allocations: 1.963 MB / 9.47 GB, free: 91.71 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3354/40.33, allocations: 91.73 MB / 9.56 GB, free: 40.71 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005367/40.34, allocations: 0.6257 MB / 9.561 GB, free: 40.23 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.381/41.72, allocations: 74.07 MB / 9.633 GB, free: 107.8 MB / 1.042 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01993/41.74, allocations: 6.173 MB / 9.639 GB, free: 107.2 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3002/42.04, allocations: 100.2 MB / 9.737 GB, free: 105.9 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03326/42.07, allocations: 6.537 MB / 9.743 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01213/42.08, allocations: 234.9 kB / 9.743 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05983/42.14, allocations: 3.636 MB / 9.747 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006894/42.15, allocations: 0.9621 MB / 9.748 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006318/42.16, allocations: 0.6984 MB / 9.749 GB, free: 105.5 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.03415/42.19, allocations: 11.01 MB / 9.759 GB, free: 105 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.383e-06/42.19, allocations: 0 / 9.759 GB, free: 105 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1304/42.32, allocations: 43.49 MB / 9.802 GB, free: 105 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 ($STATESET1.x[32],$STATESET1.x[31],$STATESET1.x[30],$STATESET1.x[29],$STATESET1.x[28],$STATESET1.x[27],$STATESET1.x[26],$STATESET1.x[25],$STATESET1.x[24],$STATESET1.x[23],$STATESET1.x[22],$STATESET1.x[21],$STATESET1.x[20],$STATESET1.x[19],$STATESET1.x[18],$STATESET1.x[17],$STATESET1.x[16],$STATESET1.x[15],$STATESET1.x[14],$STATESET1.x[13],$STATESET1.x[12],$STATESET1.x[11],$STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],pmpSouth.vol.dynBal.U,pmpSouth.filter.s[1],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],valSouth1[1].filter.s[1],valSouth1[2].filter.s[1],valSouth1[3].filter.s[1],valSouth1[4].filter.s[1],valSouth2[1].filter.s[1],valSouth2[2].filter.s[1],valSouth2[3].filter.s[1],valSouth2[4].filter.s[1],valSouth2[5].filter.s[1],valSouth2[6].filter.s[1],valSouth2[7].filter.s[1],valSouth2[8].filter.s[1],valNorth1[1].filter.s[1],valNorth1[2].filter.s[1],valNorth1[3].filter.s[1],valNorth1[4].filter.s[1],valNorth2[1].filter.s[1],valNorth2[2].filter.s[1],valNorth2[3].filter.s[1],valNorth2[4].filter.s[1],valNorth2[5].filter.s[1],valNorth2[6].filter.s[1],valNorth2[7].filter.s[1],valNorth2[8].filter.s[1],valSouth.vol.dynBal.U,valSouth.filter.s[1],valNorth.vol.dynBal.U,valNorth.filter.s[1],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],valHea.filter.s[1],valCoo.filter.s[1],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1]) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (635): * Single equations (assignments): 612 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {33 118,62 219} Notification: Performance of Backend phase and start with SimCode phase: time 0.0181/42.34, allocations: 5.591 MB / 9.807 GB, free: 103.1 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.1641/42.5, allocations: 77.72 MB / 9.883 GB, free: 61.53 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/42.5, allocations: 0 / 9.883 GB, free: 61.53 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.09062/42.59, allocations: 46.17 MB / 9.928 GB, free: 27.86 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0606/42.66, allocations: 7.423 MB / 9.935 GB, free: 22.61 MB / 1.042 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]