Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified2") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.FlowSystem.Simplified2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.754/1.754, allocations: 297.8 MB / 313.7 MB, free: 128 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.001012/0.001012, allocations: 172.6 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.376/1.376, allocations: 223.2 MB / 0.6626 GB, free: 4.344 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.0008937/0.000894, allocations: 101.7 kB / 0.7808 GB, free: 50.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004115, allocations: 15.94 kB / 0.9088 GB, free: 2.887 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.774/0.7744, allocations: 120.3 MB / 1.026 GB, free: 55.8 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.906/1.68, allocations: 454.2 MB / 1.47 GB, free: 240 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/1.681, allocations: 103.3 kB / 1.47 GB, free: 240 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 35.7/37.38, allocations: 8.713 GB / 10.18 GB, free: 86.46 MB / 1.245 GB Notification: Performance of FrontEnd: time 4.859e-06/37.38, allocations: 0 / 10.18 GB, free: 86.46 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.005231/37.39, allocations: 426.7 kB / 10.18 GB, free: 86.38 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.09032/37.48, allocations: 20.42 MB / 10.2 GB, free: 78.96 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/37.48, allocations: 9.719 kB / 10.2 GB, free: 78.96 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/37.5, allocations: 2.183 MB / 10.21 GB, free: 78 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07098/37.57, allocations: 21.88 MB / 10.23 GB, free: 74.92 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/37.57, allocations: 0.6806 MB / 10.23 GB, free: 74.9 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005694/37.57, allocations: 0.9597 MB / 10.23 GB, free: 74.89 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04903/37.62, allocations: 15.86 MB / 10.24 GB, free: 74.1 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004603/37.62, allocations: 15.03 kB / 10.24 GB, free: 74.09 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00407/37.63, allocations: 327.3 kB / 10.24 GB, free: 74.09 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004048/37.63, allocations: 369.2 kB / 10.24 GB, free: 74.08 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04233/37.67, allocations: 20.06 MB / 10.26 GB, free: 74.01 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.1695/37.84, allocations: 79.34 MB / 10.34 GB, free: 40.37 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02306/37.86, allocations: 12.22 MB / 10.35 GB, free: 39.89 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0174/37.88, allocations: 9.32 MB / 10.36 GB, free: 39.8 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.08838/37.97, allocations: 33.77 MB / 10.4 GB, free: 31.13 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0201/37.99, allocations: 9.476 MB / 10.4 GB, free: 30.95 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04585/38.04, allocations: 15.06 MB / 10.42 GB, free: 29.56 MB / 1.245 GB Notification: Performance of pre-optimization done (n=614): time 7.106e-05/38.04, allocations: 3.234 kB / 10.42 GB, free: 29.56 MB / 1.245 GB Notification: Performance of matching and sorting (n=908): time 2.249/40.28, allocations: 259.4 MB / 10.67 GB, free: 102 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.02798/40.31, allocations: 7.01 MB / 10.68 GB, free: 101.3 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05175/40.36, allocations: 15.8 MB / 10.7 GB, free: 100.5 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.005631/40.37, allocations: 245.8 kB / 10.7 GB, free: 100.4 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.01283/40.38, allocations: 7.193 MB / 10.7 GB, free: 99.29 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.01137/40.39, allocations: 3.214 MB / 10.71 GB, free: 97.69 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005053/40.4, allocations: 211 kB / 10.71 GB, free: 97.69 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.001026/40.4, allocations: 0.7479 MB / 10.71 GB, free: 97.37 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03294/40.43, allocations: 18.49 MB / 10.72 GB, free: 97.31 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03664/40.47, allocations: 21.56 MB / 10.75 GB, free: 94.03 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06886/40.54, allocations: 35.22 MB / 10.78 GB, free: 91.75 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/40.54, allocations: 14.81 kB / 10.78 GB, free: 91.75 MB / 1.26 GB Notification: Performance of matching and sorting (n=1424) (initialization): time 0.5967/41.14, allocations: 147.6 MB / 10.92 GB, free: 31.57 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001374/41.14, allocations: 1.729 MB / 10.93 GB, free: 29.3 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002167/41.14, allocations: 48.75 kB / 10.93 GB, free: 29.25 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843/42.98, allocations: 148.4 MB / 11.07 GB, free: 124.2 MB / 1.292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02157/43, allocations: 3.743 MB / 11.07 GB, free: 124.2 MB / 1.292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.109/43.11, allocations: 55.01 MB / 11.13 GB, free: 117.1 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09524/43.21, allocations: 6.741 MB / 11.13 GB, free: 117.1 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007812/43.21, allocations: 1.391 MB / 11.14 GB, free: 117.1 MB / 1.292 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/43.21, allocations: 6.641 kB / 11.14 GB, free: 117.1 MB / 1.292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5736/43.79, allocations: 146 MB / 11.28 GB, free: 113.9 MB / 1.292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004245/43.79, allocations: 49.44 kB / 11.28 GB, free: 113.9 MB / 1.292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5637/44.35, allocations: 148.3 MB / 11.42 GB, free: 3.402 MB / 1.292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01905/44.37, allocations: 3.699 MB / 11.43 GB, free: 15.89 MB / 1.307 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361/45.73, allocations: 58.88 MB / 11.48 GB, free: 151.2 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09484/45.83, allocations: 6.71 MB / 11.49 GB, free: 151.2 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009735/45.84, allocations: 1.346 MB / 11.49 GB, free: 151.2 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 {14 90,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.02278/45.86, allocations: 4.011 MB / 11.5 GB, free: 151.1 MB / 1.323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01115/45.87, allocations: 1.484 MB / 11.5 GB, free: 151.1 MB / 1.323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2373/46.11, allocations: 62.82 MB / 11.56 GB, free: 150.2 MB / 1.323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2298/46.34, allocations: 69.92 MB / 11.63 GB, free: 149.6 MB / 1.323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002909/46.34, allocations: 27.25 kB / 11.63 GB, free: 149.6 MB / 1.323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2149/46.55, allocations: 69.15 MB / 11.7 GB, free: 148.8 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.3205/46.87, allocations: 146.6 MB / 11.84 GB, free: 129.2 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001246/46.87, allocations: 0 / 11.84 GB, free: 129.2 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01196/46.89, allocations: 2.039 MB / 11.84 GB, free: 127.9 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3185/47.2, allocations: 90.92 MB / 11.93 GB, free: 49.24 MB / 1.323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005619/47.21, allocations: 0.6164 MB / 11.93 GB, free: 48.62 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.405/48.62, allocations: 66.41 MB / 11.99 GB, free: 156.2 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.02087/48.64, allocations: 6.312 MB / 12 GB, free: 155.7 MB / 1.323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.297/48.93, allocations: 101.8 MB / 12.1 GB, free: 154.5 MB / 1.323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02699/48.96, allocations: 6.444 MB / 12.11 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01184/48.97, allocations: 228.3 kB / 12.11 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05719/49.03, allocations: 3.664 MB / 12.11 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006645/49.04, allocations: 0.9367 MB / 12.11 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005568/49.04, allocations: 0.6876 MB / 12.11 GB, free: 153.6 MB / 1.323 GB Notification: Performance of sorting global known variables: time 0.0336/49.08, allocations: 10.81 MB / 12.12 GB, free: 153.1 MB / 1.323 GB Notification: Performance of sort global known variables: time 6.72e-07/49.08, allocations: 0 / 12.12 GB, free: 153.1 MB / 1.323 GB Notification: Performance of remove unused functions: time 0.1244/49.2, allocations: 43.52 MB / 12.16 GB, free: 153.1 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 {14 103,1 1,44 212} Notification: Performance of Backend phase and start with SimCode phase: time 0.01418/49.21, allocations: 5.436 MB / 12.17 GB, free: 151.2 MB / 1.323 GB Notification: Performance of simCode: created initialization part: time 0.1432/49.36, allocations: 76.29 MB / 12.24 GB, free: 144.6 MB / 1.323 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/49.36, allocations: 2.531 kB / 12.24 GB, free: 144.6 MB / 1.323 GB Notification: Performance of simCode: created simulation system equations: time 0.08993/49.45, allocations: 45.59 MB / 12.29 GB, free: 119.4 MB / 1.323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06924/49.52, allocations: 7.442 MB / 12.3 GB, free: 115.3 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]