Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.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.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8834/0.8834, allocations: 143.4 MB / 158.3 MB, free: 5.805 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.00136/0.00136, allocations: 177 kB / 191.5 MB, free: 5.75 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.513/1.513, allocations: 223.2 MB / 447.7 MB, free: 4.789 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.001173/0.001173, allocations: 88.39 kB / 0.5188 GB, free: 1.152 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001699/0.001699, allocations: 267.5 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004809/0.0004809, allocations: 11.75 kB / 0.6929 GB, free: 59.74 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1839, allocations: 82.8 MB / 0.7737 GB, free: 13.84 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.308/1.491, allocations: 421.7 MB / 1.186 GB, free: 263.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.492, allocations: 102.5 kB / 1.186 GB, free: 263.1 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 38.36/39.86, allocations: 8.774 GB / 9.96 GB, free: 64.03 MB / 0.9792 GB Notification: Performance of FrontEnd: time 3.366e-06/39.86, allocations: 0 / 9.96 GB, free: 64.03 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.004518/39.86, allocations: 425.5 kB / 9.96 GB, free: 63.96 MB / 0.9792 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.08779/39.95, allocations: 20.58 MB / 9.981 GB, free: 56.61 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/39.95, allocations: 11.72 kB / 9.981 GB, free: 56.61 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01707/39.97, allocations: 2.188 MB / 9.983 GB, free: 55.65 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07713/40.04, allocations: 21.66 MB / 10 GB, free: 53.22 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001383/40.04, allocations: 0.682 MB / 10 GB, free: 53.21 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006864/40.05, allocations: 0.9593 MB / 10.01 GB, free: 53.19 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06036/40.11, allocations: 15.8 MB / 10.02 GB, free: 52.4 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006288/40.11, allocations: 18.52 kB / 10.02 GB, free: 52.4 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004956/40.12, allocations: 323 kB / 10.02 GB, free: 52.4 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004635/40.12, allocations: 369.6 kB / 10.02 GB, free: 52.38 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04295/40.16, allocations: 20.06 MB / 10.04 GB, free: 52.32 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 removeSimpleEquations (simulation): time 0.1656/40.33, allocations: 79.53 MB / 10.12 GB, free: 18.81 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02056/40.35, allocations: 12.21 MB / 10.13 GB, free: 18.35 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.08807/40.44, allocations: 33.66 MB / 10.16 GB, free: 9.828 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02119/40.46, allocations: 9.462 MB / 10.17 GB, free: 9.648 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04962/40.51, allocations: 14.85 MB / 10.19 GB, free: 8.746 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=613): time 7.155e-05/40.51, allocations: 0 / 10.19 GB, free: 8.746 MB / 0.9792 GB Notification: Performance of matching and sorting (n=907): time 2.095/42.6, allocations: 252.1 MB / 10.43 GB, free: 77.52 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.172/42.77, allocations: 63.04 MB / 10.5 GB, free: 68.43 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0495/42.82, allocations: 14.34 MB / 10.51 GB, free: 67.69 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.006549/42.83, allocations: 248.5 kB / 10.51 GB, free: 67.66 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01512/42.85, allocations: 7.206 MB / 10.52 GB, free: 66.48 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.01293/42.86, allocations: 3.215 MB / 10.52 GB, free: 64.88 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007347/42.87, allocations: 208.5 kB / 10.52 GB, free: 64.88 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.001936/42.87, allocations: 0.7437 MB / 10.52 GB, free: 64.56 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03711/42.91, allocations: 18.38 MB / 10.54 GB, free: 64.5 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03786/42.94, allocations: 21.39 MB / 10.56 GB, free: 55.79 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03558/42.98, allocations: 19.73 MB / 10.58 GB, free: 45.41 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/42.98, allocations: 16 kB / 10.58 GB, free: 45.4 MB / 0.9948 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 1.762/44.74, allocations: 146.4 MB / 10.72 GB, free: 83.36 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.01011/44.75, allocations: 35.3 MB / 10.76 GB, free: 46.42 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000312/44.75, allocations: 51.44 kB / 10.76 GB, free: 46.42 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5956/45.35, allocations: 147.9 MB / 10.9 GB, free: 41.66 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02099/45.37, allocations: 3.64 MB / 10.9 GB, free: 40.51 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1556/45.52, allocations: 76.79 MB / 10.98 GB, free: 12.55 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09665/45.62, allocations: 6.735 MB / 10.99 GB, free: 6.062 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009124/45.63, allocations: 1.385 MB / 10.99 GB, free: 4.762 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/45.63, allocations: 5.219 kB / 10.99 GB, free: 4.758 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.799/47.43, allocations: 145.1 MB / 11.13 GB, free: 121.7 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003639/47.43, allocations: 52.39 kB / 11.13 GB, free: 121.7 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5958/48.02, allocations: 147.7 MB / 11.27 GB, free: 114.1 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01918/48.04, allocations: 3.616 MB / 11.28 GB, free: 113 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1584/48.2, allocations: 81.06 MB / 11.36 GB, free: 64 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09575/48.3, allocations: 6.706 MB / 11.36 GB, free: 57.52 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008395/48.31, allocations: 1.344 MB / 11.36 GB, free: 56.26 MB / 1.057 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 (1063): * Single equations (assignments): 1045 * 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.02197/48.33, allocations: 4.007 MB / 11.37 GB, free: 53.84 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01114/48.34, allocations: 1.489 MB / 11.37 GB, free: 53.14 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.325/49.66, allocations: 61.8 MB / 11.43 GB, free: 113.7 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2294/49.89, allocations: 68.92 MB / 11.5 GB, free: 113.1 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003169/49.89, allocations: 27.72 kB / 11.5 GB, free: 113.1 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2282/50.12, allocations: 68.17 MB / 11.56 GB, free: 112.4 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3549/50.48, allocations: 144.9 MB / 11.7 GB, free: 104.5 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000186/50.48, allocations: 3.797 kB / 11.7 GB, free: 104.5 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01325/50.49, allocations: 2.051 MB / 11.71 GB, free: 104.4 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.438/51.93, allocations: 90.25 MB / 11.79 GB, free: 115.5 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006254/51.94, allocations: 0.6175 MB / 11.8 GB, free: 115.5 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1578/52.09, allocations: 72.3 MB / 11.87 GB, free: 107.5 MB / 1.057 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.02161/52.11, allocations: 6.357 MB / 11.87 GB, free: 106.9 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2762/52.39, allocations: 98.35 MB / 11.97 GB, free: 105.3 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03677/52.43, allocations: 6.457 MB / 11.97 GB, free: 104.3 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01274/52.44, allocations: 225.4 kB / 11.97 GB, free: 104.3 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05968/52.5, allocations: 3.666 MB / 11.98 GB, free: 103.7 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006556/52.51, allocations: 0.9403 MB / 11.98 GB, free: 103.7 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004685/52.51, allocations: 0.69 MB / 11.98 GB, free: 103.7 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.02777/52.54, allocations: 11.02 MB / 11.99 GB, free: 103.3 MB / 1.057 GB Notification: Performance of sort global known variables: time 1.052e-06/52.54, allocations: 0 / 11.99 GB, free: 103.3 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.1365/52.68, allocations: 43.49 MB / 12.03 GB, free: 102 MB / 1.057 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 (659): * Single equations (assignments): 636 * 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 {39 64,70 187} Notification: Performance of Backend phase and start with SimCode phase: time 0.01598/52.69, allocations: 5.592 MB / 12.04 GB, free: 97.41 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.1563/52.85, allocations: 77.1 MB / 12.11 GB, free: 56.41 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/52.85, allocations: 4 kB / 12.11 GB, free: 56.41 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.09267/52.94, allocations: 45.89 MB / 12.16 GB, free: 22.68 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0559/53, allocations: 7.388 MB / 12.17 GB, free: 17.45 MB / 1.057 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]