Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9377/0.9377, allocations: 143.4 MB / 158.3 MB, free: 5.766 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.00119/0.00119, allocations: 176.7 kB / 191.5 MB, free: 5.766 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.483/1.483, allocations: 223.2 MB / 447.7 MB, free: 6.523 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.0009359/0.0009358, allocations: 88.27 kB / 0.5188 GB, free: 2.875 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001739/0.001739, allocations: 274.3 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004523/0.0004523, allocations: 12 kB / 0.6929 GB, free: 2.324 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4796, allocations: 82.79 MB / 0.7737 GB, free: 26.22 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.398/1.878, allocations: 421.9 MB / 1.186 GB, free: 257.1 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/1.878, allocations: 102.3 kB / 1.186 GB, free: 257.1 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 38.64/40.51, allocations: 8.775 GB / 9.961 GB, free: 68.02 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.707e-06/40.51, allocations: 3.031 kB / 9.961 GB, free: 68.02 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003732/40.52, allocations: 423.5 kB / 9.961 GB, free: 67.93 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.09207/40.61, allocations: 20.59 MB / 9.981 GB, free: 60.28 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/40.61, allocations: 7.781 kB / 9.981 GB, free: 60.28 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01701/40.63, allocations: 2.186 MB / 9.984 GB, free: 59.3 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07513/40.7, allocations: 21.67 MB / 10 GB, free: 56.56 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001229/40.7, allocations: 0.6809 MB / 10.01 GB, free: 56.54 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007194/40.71, allocations: 0.9563 MB / 10.01 GB, free: 56.53 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05559/40.77, allocations: 15.81 MB / 10.02 GB, free: 55.69 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006937/40.77, allocations: 16.69 kB / 10.02 GB, free: 55.68 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005831/40.77, allocations: 324.5 kB / 10.02 GB, free: 55.68 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004875/40.77, allocations: 371.6 kB / 10.02 GB, free: 55.66 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04103/40.81, allocations: 20.05 MB / 10.04 GB, free: 55.54 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.1762/40.99, allocations: 79.53 MB / 10.12 GB, free: 20.57 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.024/41.01, allocations: 12.22 MB / 10.13 GB, free: 14.99 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 evalFunc (simulation): time 0.08886/41.1, allocations: 33.67 MB / 10.16 GB, free: 13.27 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02257/41.13, allocations: 9.455 MB / 10.17 GB, free: 6.77 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 1.226/42.35, allocations: 16.47 MB / 10.19 GB, free: 89.7 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=613): time 8.321e-05/42.35, allocations: 2.469 kB / 10.19 GB, free: 89.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=907): time 0.9988/43.35, allocations: 252 MB / 10.44 GB, free: 75.01 MB / 0.9792 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.0221/43.37, allocations: 6.47 MB / 10.44 GB, free: 73.63 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04556/43.42, allocations: 14.35 MB / 10.46 GB, free: 65.87 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.006574/43.43, allocations: 243.6 kB / 10.46 GB, free: 65.77 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.01339/43.44, allocations: 7.197 MB / 10.46 GB, free: 63.42 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.01336/43.45, allocations: 3.214 MB / 10.47 GB, free: 61.07 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00779/43.46, allocations: 208.5 kB / 10.47 GB, free: 61.02 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.001234/43.46, allocations: 0.7525 MB / 10.47 GB, free: 60.44 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03248/43.49, allocations: 18.38 MB / 10.49 GB, free: 47.39 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03851/43.53, allocations: 21.39 MB / 10.51 GB, free: 30.45 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03683/43.57, allocations: 19.73 MB / 10.53 GB, free: 16.81 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001604/43.57, allocations: 19.94 kB / 10.53 GB, free: 16.79 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 1.73/45.3, allocations: 146.4 MB / 10.67 GB, free: 93.18 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.009724/45.31, allocations: 35.3 MB / 10.7 GB, free: 56.05 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002911/45.31, allocations: 49.81 kB / 10.7 GB, free: 56.05 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6505/45.96, allocations: 147.1 MB / 10.85 GB, free: 25.53 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.021/45.98, allocations: 3.636 MB / 10.85 GB, free: 22.08 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1673/46.15, allocations: 76.35 MB / 10.93 GB, free: 12.67 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1451/46.29, allocations: 6.735 MB / 10.93 GB, free: 6.176 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009532/46.3, allocations: 1.387 MB / 10.93 GB, free: 4.871 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/46.3, allocations: 4 kB / 10.93 GB, free: 4.867 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.878/48.18, allocations: 145.2 MB / 11.07 GB, free: 136.3 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003481/48.18, allocations: 57.66 kB / 11.07 GB, free: 136.3 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.589/48.77, allocations: 147.4 MB / 11.22 GB, free: 89.03 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01948/48.79, allocations: 3.605 MB / 11.22 GB, free: 85.61 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1578/48.95, allocations: 80.68 MB / 11.3 GB, free: 26.62 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09273/49.04, allocations: 6.715 MB / 11.31 GB, free: 20.14 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008935/49.05, allocations: 1.342 MB / 11.31 GB, free: 18.89 MB / 1.042 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 {14 90,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.02213/49.07, allocations: 4.01 MB / 11.31 GB, free: 16.46 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01301/49.09, allocations: 1.487 MB / 11.31 GB, free: 15.77 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.284/50.37, allocations: 61.78 MB / 11.37 GB, free: 130.6 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.234/50.6, allocations: 69 MB / 11.44 GB, free: 130 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002479/50.6, allocations: 27.56 kB / 11.44 GB, free: 130 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2186/50.82, allocations: 68.25 MB / 11.51 GB, free: 129.3 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3366/51.16, allocations: 145 MB / 11.65 GB, free: 70.84 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001347/51.16, allocations: 1.688 kB / 11.65 GB, free: 70.84 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01388/51.17, allocations: 2.052 MB / 11.65 GB, free: 68.87 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.487/52.66, allocations: 89.72 MB / 11.74 GB, free: 113.1 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00735/52.67, allocations: 0.6184 MB / 11.74 GB, free: 113.1 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2002/52.87, allocations: 72.04 MB / 11.81 GB, free: 104.9 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.02231/52.89, allocations: 6.317 MB / 11.82 GB, free: 104.3 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2835/53.17, allocations: 98.31 MB / 11.91 GB, free: 102.7 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02907/53.2, allocations: 6.458 MB / 11.92 GB, free: 102.6 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01537/53.22, allocations: 224.8 kB / 11.92 GB, free: 102.6 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0585/53.28, allocations: 3.668 MB / 11.92 GB, free: 102 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007158/53.28, allocations: 0.937 MB / 11.92 GB, free: 102 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006598/53.29, allocations: 0.6894 MB / 11.92 GB, free: 102 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.03133/53.32, allocations: 11.02 MB / 11.94 GB, free: 101.6 MB / 1.042 GB Notification: Performance of sort global known variables: time 6.01e-07/53.32, allocations: 0 / 11.94 GB, free: 101.6 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1417/53.46, allocations: 43.49 MB / 11.98 GB, free: 67.02 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 (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 {14 89,44 213} Notification: Performance of Backend phase and start with SimCode phase: time 0.01532/53.48, allocations: 5.588 MB / 11.98 GB, free: 62.43 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.1508/53.63, allocations: 75.92 MB / 12.06 GB, free: 15.29 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.81e-05/53.63, allocations: 4 kB / 12.06 GB, free: 15.29 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 1.262/54.89, allocations: 47.31 MB / 12.1 GB, free: 121.8 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06091/54.95, allocations: 7.394 MB / 12.11 GB, free: 121.4 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]