Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.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: "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Basic,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Basic,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Basic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001847/0.001847, allocations: 183.1 kB / 498.1 MB, free: 5.73 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.48/1.48, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.00103/0.00103, allocations: 99.31 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003559, allocations: 10.91 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.272, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9812/1.253, allocations: 462.2 MB / 1.674 GB, free: 14.92 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/1.254, allocations: 95.14 kB / 1.674 GB, free: 14.87 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 23.71/24.96, allocations: 6.501 GB / 8.175 GB, free: 110.8 MB / 1.417 GB Notification: Performance of FrontEnd: time 2.625e-06/24.96, allocations: 0 / 8.175 GB, free: 110.8 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.004383/24.97, allocations: 450.9 kB / 8.176 GB, free: 110.7 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.09038/25.06, allocations: 20.66 MB / 8.196 GB, free: 103.5 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/25.06, allocations: 6.938 kB / 8.196 GB, free: 103.5 MB / 1.417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00715/25.06, allocations: 1.043 MB / 8.197 GB, free: 103.5 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01877/25.08, allocations: 2.554 MB / 8.199 GB, free: 102.5 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.082/25.17, allocations: 22.02 MB / 8.221 GB, free: 100.1 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001318/25.17, allocations: 0.6901 MB / 8.222 GB, free: 100 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006628/25.17, allocations: 0.9668 MB / 8.222 GB, free: 100 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05838/25.23, allocations: 16.04 MB / 8.238 GB, free: 99.23 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006715/25.23, allocations: 18.97 kB / 8.238 GB, free: 99.23 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004864/25.24, allocations: 332.8 kB / 8.238 GB, free: 99.23 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005434/25.24, allocations: 363.5 kB / 8.239 GB, free: 99.21 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04039/25.28, allocations: 20.31 MB / 8.259 GB, free: 99.15 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 0.159/25.44, allocations: 78.97 MB / 8.336 GB, free: 67.23 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02364/25.46, allocations: 12.98 MB / 8.348 GB, free: 66.76 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.08423/25.55, allocations: 34.32 MB / 8.382 GB, free: 58.22 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02046/25.57, allocations: 9.78 MB / 8.392 GB, free: 58.04 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04511/25.61, allocations: 14.85 MB / 8.406 GB, free: 57.5 MB / 1.417 GB Notification: Performance of pre-optimization done (n=637): time 7.163e-05/25.61, allocations: 0 / 8.406 GB, free: 57.5 MB / 1.417 GB Notification: Performance of matching and sorting (n=955): time 2.374/27.99, allocations: 319.4 MB / 8.718 GB, free: 127.7 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.01887/28, allocations: 6.379 MB / 8.724 GB, free: 127.2 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03397/28.04, allocations: 14.37 MB / 8.738 GB, free: 126.5 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.004672/28.04, allocations: 254.7 kB / 8.738 GB, free: 126.5 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.009131/28.05, allocations: 7.239 MB / 8.746 GB, free: 126.2 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.00954/28.06, allocations: 3.382 MB / 8.749 GB, free: 125.8 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003695/28.07, allocations: 209.2 kB / 8.749 GB, free: 125.8 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.0008681/28.07, allocations: 0.7537 MB / 8.75 GB, free: 125.5 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03063/28.1, allocations: 18.62 MB / 8.768 GB, free: 125.5 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03257/28.13, allocations: 21.68 MB / 8.789 GB, free: 122.3 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0348/28.16, allocations: 19.98 MB / 8.809 GB, free: 122.1 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002077/28.16, allocations: 14.97 kB / 8.809 GB, free: 122.1 MB / 1.432 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 0.5959/28.76, allocations: 148 MB / 8.953 GB, free: 118 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 0.006659/28.77, allocations: 32.04 MB / 8.984 GB, free: 84.42 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002334/28.77, allocations: 46.44 kB / 8.985 GB, free: 84.42 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5942/29.36, allocations: 153 MB / 9.134 GB, free: 3.031 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02039/29.38, allocations: 3.493 MB / 9.137 GB, free: 15.72 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318/30.7, allocations: 79.01 MB / 9.215 GB, free: 165.5 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09543/30.8, allocations: 6.717 MB / 9.221 GB, free: 165.5 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008366/30.8, allocations: 1.387 MB / 9.222 GB, free: 165.5 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/30.8, allocations: 8.094 kB / 9.222 GB, free: 165.5 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6077/31.41, allocations: 146.6 MB / 9.366 GB, free: 163.7 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002301/31.41, allocations: 46.55 kB / 9.366 GB, free: 163.7 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5948/32.01, allocations: 152.8 MB / 9.515 GB, free: 161.1 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01779/32.02, allocations: 3.458 MB / 9.518 GB, free: 161.1 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1606/32.19, allocations: 86.42 MB / 9.603 GB, free: 102.4 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.092/32.28, allocations: 6.699 MB / 9.609 GB, free: 95.99 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007097/32.28, allocations: 1.339 MB / 9.61 GB, free: 94.74 MB / 1.479 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (991): * Single equations (assignments): 973 * 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 {33 119,33 119} Notification: Performance of prepare postOptimizeDAE: time 0.02029/32.3, allocations: 4.04 MB / 9.614 GB, free: 92.29 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008123/32.31, allocations: 1.499 MB / 9.616 GB, free: 91.6 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2123/32.53, allocations: 63.29 MB / 9.678 GB, free: 40.68 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414/33.94, allocations: 70.35 MB / 9.746 GB, free: 142.2 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001505/33.94, allocations: 29.62 kB / 9.746 GB, free: 142.2 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2119/34.15, allocations: 69.59 MB / 9.814 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3966/34.55, allocations: 164.4 MB / 9.975 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001271/34.55, allocations: 2.562 kB / 9.975 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01182/34.56, allocations: 2.003 MB / 9.977 GB, free: 135.2 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3402/34.9, allocations: 91.73 MB / 10.07 GB, free: 134.4 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004693/34.91, allocations: 0.6269 MB / 10.07 GB, free: 134.4 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1326/35.04, allocations: 74.08 MB / 10.14 GB, free: 119.8 MB / 1.479 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.01716/35.06, allocations: 6.166 MB / 10.15 GB, free: 114.8 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2466/35.3, allocations: 100.4 MB / 10.24 GB, free: 33.26 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02346/35.33, allocations: 6.555 MB / 10.25 GB, free: 27.23 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01019/35.34, allocations: 228 kB / 10.25 GB, free: 27.01 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05799/35.39, allocations: 3.677 MB / 10.25 GB, free: 23.36 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00537/35.4, allocations: 0.9561 MB / 10.25 GB, free: 22.4 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003958/35.4, allocations: 0.7047 MB / 10.26 GB, free: 21.7 MB / 1.479 GB Notification: Performance of sorting global known variables: time 1.054/36.46, allocations: 11.04 MB / 10.27 GB, free: 155.5 MB / 1.479 GB Notification: Performance of sort global known variables: time 1.443e-06/36.46, allocations: 0 / 10.27 GB, free: 155.5 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.1245/36.58, allocations: 43.5 MB / 10.31 GB, free: 155.5 MB / 1.479 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 (635): * Single equations (assignments): 612 * 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 {33 118,62 219} Notification: Performance of Backend phase and start with SimCode phase: time 0.2798/36.86, allocations: 105.6 MB / 10.41 GB, free: 151.9 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.1516/37.01, allocations: 77.97 MB / 10.49 GB, free: 150.5 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/37.01, allocations: 2.641 kB / 10.49 GB, free: 150.5 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.08594/37.1, allocations: 46.26 MB / 10.53 GB, free: 148.1 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04903/37.15, allocations: 7.416 MB / 10.54 GB, free: 147.8 MB / 1.479 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/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]