Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.446/2.446, 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.001213/0.001214, allocations: 184.7 kB / 498.1 MB, free: 5.723 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.8/1.8, allocations: 223.2 MB / 0.7948 GB, free: 17.75 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.001309/0.001309, allocations: 99.77 kB / 0.9346 GB, free: 6.109 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.0003892, allocations: 7.344 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.392, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.387/1.779, allocations: 462.4 MB / 1.674 GB, free: 14.73 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/1.78, allocations: 98.45 kB / 1.675 GB, free: 14.68 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 35.9/37.68, allocations: 8.792 GB / 10.47 GB, free: 97 MB / 1.417 GB Notification: Performance of FrontEnd: time 2.485e-06/37.68, allocations: 0 / 10.47 GB, free: 97 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.00399/37.69, allocations: 444.9 kB / 10.47 GB, free: 96.87 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.1032/37.79, allocations: 20.64 MB / 10.49 GB, free: 88.92 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 7.004e-05/37.79, allocations: 11.38 kB / 10.49 GB, free: 88.91 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0237/37.81, allocations: 2.552 MB / 10.49 GB, free: 87.91 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08663/37.9, allocations: 21.94 MB / 10.51 GB, free: 83.47 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001363/37.9, allocations: 0.6846 MB / 10.51 GB, free: 83.16 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007292/37.91, allocations: 0.9574 MB / 10.51 GB, free: 82.85 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05399/37.96, allocations: 15.9 MB / 10.53 GB, free: 76.77 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005954/37.96, allocations: 7.938 kB / 10.53 GB, free: 76.76 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005056/37.97, allocations: 328 kB / 10.53 GB, free: 76.44 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000414/37.97, allocations: 363.8 kB / 10.53 GB, free: 76.11 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0399/38.01, allocations: 20.24 MB / 10.55 GB, free: 58.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 1.626/39.63, allocations: 79.78 MB / 10.63 GB, free: 121.4 MB / 1.432 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02952/39.66, allocations: 12.38 MB / 10.64 GB, free: 121 MB / 1.432 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.09335/39.76, allocations: 33.75 MB / 10.67 GB, free: 113 MB / 1.432 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02362/39.78, allocations: 9.557 MB / 10.68 GB, free: 112.9 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05211/39.83, allocations: 14.84 MB / 10.7 GB, free: 112.9 MB / 1.432 GB Notification: Performance of pre-optimization done (n=613): time 8.062e-05/39.83, allocations: 0 / 10.7 GB, free: 112.9 MB / 1.432 GB Notification: Performance of matching and sorting (n=907): time 1.01/40.84, allocations: 252.4 MB / 10.94 GB, free: 97.78 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.02247/40.87, allocations: 6.463 MB / 10.95 GB, free: 97.1 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04362/40.91, allocations: 14.41 MB / 10.96 GB, free: 96.37 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.006263/40.92, allocations: 244.4 kB / 10.96 GB, free: 96.34 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01298/40.93, allocations: 7.232 MB / 10.97 GB, free: 95.15 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.01216/40.94, allocations: 3.215 MB / 10.97 GB, free: 93.55 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00637/40.95, allocations: 211.1 kB / 10.97 GB, free: 93.55 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.001214/40.95, allocations: 0.7497 MB / 10.97 GB, free: 93.22 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03295/40.98, allocations: 18.46 MB / 10.99 GB, free: 93.16 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03871/41.02, allocations: 21.47 MB / 11.01 GB, free: 89.88 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03819/41.06, allocations: 19.8 MB / 11.03 GB, free: 80.52 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001558/41.06, allocations: 16 kB / 11.03 GB, free: 80.51 MB / 1.432 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 2.107/43.17, allocations: 146.6 MB / 11.17 GB, free: 138.6 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 0.008065/43.17, allocations: 35.43 MB / 11.21 GB, free: 101.7 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002855/43.18, allocations: 52.73 kB / 11.21 GB, free: 101.7 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6073/43.78, allocations: 147.1 MB / 11.35 GB, free: 101.6 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02456/43.81, allocations: 3.676 MB / 11.36 GB, free: 101.6 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1581/43.97, allocations: 76.35 MB / 11.43 GB, free: 94.39 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09995/44.07, allocations: 6.771 MB / 11.44 GB, free: 93.33 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009636/44.07, allocations: 1.382 MB / 11.44 GB, free: 93.33 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/44.07, allocations: 3.5 kB / 11.44 GB, free: 93.33 MB / 1.464 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6764/44.75, allocations: 145.3 MB / 11.58 GB, free: 73 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004136/44.75, allocations: 52 kB / 11.58 GB, free: 72.95 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129/46.88, allocations: 147.4 MB / 11.73 GB, free: 183.3 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01934/46.9, allocations: 3.651 MB / 11.73 GB, free: 183.3 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1873/47.09, allocations: 80.67 MB / 11.81 GB, free: 178.7 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09648/47.18, allocations: 6.741 MB / 11.81 GB, free: 178.7 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008812/47.19, allocations: 1.347 MB / 11.82 GB, free: 178.7 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 {14 90,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.02174/47.22, allocations: 4.013 MB / 11.82 GB, free: 178.6 MB / 1.51 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01154/47.23, allocations: 1.497 MB / 11.82 GB, free: 178.6 MB / 1.51 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2372/47.46, allocations: 61.95 MB / 11.88 GB, free: 177.7 MB / 1.51 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2273/47.69, allocations: 69.16 MB / 11.95 GB, free: 177.1 MB / 1.51 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002114/47.69, allocations: 30.91 kB / 11.95 GB, free: 177.1 MB / 1.51 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.214/47.91, allocations: 68.4 MB / 12.02 GB, free: 176.4 MB / 1.51 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3373/48.24, allocations: 145.2 MB / 12.16 GB, free: 129.3 MB / 1.51 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001151/48.24, allocations: 6 kB / 12.16 GB, free: 129.3 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01289/48.26, allocations: 2.088 MB / 12.16 GB, free: 128 MB / 1.51 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.332/48.59, allocations: 89.72 MB / 12.25 GB, free: 46.66 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005248/48.59, allocations: 0.6196 MB / 12.25 GB, free: 46.04 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.491/50.08, allocations: 72.03 MB / 12.32 GB, free: 194.2 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.021/50.11, allocations: 6.319 MB / 12.32 GB, free: 193.7 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2696/50.37, allocations: 98.58 MB / 12.42 GB, free: 192.4 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02837/50.4, allocations: 6.466 MB / 12.43 GB, free: 192.3 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01056/50.41, allocations: 232.9 kB / 12.43 GB, free: 192.3 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05724/50.47, allocations: 3.696 MB / 12.43 GB, free: 191.9 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005852/50.48, allocations: 0.9386 MB / 12.43 GB, free: 191.9 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004694/50.48, allocations: 0.6861 MB / 12.43 GB, free: 191.9 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02852/50.51, allocations: 11.07 MB / 12.44 GB, free: 191.5 MB / 1.51 GB Notification: Performance of sort global known variables: time 7.41e-07/50.51, allocations: 3.469 kB / 12.44 GB, free: 191.5 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.1401/50.65, allocations: 43.49 MB / 12.49 GB, free: 191.5 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 {14 89,44 213} Notification: Performance of Backend phase and start with SimCode phase: time 0.01453/50.67, allocations: 5.587 MB / 12.49 GB, free: 189.2 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.1537/50.82, allocations: 76.17 MB / 12.57 GB, free: 187.6 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/50.82, allocations: 0 / 12.57 GB, free: 187.6 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.08899/50.91, allocations: 45.46 MB / 12.61 GB, free: 168.9 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05002/50.96, allocations: 7.383 MB / 12.62 GB, free: 164.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]