Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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) 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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified1") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.71/1.71, allocations: 297.8 MB / 313.7 MB, free: 116 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009468/0.0009468, allocations: 176.5 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.2 MB / 0.6626 GB, free: 4.27 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008004/0.0008003, allocations: 96.59 kB / 0.7808 GB, free: 50.17 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004717/0.0004718, allocations: 12 kB / 0.9088 GB, free: 2.859 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7728/0.7732, allocations: 120.3 MB / 1.026 GB, free: 55.86 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9878/1.761, allocations: 454 MB / 1.47 GB, free: 240 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/1.762, allocations: 99.31 kB / 1.47 GB, free: 240 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 35.87/37.63, allocations: 8.712 GB / 10.18 GB, free: 86.56 MB / 1.245 GB Notification: Performance of FrontEnd: time 4.658e-06/37.63, allocations: 0 / 10.18 GB, free: 86.56 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.004492/37.64, allocations: 426.8 kB / 10.18 GB, free: 86.49 MB / 1.245 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.0925/37.73, allocations: 20.41 MB / 10.2 GB, free: 79.07 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/37.73, allocations: 8.688 kB / 10.2 GB, free: 79.07 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0181/37.75, allocations: 2.187 MB / 10.2 GB, free: 78.11 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07968/37.83, allocations: 21.87 MB / 10.23 GB, free: 75.03 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001639/37.83, allocations: 0.6829 MB / 10.23 GB, free: 75.01 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006501/37.83, allocations: 0.9572 MB / 10.23 GB, free: 75 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05097/37.89, allocations: 15.85 MB / 10.24 GB, free: 74.21 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007581/37.89, allocations: 22.03 kB / 10.24 GB, free: 74.2 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00525/37.89, allocations: 325 kB / 10.24 GB, free: 74.2 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005821/37.89, allocations: 366.5 kB / 10.24 GB, free: 74.19 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04502/37.94, allocations: 20.05 MB / 10.26 GB, free: 74.12 MB / 1.245 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.1741/38.11, allocations: 79.33 MB / 10.34 GB, free: 40.44 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02446/38.14, allocations: 12.21 MB / 10.35 GB, free: 39.96 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0176/38.15, allocations: 9.314 MB / 10.36 GB, free: 39.88 MB / 1.245 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.08638/38.24, allocations: 33.76 MB / 10.39 GB, free: 31.2 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01973/38.26, allocations: 9.477 MB / 10.4 GB, free: 31.02 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04681/38.31, allocations: 15.05 MB / 10.42 GB, free: 29.96 MB / 1.245 GB Notification: Performance of pre-optimization done (n=614): time 6.974e-05/38.31, allocations: 0 / 10.42 GB, free: 29.96 MB / 1.245 GB Notification: Performance of matching and sorting (n=908): time 2.283/40.59, allocations: 261.8 MB / 10.67 GB, free: 103 MB / 1.26 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.02415/40.61, allocations: 7.028 MB / 10.68 GB, free: 102.3 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04574/40.66, allocations: 15.8 MB / 10.7 GB, free: 101.5 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.00566/40.67, allocations: 243.2 kB / 10.7 GB, free: 101.5 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.01289/40.68, allocations: 7.191 MB / 10.7 GB, free: 100.3 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.01117/40.69, allocations: 3.219 MB / 10.71 GB, free: 98.72 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006157/40.7, allocations: 210.1 kB / 10.71 GB, free: 98.72 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.001177/40.7, allocations: 0.7448 MB / 10.71 GB, free: 98.4 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03528/40.73, allocations: 18.49 MB / 10.73 GB, free: 98.34 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03976/40.77, allocations: 21.55 MB / 10.75 GB, free: 95.06 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06762/40.84, allocations: 35.22 MB / 10.78 GB, free: 92.79 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/40.84, allocations: 19.62 kB / 10.78 GB, free: 92.79 MB / 1.26 GB Notification: Performance of matching and sorting (n=1424) (initialization): time 0.6298/41.47, allocations: 147.6 MB / 10.93 GB, free: 38.88 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001173/41.47, allocations: 1.718 MB / 10.93 GB, free: 36.61 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.619e-05/41.47, allocations: 56 kB / 10.93 GB, free: 36.56 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791/43.26, allocations: 149.3 MB / 11.07 GB, free: 125.2 MB / 1.292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02343/43.29, allocations: 3.745 MB / 11.08 GB, free: 125.2 MB / 1.292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1196/43.41, allocations: 55.63 MB / 11.13 GB, free: 118.1 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09282/43.5, allocations: 6.737 MB / 11.14 GB, free: 118.1 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00986/43.51, allocations: 1.392 MB / 11.14 GB, free: 118.1 MB / 1.292 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/43.51, allocations: 5.656 kB / 11.14 GB, free: 118.1 MB / 1.292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5738/44.08, allocations: 146 MB / 11.28 GB, free: 115 MB / 1.292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/44.08, allocations: 52.5 kB / 11.28 GB, free: 115 MB / 1.292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6019/44.68, allocations: 148.5 MB / 11.43 GB, free: 8.605 MB / 1.292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01762/44.7, allocations: 3.693 MB / 11.43 GB, free: 5.098 MB / 1.292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39/46.09, allocations: 59.43 MB / 11.49 GB, free: 151.6 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09227/46.18, allocations: 6.709 MB / 11.49 GB, free: 151.6 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009286/46.19, allocations: 1.348 MB / 11.5 GB, free: 151.6 MB / 1.323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * 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 (1064): * Single equations (assignments): 1046 * 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 {39 65,39 65} Notification: Performance of prepare postOptimizeDAE: time 0.02142/46.22, allocations: 4.012 MB / 11.5 GB, free: 151.4 MB / 1.323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009861/46.23, allocations: 1.483 MB / 11.5 GB, free: 151.4 MB / 1.323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.227/46.45, allocations: 62.81 MB / 11.56 GB, free: 150.5 MB / 1.323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2157/46.67, allocations: 69.86 MB / 11.63 GB, free: 150 MB / 1.323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0004236/46.67, allocations: 28.28 kB / 11.63 GB, free: 150 MB / 1.323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2163/46.88, allocations: 69.1 MB / 11.7 GB, free: 149.2 MB / 1.323 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 postOpt removeSimpleEquations (simulation): time 0.3629/47.25, allocations: 146.4 MB / 11.84 GB, free: 133 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001285/47.25, allocations: 0 / 11.84 GB, free: 133 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0122/47.26, allocations: 2.043 MB / 11.84 GB, free: 131.8 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3124/47.57, allocations: 91.48 MB / 11.93 GB, free: 53.98 MB / 1.323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005295/47.58, allocations: 0.624 MB / 11.93 GB, free: 53.36 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.311/48.89, allocations: 66.82 MB / 12 GB, free: 154.8 MB / 1.323 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.02092/48.91, allocations: 6.349 MB / 12 GB, free: 154.3 MB / 1.323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2881/49.2, allocations: 99.18 MB / 12.1 GB, free: 153.2 MB / 1.323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02653/49.22, allocations: 6.45 MB / 12.11 GB, free: 152.2 MB / 1.323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01129/49.24, allocations: 229 kB / 12.11 GB, free: 152.2 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05553/49.29, allocations: 3.668 MB / 12.11 GB, free: 152.2 MB / 1.323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00654/49.3, allocations: 0.9314 MB / 12.11 GB, free: 152.2 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005317/49.3, allocations: 0.6881 MB / 12.11 GB, free: 152.2 MB / 1.323 GB Notification: Performance of sorting global known variables: time 0.03175/49.33, allocations: 10.81 MB / 12.12 GB, free: 151.7 MB / 1.323 GB Notification: Performance of sort global known variables: time 5.81e-07/49.33, allocations: 0 / 12.12 GB, free: 151.7 MB / 1.323 GB Notification: Performance of remove unused functions: time 0.128/49.46, allocations: 43.52 MB / 12.17 GB, free: 151.7 MB / 1.323 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 (657): * Single equations (assignments): 634 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {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: 3 {36 81,1 1,66 190} Notification: Performance of Backend phase and start with SimCode phase: time 0.01369/49.48, allocations: 5.434 MB / 12.17 GB, free: 149.8 MB / 1.323 GB Notification: Performance of simCode: created initialization part: time 0.1556/49.63, allocations: 77.89 MB / 12.25 GB, free: 145.1 MB / 1.323 GB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/49.63, allocations: 0 / 12.25 GB, free: 145.1 MB / 1.323 GB Notification: Performance of simCode: created simulation system equations: time 0.09544/49.73, allocations: 46.25 MB / 12.29 GB, free: 119.9 MB / 1.323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07927/49.81, allocations: 7.445 MB / 12.3 GB, free: 115.8 MB / 1.323 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4558:9-4558:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]