Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Basic.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.Basic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Basic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Basic",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.8756/0.8756, allocations: 143.4 MB / 158.3 MB, free: 5.785 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.001286/0.001286, allocations: 175.3 kB / 191.5 MB, free: 5.746 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.628/1.628, allocations: 223.2 MB / 447.7 MB, free: 4.824 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.001006/0.001006, allocations: 88.33 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001811/0.001811, allocations: 274.5 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005315/0.0005316, allocations: 13.25 kB / 0.6929 GB, free: 59.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2186, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.521/1.739, allocations: 421.6 MB / 1.185 GB, free: 263.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/1.74, allocations: 98.66 kB / 1.186 GB, free: 263.1 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 28.25/29.99, allocations: 6.484 GB / 7.67 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.025e-06/29.99, allocations: 3.938 kB / 7.67 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.004286/29.99, allocations: 435.6 kB / 7.67 GB, free: 12.61 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 2.049/32.04, allocations: 20.6 MB / 7.69 GB, free: 43.5 MB / 0.9637 GB Notification: Performance of prepare preOptimizeDAE: time 6.777e-05/32.04, allocations: 13.31 kB / 7.69 GB, free: 43.5 MB / 0.9637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008235/32.05, allocations: 1.042 MB / 7.691 GB, free: 43.42 MB / 0.9637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0204/32.07, allocations: 2.191 MB / 7.693 GB, free: 42.46 MB / 0.9637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08931/32.16, allocations: 21.73 MB / 7.715 GB, free: 40.46 MB / 0.9637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001495/32.16, allocations: 0.6877 MB / 7.715 GB, free: 40.44 MB / 0.9637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006951/32.17, allocations: 0.9722 MB / 7.716 GB, free: 40.43 MB / 0.9637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06045/32.23, allocations: 15.94 MB / 7.732 GB, free: 39.64 MB / 0.9637 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001072/32.23, allocations: 14.28 kB / 7.732 GB, free: 39.64 MB / 0.9637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006274/32.24, allocations: 326.3 kB / 7.732 GB, free: 39.64 MB / 0.9637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007429/32.24, allocations: 366.9 kB / 7.733 GB, free: 39.62 MB / 0.9637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05127/32.29, allocations: 20.14 MB / 7.752 GB, free: 39.56 MB / 0.9637 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.1838/32.47, allocations: 78.7 MB / 7.829 GB, free: 23.74 MB / 0.9793 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02575/32.5, allocations: 12.81 MB / 7.842 GB, free: 23.26 MB / 0.9793 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.08921/32.59, allocations: 34.26 MB / 7.875 GB, free: 14.75 MB / 0.9793 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02225/32.61, allocations: 9.669 MB / 7.884 GB, free: 14.59 MB / 0.9793 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04914/32.66, allocations: 14.85 MB / 7.899 GB, free: 14.3 MB / 0.9793 GB Notification: Performance of pre-optimization done (n=637): time 7.728e-05/32.66, allocations: 0 / 7.899 GB, free: 14.3 MB / 0.9793 GB Notification: Performance of matching and sorting (n=955): time 2.318/34.98, allocations: 322.6 MB / 8.214 GB, free: 83.26 MB / 1.011 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.02049/35, allocations: 6.389 MB / 8.22 GB, free: 82.63 MB / 1.011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04128/35.04, allocations: 14.31 MB / 8.234 GB, free: 81.96 MB / 1.011 GB Notification: Performance of collectPreVariables (initialization): time 0.005945/35.05, allocations: 255.1 kB / 8.234 GB, free: 81.93 MB / 1.011 GB Notification: Performance of collectInitialEqns (initialization): time 0.01399/35.06, allocations: 7.184 MB / 8.242 GB, free: 81.66 MB / 1.011 GB Notification: Performance of collectInitialBindings (initialization): time 0.016/35.08, allocations: 3.379 MB / 8.245 GB, free: 81.27 MB / 1.011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008865/35.09, allocations: 212 kB / 8.245 GB, free: 81.27 MB / 1.011 GB Notification: Performance of setup shared object (initialization): time 0.002032/35.09, allocations: 0.7562 MB / 8.246 GB, free: 80.94 MB / 1.011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05922/35.15, allocations: 18.54 MB / 8.264 GB, free: 80.88 MB / 1.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06401/35.21, allocations: 21.6 MB / 8.285 GB, free: 77.6 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06588/35.28, allocations: 19.9 MB / 8.304 GB, free: 77.27 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002667/35.28, allocations: 14.53 kB / 8.304 GB, free: 77.27 MB / 1.011 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 1.983/37.26, allocations: 147.9 MB / 8.449 GB, free: 92.14 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.01277/37.27, allocations: 31.93 MB / 8.48 GB, free: 58.8 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004629/37.27, allocations: 45.94 kB / 8.48 GB, free: 58.8 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6357/37.91, allocations: 153.1 MB / 8.629 GB, free: 58.64 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01996/37.93, allocations: 3.446 MB / 8.633 GB, free: 58.64 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1642/38.09, allocations: 79.01 MB / 8.71 GB, free: 51.2 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0947/38.19, allocations: 6.691 MB / 8.717 GB, free: 50.13 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008656/38.2, allocations: 1.383 MB / 8.718 GB, free: 50.13 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/38.2, allocations: 7.797 kB / 8.718 GB, free: 50.13 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.727/39.92, allocations: 146.4 MB / 8.861 GB, free: 95.06 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003357/39.92, allocations: 48.94 kB / 8.861 GB, free: 95.06 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6123/40.54, allocations: 152.8 MB / 9.01 GB, free: 94.62 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01836/40.55, allocations: 3.421 MB / 9.013 GB, free: 94.59 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1753/40.73, allocations: 86.41 MB / 9.098 GB, free: 89.89 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09378/40.82, allocations: 6.68 MB / 9.104 GB, free: 84.05 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009049/40.83, allocations: 1.331 MB / 9.106 GB, free: 82.8 MB / 1.042 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.02184/40.86, allocations: 4.033 MB / 9.11 GB, free: 80.36 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01089/40.87, allocations: 1.499 MB / 9.111 GB, free: 79.66 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2289/41.09, allocations: 63.12 MB / 9.173 GB, free: 28.91 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242/42.34, allocations: 70.19 MB / 9.241 GB, free: 99.67 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000174/42.34, allocations: 26.31 kB / 9.241 GB, free: 99.67 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2187/42.56, allocations: 69.44 MB / 9.309 GB, free: 98.91 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4108/42.97, allocations: 164.2 MB / 9.469 GB, free: 92.61 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001361/42.97, allocations: 3.812 kB / 9.469 GB, free: 92.61 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0117/42.98, allocations: 1.963 MB / 9.471 GB, free: 92.61 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3302/43.31, allocations: 91.73 MB / 9.561 GB, free: 35.12 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004852/43.31, allocations: 0.6201 MB / 9.562 GB, free: 34.65 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191/44.51, allocations: 74.07 MB / 9.634 GB, free: 107.8 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.01908/44.52, allocations: 6.181 MB / 9.64 GB, free: 107.3 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2725/44.8, allocations: 100.2 MB / 9.738 GB, free: 105.9 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02482/44.82, allocations: 6.534 MB / 9.744 GB, free: 105.6 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01119/44.83, allocations: 236.6 kB / 9.744 GB, free: 105.6 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05707/44.89, allocations: 3.638 MB / 9.748 GB, free: 104.9 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00687/44.9, allocations: 0.9568 MB / 9.749 GB, free: 104.9 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005769/44.9, allocations: 0.6994 MB / 9.749 GB, free: 104.9 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.03362/44.94, allocations: 11 MB / 9.76 GB, free: 104.5 MB / 1.042 GB Notification: Performance of sort global known variables: time 6.71e-07/44.94, allocations: 0 / 9.76 GB, free: 104.5 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1323/45.07, allocations: 43.49 MB / 9.803 GB, free: 103.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 (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.2775/45.35, allocations: 105.4 MB / 9.906 GB, free: 40.35 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 1.111/46.46, allocations: 77.75 MB / 9.982 GB, free: 112.9 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/46.46, allocations: 2.875 kB / 9.982 GB, free: 112.9 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.09659/46.55, allocations: 46.17 MB / 10.03 GB, free: 111.1 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05721/46.61, allocations: 7.416 MB / 10.03 GB, free: 110.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]