Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified1.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: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified1,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified1,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.905/0.905, allocations: 143.3 MB / 158.3 MB, free: 5.812 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.001513/0.001513, allocations: 171.4 kB / 191.5 MB, free: 5.777 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.642/1.642, allocations: 223.2 MB / 447.7 MB, free: 4.797 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.00107/0.00107, allocations: 92.31 kB / 0.5187 GB, free: 1.156 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 267.1 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.0004631, allocations: 12 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2276, allocations: 82.79 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.458/1.686, allocations: 421.7 MB / 1.186 GB, free: 180.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004209/1.686, allocations: 98.64 kB / 1.186 GB, free: 180.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 39.22/40.91, allocations: 8.774 GB / 9.96 GB, free: 67.66 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.627e-06/40.91, allocations: 0 / 9.96 GB, free: 67.66 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003622/40.91, allocations: 427 kB / 9.96 GB, free: 67.57 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.087/41, allocations: 20.59 MB / 9.98 GB, free: 59.88 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/41, allocations: 10.84 kB / 9.98 GB, free: 59.88 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006706/41.01, allocations: 1.04 MB / 9.981 GB, free: 59.79 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01605/41.02, allocations: 2.185 MB / 9.984 GB, free: 58.81 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07444/41.1, allocations: 21.66 MB / 10 GB, free: 56.07 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001244/41.1, allocations: 0.6802 MB / 10.01 GB, free: 56.05 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006283/41.11, allocations: 0.962 MB / 10.01 GB, free: 56.04 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04548/41.15, allocations: 15.79 MB / 10.02 GB, free: 55.2 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000693/41.15, allocations: 22.16 kB / 10.02 GB, free: 55.19 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005302/41.16, allocations: 328.9 kB / 10.02 GB, free: 55.19 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004813/41.16, allocations: 373.8 kB / 10.02 GB, free: 55.17 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04194/41.2, allocations: 20.05 MB / 10.04 GB, free: 55.04 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.1624/41.36, allocations: 79.54 MB / 10.12 GB, free: 11.83 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02233/41.39, allocations: 12.21 MB / 10.13 GB, free: 1.266 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 1.137/42.52, allocations: 33.65 MB / 10.16 GB, free: 90.52 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02424/42.55, allocations: 9.45 MB / 10.17 GB, free: 90.34 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04712/42.59, allocations: 14.85 MB / 10.19 GB, free: 90.34 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=613): time 7.115e-05/42.59, allocations: 4.656 kB / 10.19 GB, free: 90.34 MB / 0.9792 GB Notification: Performance of matching and sorting (n=907): time 0.9712/43.57, allocations: 252.1 MB / 10.43 GB, free: 52.06 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1632/43.73, allocations: 63.03 MB / 10.5 GB, free: 2.707 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0401/43.77, allocations: 14.35 MB / 10.51 GB, free: 8.527 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.005976/43.78, allocations: 240.9 kB / 10.51 GB, free: 8.438 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01285/43.79, allocations: 7.211 MB / 10.52 GB, free: 5.68 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 1.025/44.81, allocations: 3.208 MB / 10.52 GB, free: 99.44 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006804/44.82, allocations: 210.2 kB / 10.52 GB, free: 99.44 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.001126/44.82, allocations: 0.7509 MB / 10.52 GB, free: 99.11 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03939/44.86, allocations: 18.38 MB / 10.54 GB, free: 99.09 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03896/44.9, allocations: 21.39 MB / 10.56 GB, free: 95.92 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03938/44.94, allocations: 19.72 MB / 10.58 GB, free: 95.73 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002181/44.94, allocations: 16.56 kB / 10.58 GB, free: 95.73 MB / 0.9948 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 0.6241/45.56, allocations: 146.4 MB / 10.72 GB, free: 94.43 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.008882/45.57, allocations: 35.31 MB / 10.76 GB, free: 57.29 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003024/45.57, allocations: 51.75 kB / 10.76 GB, free: 57.29 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769/47.34, allocations: 147.9 MB / 10.9 GB, free: 123.3 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02334/47.36, allocations: 3.634 MB / 10.91 GB, free: 123.3 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1639/47.53, allocations: 76.81 MB / 10.98 GB, free: 116.2 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09687/47.63, allocations: 6.742 MB / 10.99 GB, free: 116.2 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009727/47.64, allocations: 1.383 MB / 10.99 GB, free: 116.2 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/47.64, allocations: 4.094 kB / 10.99 GB, free: 116.2 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6238/48.26, allocations: 145.1 MB / 11.13 GB, free: 113.7 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/48.26, allocations: 50.28 kB / 11.13 GB, free: 113.7 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819/50.08, allocations: 147.7 MB / 11.27 GB, free: 137.1 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02488/50.1, allocations: 3.614 MB / 11.28 GB, free: 137.1 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2021/50.31, allocations: 81.06 MB / 11.36 GB, free: 132.6 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09934/50.4, allocations: 6.705 MB / 11.36 GB, free: 132.6 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01041/50.41, allocations: 1.342 MB / 11.36 GB, free: 132.6 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 {39 65,39 65} Notification: Performance of prepare postOptimizeDAE: time 0.02824/50.44, allocations: 4.018 MB / 11.37 GB, free: 132.4 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01436/50.46, allocations: 1.485 MB / 11.37 GB, free: 132.4 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2551/50.71, allocations: 61.79 MB / 11.43 GB, free: 131.5 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2511/50.96, allocations: 68.92 MB / 11.5 GB, free: 131 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003743/50.96, allocations: 31.56 kB / 11.5 GB, free: 131 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2231/51.19, allocations: 68.16 MB / 11.56 GB, free: 98.64 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.63/52.82, allocations: 144.9 MB / 11.71 GB, free: 132.4 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000135/52.82, allocations: 5.781 kB / 11.71 GB, free: 132.4 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01498/52.83, allocations: 2.052 MB / 11.71 GB, free: 132.4 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3664/53.2, allocations: 90.25 MB / 11.8 GB, free: 132 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005612/53.21, allocations: 0.6266 MB / 11.8 GB, free: 132 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1412/53.35, allocations: 72.29 MB / 11.87 GB, free: 121.5 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.0221/53.37, allocations: 6.357 MB / 11.87 GB, free: 120.9 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2738/53.64, allocations: 98.35 MB / 11.97 GB, free: 75.16 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02676/53.67, allocations: 6.463 MB / 11.98 GB, free: 71.25 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01281/53.68, allocations: 218.3 kB / 11.98 GB, free: 71.18 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05974/53.74, allocations: 3.668 MB / 11.98 GB, free: 67.7 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00785/53.75, allocations: 0.935 MB / 11.98 GB, free: 66.83 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005986/53.76, allocations: 0.6947 MB / 11.98 GB, free: 66.2 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.03239/53.79, allocations: 11.02 MB / 11.99 GB, free: 58.6 MB / 1.042 GB Notification: Performance of sort global known variables: time 6.31e-07/53.79, allocations: 4.5 kB / 11.99 GB, free: 58.6 MB / 1.042 GB Notification: Performance of remove unused functions: time 1.337/55.13, allocations: 43.49 MB / 12.03 GB, free: 138.9 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 {39 64,70 187} Notification: Performance of Backend phase and start with SimCode phase: time 0.3089/55.43, allocations: 104 MB / 12.14 GB, free: 135.4 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.172/55.61, allocations: 77.11 MB / 12.21 GB, free: 134 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/55.61, allocations: 3.688 kB / 12.21 GB, free: 134 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.1092/55.72, allocations: 45.88 MB / 12.26 GB, free: 131 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06964/55.79, allocations: 7.388 MB / 12.26 GB, free: 130.7 MB / 1.042 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]