Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic") translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.413/2.413, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 185 kB / 498.1 MB, free: 5.715 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.79/1.79, allocations: 223.2 MB / 0.7949 GB, free: 17.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009623/0.0009621, allocations: 106.5 kB / 0.9346 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003993/0.0003994, allocations: 15.42 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3616, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.329/1.691, allocations: 462.1 MB / 1.674 GB, free: 14.92 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/1.691, allocations: 96.89 kB / 1.674 GB, free: 14.87 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 27.51/29.2, allocations: 6.501 GB / 8.175 GB, free: 111.1 MB / 1.417 GB Notification: Performance of FrontEnd: time 2.965e-06/29.2, allocations: 0 / 8.175 GB, free: 111.1 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.004524/29.21, allocations: 451.4 kB / 8.176 GB, free: 111 MB / 1.417 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.09885/29.3, allocations: 20.66 MB / 8.196 GB, free: 103.8 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/29.3, allocations: 9.781 kB / 8.196 GB, free: 103.8 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02011/29.32, allocations: 2.549 MB / 8.198 GB, free: 102.9 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08166/29.41, allocations: 22.02 MB / 8.22 GB, free: 100.4 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001371/29.41, allocations: 0.6902 MB / 8.22 GB, free: 100.4 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006675/29.41, allocations: 0.9649 MB / 8.221 GB, free: 100.4 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05511/29.47, allocations: 16.04 MB / 8.237 GB, free: 99.61 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009025/29.47, allocations: 14.16 kB / 8.237 GB, free: 99.61 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005462/29.48, allocations: 330.1 kB / 8.237 GB, free: 99.61 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004942/29.48, allocations: 368.8 kB / 8.238 GB, free: 99.59 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0435/29.52, allocations: 20.31 MB / 8.258 GB, free: 99.53 MB / 1.417 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.1788/29.7, allocations: 78.97 MB / 8.335 GB, free: 67.61 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02638/29.73, allocations: 12.98 MB / 8.347 GB, free: 67.14 MB / 1.417 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.09254/29.82, allocations: 34.33 MB / 8.381 GB, free: 58.61 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02236/29.84, allocations: 9.782 MB / 8.39 GB, free: 58.42 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04672/29.89, allocations: 14.85 MB / 8.405 GB, free: 57.84 MB / 1.417 GB Notification: Performance of pre-optimization done (n=637): time 7.483e-05/29.89, allocations: 0 / 8.405 GB, free: 57.84 MB / 1.417 GB Notification: Performance of matching and sorting (n=955): time 2.529/32.42, allocations: 319.4 MB / 8.717 GB, free: 127.2 MB / 1.432 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.0193/32.44, allocations: 6.386 MB / 8.723 GB, free: 126.7 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03639/32.47, allocations: 14.37 MB / 8.737 GB, free: 126 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.005561/32.48, allocations: 252.7 kB / 8.737 GB, free: 126 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01095/32.49, allocations: 7.234 MB / 8.744 GB, free: 125.7 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.01269/32.5, allocations: 3.376 MB / 8.748 GB, free: 125.4 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007654/32.51, allocations: 214.5 kB / 8.748 GB, free: 125.4 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.001454/32.51, allocations: 0.7521 MB / 8.749 GB, free: 125.1 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03395/32.54, allocations: 18.62 MB / 8.767 GB, free: 125.1 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03475/32.58, allocations: 21.68 MB / 8.788 GB, free: 121.9 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03423/32.61, allocations: 19.98 MB / 8.808 GB, free: 121.7 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/32.61, allocations: 16.28 kB / 8.808 GB, free: 121.7 MB / 1.432 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 0.5963/33.21, allocations: 148 MB / 8.952 GB, free: 117.6 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 0.007306/33.22, allocations: 32.04 MB / 8.983 GB, free: 83.99 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002866/33.22, allocations: 46.12 kB / 8.983 GB, free: 83.99 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5876/33.81, allocations: 153 MB / 9.133 GB, free: 3.387 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02179/33.83, allocations: 3.489 MB / 9.136 GB, free: 80 kB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476/35.3, allocations: 79.01 MB / 9.213 GB, free: 165.4 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09785/35.4, allocations: 6.724 MB / 9.22 GB, free: 165.4 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00945/35.41, allocations: 1.387 MB / 9.221 GB, free: 165.4 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/35.41, allocations: 4.062 kB / 9.221 GB, free: 165.4 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6159/36.03, allocations: 146.6 MB / 9.365 GB, free: 163.5 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002841/36.03, allocations: 46.91 kB / 9.365 GB, free: 163.5 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5995/36.63, allocations: 152.8 MB / 9.514 GB, free: 161 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01999/36.65, allocations: 3.46 MB / 9.517 GB, free: 160.9 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1744/36.82, allocations: 86.41 MB / 9.602 GB, free: 102.8 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09478/36.92, allocations: 6.709 MB / 9.608 GB, free: 96.31 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008079/36.92, allocations: 1.336 MB / 9.609 GB, free: 95.05 MB / 1.479 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.01983/36.94, allocations: 4.028 MB / 9.613 GB, free: 92.61 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01003/36.95, allocations: 1.505 MB / 9.615 GB, free: 91.91 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2222/37.18, allocations: 63.29 MB / 9.677 GB, free: 41 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695/38.87, allocations: 70.36 MB / 9.745 GB, free: 142.2 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002439/38.87, allocations: 27.72 kB / 9.745 GB, free: 142.2 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2201/39.09, allocations: 69.59 MB / 9.813 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4297/39.52, allocations: 164.4 MB / 9.974 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001647/39.52, allocations: 3.562 kB / 9.974 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01293/39.53, allocations: 2 MB / 9.976 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3392/39.87, allocations: 91.73 MB / 10.07 GB, free: 134.4 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005195/39.88, allocations: 0.6291 MB / 10.07 GB, free: 134.4 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1357/40.01, allocations: 74.07 MB / 10.14 GB, free: 119.9 MB / 1.479 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.01854/40.03, allocations: 6.175 MB / 10.14 GB, free: 114.9 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2573/40.29, allocations: 100.4 MB / 10.24 GB, free: 33.46 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02836/40.32, allocations: 6.546 MB / 10.25 GB, free: 27.48 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01204/40.33, allocations: 235.9 kB / 10.25 GB, free: 27.25 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.06003/40.39, allocations: 3.674 MB / 10.25 GB, free: 23.61 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006474/40.4, allocations: 0.96 MB / 10.25 GB, free: 22.64 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004867/40.4, allocations: 0.6978 MB / 10.25 GB, free: 21.94 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.03283/40.44, allocations: 11.05 MB / 10.27 GB, free: 10.96 MB / 1.479 GB Notification: Performance of sort global known variables: time 8.61e-07/40.44, allocations: 0 / 10.27 GB, free: 10.96 MB / 1.479 GB Notification: Performance of remove unused functions: time 1.719/42.15, allocations: 43.5 MB / 10.31 GB, free: 156.2 MB / 1.479 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.01844/42.17, allocations: 5.57 MB / 10.31 GB, free: 154.4 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.1793/42.35, allocations: 77.96 MB / 10.39 GB, free: 153 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.726e-05/42.35, allocations: 4.781 kB / 10.39 GB, free: 153 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.1065/42.46, allocations: 46.26 MB / 10.43 GB, free: 150.8 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06125/42.52, allocations: 7.421 MB / 10.44 GB, free: 150.5 MB / 1.479 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]