Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified2",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.8616/0.8616, allocations: 143.3 MB / 158.3 MB, free: 5.781 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.001243/0.001243, allocations: 187.4 kB / 191.5 MB, free: 5.754 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.674/1.674, allocations: 223.1 MB / 447.7 MB, free: 4.801 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.001059/0.001059, allocations: 84.33 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001928/0.001928, allocations: 278.1 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004355/0.0004355, allocations: 14.38 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1999, allocations: 82.8 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.508/1.708, allocations: 421.9 MB / 1.186 GB, free: 194.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.708, allocations: 104.8 kB / 1.186 GB, free: 194.8 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 38.96/40.67, allocations: 8.775 GB / 9.961 GB, free: 52.44 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.607e-06/40.67, allocations: 2.781 kB / 9.961 GB, free: 52.44 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.004988/40.67, allocations: 425 kB / 9.961 GB, free: 52.37 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.09486/40.77, allocations: 20.59 MB / 9.981 GB, free: 44.95 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/40.77, allocations: 11.38 kB / 9.981 GB, free: 44.95 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007777/40.78, allocations: 1.047 MB / 9.982 GB, free: 44.86 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01939/40.8, allocations: 2.186 MB / 9.985 GB, free: 43.9 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08332/40.88, allocations: 21.67 MB / 10.01 GB, free: 41.47 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001278/40.88, allocations: 0.68 MB / 10.01 GB, free: 41.46 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006279/40.89, allocations: 0.9635 MB / 10.01 GB, free: 41.44 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04521/40.93, allocations: 15.81 MB / 10.02 GB, free: 40.65 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004552/40.93, allocations: 11.28 kB / 10.02 GB, free: 40.65 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004375/40.94, allocations: 328.8 kB / 10.02 GB, free: 40.65 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005004/40.94, allocations: 366.2 kB / 10.02 GB, free: 40.64 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04248/40.98, allocations: 20.06 MB / 10.04 GB, free: 40.57 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.159/41.14, allocations: 79.53 MB / 10.12 GB, free: 6.938 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02207/41.16, allocations: 12.21 MB / 10.13 GB, free: 6.453 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 0.07864/41.24, allocations: 33.67 MB / 10.17 GB, free: 13.89 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01813/41.26, allocations: 9.46 MB / 10.17 GB, free: 13.71 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04564/41.3, allocations: 14.85 MB / 10.19 GB, free: 12.8 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=613): time 5.98e-05/41.3, allocations: 0 / 10.19 GB, free: 12.8 MB / 0.9792 GB Notification: Performance of matching and sorting (n=907): time 2.027/43.33, allocations: 252.9 MB / 10.44 GB, free: 78.04 MB / 0.9948 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.0221/43.35, allocations: 6.463 MB / 10.44 GB, free: 77.37 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04196/43.4, allocations: 14.35 MB / 10.46 GB, free: 76.64 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.006575/43.4, allocations: 244.2 kB / 10.46 GB, free: 76.61 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01198/43.41, allocations: 7.203 MB / 10.46 GB, free: 75.45 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0123/43.43, allocations: 3.218 MB / 10.47 GB, free: 73.84 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006763/43.43, allocations: 208.8 kB / 10.47 GB, free: 73.84 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.00117/43.43, allocations: 0.7482 MB / 10.47 GB, free: 73.52 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0339/43.47, allocations: 18.38 MB / 10.49 GB, free: 73.46 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03743/43.51, allocations: 21.39 MB / 10.51 GB, free: 70.18 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03726/43.54, allocations: 19.73 MB / 10.53 GB, free: 69.85 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001705/43.54, allocations: 15.75 kB / 10.53 GB, free: 69.85 MB / 0.9948 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 1.661/45.2, allocations: 146.5 MB / 10.67 GB, free: 84.36 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.009282/45.21, allocations: 35.29 MB / 10.7 GB, free: 47.43 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003506/45.21, allocations: 50.22 kB / 10.7 GB, free: 47.43 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6102/45.82, allocations: 147.1 MB / 10.85 GB, free: 46.18 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02138/45.85, allocations: 3.634 MB / 10.85 GB, free: 46.14 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1536/46, allocations: 76.35 MB / 10.93 GB, free: 37.8 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1005/46.1, allocations: 6.734 MB / 10.93 GB, free: 34.16 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009438/46.11, allocations: 1.391 MB / 10.93 GB, free: 33.14 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/46.11, allocations: 4 kB / 10.93 GB, free: 33.13 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.787/47.9, allocations: 145.2 MB / 11.07 GB, free: 107.5 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002838/47.9, allocations: 53.66 kB / 11.07 GB, free: 107.5 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6083/48.5, allocations: 147.4 MB / 11.22 GB, free: 106 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01926/48.52, allocations: 3.607 MB / 11.22 GB, free: 106 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1605/48.68, allocations: 80.68 MB / 11.3 GB, free: 79.37 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09955/48.78, allocations: 6.713 MB / 11.31 GB, free: 72.89 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01015/48.79, allocations: 1.34 MB / 11.31 GB, free: 71.64 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 {14 90,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.02525/48.82, allocations: 4.01 MB / 11.31 GB, free: 69.21 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01344/48.83, allocations: 1.492 MB / 11.31 GB, free: 68.51 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2271/49.06, allocations: 61.78 MB / 11.37 GB, free: 18.63 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436/50.5, allocations: 69 MB / 11.44 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001885/50.5, allocations: 29.66 kB / 11.44 GB, free: 105.5 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2224/50.72, allocations: 68.24 MB / 11.51 GB, free: 104.7 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3714/51.09, allocations: 145 MB / 11.65 GB, free: 98.61 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001314/51.09, allocations: 0.7188 kB / 11.65 GB, free: 98.61 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01358/51.1, allocations: 2.062 MB / 11.65 GB, free: 98.6 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.335/51.44, allocations: 89.72 MB / 11.74 GB, free: 50.72 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006324/51.45, allocations: 0.6178 MB / 11.74 GB, free: 50.1 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413/52.86, allocations: 72.03 MB / 11.81 GB, free: 110.1 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.02276/52.88, allocations: 6.317 MB / 11.82 GB, free: 109.6 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2839/53.17, allocations: 98.31 MB / 11.91 GB, free: 108.3 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02657/53.19, allocations: 6.458 MB / 11.92 GB, free: 107.8 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01298/53.21, allocations: 223.3 kB / 11.92 GB, free: 107.8 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.06237/53.27, allocations: 3.665 MB / 11.92 GB, free: 107.8 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007894/53.28, allocations: 0.9466 MB / 11.92 GB, free: 107.7 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00587/53.28, allocations: 0.6844 MB / 11.92 GB, free: 107.7 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0371/53.32, allocations: 11.02 MB / 11.94 GB, free: 107.3 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.223e-06/53.32, allocations: 1.125 kB / 11.94 GB, free: 107.3 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1485/53.47, allocations: 43.49 MB / 11.98 GB, free: 107.3 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 {14 89,44 213} Notification: Performance of Backend phase and start with SimCode phase: time 0.2766/53.74, allocations: 103.8 MB / 12.08 GB, free: 50.24 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 1.219/54.96, allocations: 78.57 MB / 12.16 GB, free: 117.2 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/54.96, allocations: 3.812 kB / 12.16 GB, free: 117.2 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.1064/55.07, allocations: 45.37 MB / 12.2 GB, free: 115.1 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05741/55.13, allocations: 7.4 MB / 12.21 GB, free: 114.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]