Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.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.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.585/2.585, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001179/0.001179, allocations: 181.1 kB / 498.1 MB, free: 5.695 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.629/1.629, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.001528/0.001528, allocations: 108.8 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005585/0.0005589, allocations: 14.03 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3728, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.333/1.706, allocations: 462.3 MB / 1.674 GB, free: 15.04 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/1.706, allocations: 98.78 kB / 1.674 GB, free: 14.99 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 35.79/37.5, allocations: 8.791 GB / 10.47 GB, free: 97.27 MB / 1.417 GB Notification: Performance of FrontEnd: time 1.733e-06/37.5, allocations: 3.156 kB / 10.47 GB, free: 97.27 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.003906/37.5, allocations: 444.8 kB / 10.47 GB, free: 97.13 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.0925/37.59, allocations: 20.63 MB / 10.49 GB, free: 89.19 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 7.273e-05/37.59, allocations: 11.84 kB / 10.49 GB, free: 89.18 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02035/37.61, allocations: 2.551 MB / 10.49 GB, free: 88.18 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09034/37.7, allocations: 21.95 MB / 10.51 GB, free: 80.09 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002073/37.71, allocations: 0.678 MB / 10.51 GB, free: 79.79 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009464/37.71, allocations: 0.9648 MB / 10.51 GB, free: 79.47 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05586/37.77, allocations: 15.9 MB / 10.53 GB, free: 66.9 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000548/37.77, allocations: 11.84 kB / 10.53 GB, free: 66.89 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005391/37.78, allocations: 324 kB / 10.53 GB, free: 66.57 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004635/37.78, allocations: 375.2 kB / 10.53 GB, free: 66.2 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04201/37.82, allocations: 20.23 MB / 10.55 GB, free: 45.96 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 1.865/39.68, allocations: 79.78 MB / 10.63 GB, free: 92.68 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02524/39.71, allocations: 12.39 MB / 10.64 GB, free: 92.22 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.09693/39.81, allocations: 33.74 MB / 10.67 GB, free: 84.03 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02195/39.83, allocations: 9.541 MB / 10.68 GB, free: 83.86 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04855/39.88, allocations: 14.85 MB / 10.69 GB, free: 83.86 MB / 1.417 GB Notification: Performance of pre-optimization done (n=613): time 7.267e-05/39.88, allocations: 0 / 10.69 GB, free: 83.86 MB / 1.417 GB Notification: Performance of matching and sorting (n=907): time 1.114/40.99, allocations: 252.5 MB / 10.94 GB, free: 68.63 MB / 1.417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1732/41.16, allocations: 62.99 MB / 11 GB, free: 59.34 MB / 1.417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04763/41.21, allocations: 14.41 MB / 11.02 GB, free: 51.55 MB / 1.417 GB Notification: Performance of collectPreVariables (initialization): time 0.007181/41.22, allocations: 242.7 kB / 11.02 GB, free: 51.46 MB / 1.417 GB Notification: Performance of collectInitialEqns (initialization): time 0.01344/41.23, allocations: 7.242 MB / 11.02 GB, free: 49.33 MB / 1.417 GB Notification: Performance of collectInitialBindings (initialization): time 0.01285/41.25, allocations: 3.208 MB / 11.03 GB, free: 47.25 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007066/41.25, allocations: 210.5 kB / 11.03 GB, free: 47.2 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.001163/41.25, allocations: 0.7456 MB / 11.03 GB, free: 46.76 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03549/41.29, allocations: 18.46 MB / 11.05 GB, free: 37.2 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03917/41.33, allocations: 21.47 MB / 11.07 GB, free: 23.95 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03291/41.36, allocations: 19.79 MB / 11.09 GB, free: 11.18 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001204/41.36, allocations: 17.41 kB / 11.09 GB, free: 11.16 MB / 1.417 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 2.161/43.52, allocations: 146.6 MB / 11.23 GB, free: 130 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.00863/43.53, allocations: 35.43 MB / 11.26 GB, free: 93.06 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003001/43.53, allocations: 52.88 kB / 11.26 GB, free: 93.06 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5956/44.13, allocations: 147.9 MB / 11.41 GB, free: 90.95 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02181/44.15, allocations: 3.678 MB / 11.41 GB, free: 90.91 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1558/44.31, allocations: 76.79 MB / 11.49 GB, free: 83.44 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1001/44.41, allocations: 6.769 MB / 11.49 GB, free: 82.38 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01011/44.42, allocations: 1.384 MB / 11.5 GB, free: 82.38 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/44.42, allocations: 3.281 kB / 11.5 GB, free: 82.38 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6124/45.03, allocations: 145.3 MB / 11.64 GB, free: 6.621 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003418/45.03, allocations: 55.98 kB / 11.64 GB, free: 6.566 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024/47.05, allocations: 147.7 MB / 11.78 GB, free: 182.1 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0201/47.07, allocations: 3.653 MB / 11.78 GB, free: 182.1 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1828/47.26, allocations: 81.06 MB / 11.86 GB, free: 177.6 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09701/47.35, allocations: 6.745 MB / 11.87 GB, free: 177.6 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01171/47.37, allocations: 1.344 MB / 11.87 GB, free: 177.6 MB / 1.51 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.02819/47.39, allocations: 4.015 MB / 11.88 GB, free: 177.4 MB / 1.51 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01277/47.41, allocations: 1.5 MB / 11.88 GB, free: 177.4 MB / 1.51 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2294/47.64, allocations: 61.96 MB / 11.94 GB, free: 176.3 MB / 1.51 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2234/47.86, allocations: 69.08 MB / 12.01 GB, free: 175.5 MB / 1.51 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002094/47.86, allocations: 27.47 kB / 12.01 GB, free: 175.5 MB / 1.51 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.216/48.08, allocations: 68.32 MB / 12.07 GB, free: 158 MB / 1.51 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3327/48.41, allocations: 145.2 MB / 12.21 GB, free: 50.96 MB / 1.51 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001343/48.41, allocations: 4.578 kB / 12.21 GB, free: 50.95 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01316/48.42, allocations: 2.089 MB / 12.22 GB, free: 48.93 MB / 1.51 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734/50.16, allocations: 90.25 MB / 12.3 GB, free: 182.2 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005135/50.16, allocations: 0.6192 MB / 12.3 GB, free: 182.2 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1372/50.3, allocations: 72.29 MB / 12.38 GB, free: 173.5 MB / 1.51 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.02197/50.32, allocations: 6.362 MB / 12.38 GB, free: 172.9 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.269/50.59, allocations: 98.61 MB / 12.48 GB, free: 171.3 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02708/50.62, allocations: 6.464 MB / 12.48 GB, free: 171.2 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01021/50.63, allocations: 222.4 kB / 12.48 GB, free: 171.2 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0584/50.68, allocations: 3.705 MB / 12.49 GB, free: 170.6 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005884/50.69, allocations: 0.942 MB / 12.49 GB, free: 170.6 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004581/50.7, allocations: 0.6881 MB / 12.49 GB, free: 170.6 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02915/50.72, allocations: 11.07 MB / 12.5 GB, free: 170.2 MB / 1.51 GB Notification: Performance of sort global known variables: time 1.904e-06/50.72, allocations: 0 / 12.5 GB, free: 170.2 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.1385/50.86, allocations: 43.5 MB / 12.54 GB, free: 170.2 MB / 1.51 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.01567/50.88, allocations: 5.578 MB / 12.55 GB, free: 167.8 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.1574/51.04, allocations: 77.36 MB / 12.62 GB, free: 133.9 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.665e-05/51.04, allocations: 0 / 12.62 GB, free: 133.9 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.09104/51.13, allocations: 45.97 MB / 12.67 GB, free: 108 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05604/51.18, allocations: 7.381 MB / 12.68 GB, free: 103.9 MB / 1.51 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]