Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Basic.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Basic") translateModel(IDEAS.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005836/0.005836, allocations: 169 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7287/0.7287, allocations: 135.2 MB / 151.1 MB, free: 13.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.2 MB / 406.9 MB, free: 3.223 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.0009213/0.0009215, allocations: 91.5 kB / 489.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 8 kB / 0.5691 GB, free: 14.17 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4685/0.4689, allocations: 82.3 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.235/1.704, allocations: 423.9 MB / 1.063 GB, free: 177.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/1.704, allocations: 99.83 kB / 1.064 GB, free: 177.6 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 27.82/29.52, allocations: 6.489 GB / 7.552 GB, free: 47.27 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.006e-06/29.52, allocations: 0 / 7.552 GB, free: 47.27 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.004823/29.53, allocations: 442.4 kB / 7.553 GB, free: 47.17 MB / 0.948 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.1025/29.63, allocations: 20.66 MB / 7.573 GB, free: 39.44 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/29.63, allocations: 7.188 kB / 7.573 GB, free: 39.44 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01965/29.65, allocations: 2.205 MB / 7.575 GB, free: 38.46 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08873/29.74, allocations: 21.9 MB / 7.596 GB, free: 35.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001464/29.74, allocations: 0.6918 MB / 7.597 GB, free: 35.48 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008086/29.75, allocations: 0.9644 MB / 7.598 GB, free: 35.46 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0573/29.81, allocations: 15.94 MB / 7.613 GB, free: 34.59 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008745/29.81, allocations: 19.41 kB / 7.613 GB, free: 34.58 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00609/29.81, allocations: 333.8 kB / 7.614 GB, free: 34.57 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005946/29.81, allocations: 364 kB / 7.614 GB, free: 34.55 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04691/29.86, allocations: 20.14 MB / 7.634 GB, free: 31.2 MB / 0.948 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.315/31.18, allocations: 78.71 MB / 7.711 GB, free: 58.42 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02782/31.2, allocations: 12.8 MB / 7.723 GB, free: 57.94 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.09475/31.3, allocations: 34.27 MB / 7.757 GB, free: 49.77 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02316/31.32, allocations: 9.684 MB / 7.766 GB, free: 49.59 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05183/31.37, allocations: 14.85 MB / 7.781 GB, free: 49.59 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=637): time 0.0001051/31.37, allocations: 0 / 7.781 GB, free: 49.59 MB / 0.9636 GB Notification: Performance of matching and sorting (n=955): time 2.268/33.64, allocations: 319 MB / 8.092 GB, free: 93.86 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.02061/33.66, allocations: 6.363 MB / 8.098 GB, free: 93.34 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04912/33.71, allocations: 14.37 MB / 8.112 GB, free: 92.67 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.006485/33.72, allocations: 256.8 kB / 8.113 GB, free: 92.64 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01325/33.73, allocations: 7.23 MB / 8.12 GB, free: 92.37 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.01235/33.74, allocations: 3.377 MB / 8.123 GB, free: 91.94 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006762/33.75, allocations: 215.7 kB / 8.123 GB, free: 91.94 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.001282/33.75, allocations: 0.7517 MB / 8.124 GB, free: 91.62 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03686/33.79, allocations: 18.53 MB / 8.142 GB, free: 91.59 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04236/33.83, allocations: 21.59 MB / 8.163 GB, free: 88.43 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04484/33.88, allocations: 19.9 MB / 8.182 GB, free: 88.2 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002043/33.88, allocations: 13.19 kB / 8.182 GB, free: 88.2 MB / 0.9948 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 0.6288/34.51, allocations: 147.8 MB / 8.327 GB, free: 77.02 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.008767/34.51, allocations: 32.04 MB / 8.358 GB, free: 43.35 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004207/34.52, allocations: 48.66 kB / 8.358 GB, free: 43.3 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728/36.24, allocations: 153 MB / 8.508 GB, free: 102.6 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0211/36.26, allocations: 3.445 MB / 8.511 GB, free: 102.6 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.207/36.47, allocations: 79.01 MB / 8.588 GB, free: 95.52 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09737/36.57, allocations: 6.691 MB / 8.595 GB, free: 95 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009541/36.58, allocations: 1.383 MB / 8.596 GB, free: 95 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/36.58, allocations: 7.656 kB / 8.596 GB, free: 94.99 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6158/37.19, allocations: 146.4 MB / 8.739 GB, free: 48.28 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003814/37.19, allocations: 44 kB / 8.739 GB, free: 48.23 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757/38.95, allocations: 152.8 MB / 8.888 GB, free: 111.4 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01998/38.97, allocations: 3.422 MB / 8.892 GB, free: 111.4 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2146/39.19, allocations: 86.4 MB / 8.976 GB, free: 107.5 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09767/39.28, allocations: 6.681 MB / 8.982 GB, free: 107 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01041/39.29, allocations: 1.333 MB / 8.984 GB, free: 107 MB / 1.026 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.02581/39.32, allocations: 4.037 MB / 8.988 GB, free: 106.8 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01378/39.33, allocations: 1.503 MB / 8.989 GB, free: 106.8 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2496/39.58, allocations: 63.11 MB / 9.051 GB, free: 105.4 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2258/39.81, allocations: 70.19 MB / 9.119 GB, free: 65.64 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002211/39.81, allocations: 28 kB / 9.119 GB, free: 65.61 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328/41.14, allocations: 69.44 MB / 9.187 GB, free: 102.8 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4398/41.58, allocations: 164.2 MB / 9.348 GB, free: 96.48 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001469/41.58, allocations: 2.406 kB / 9.348 GB, free: 96.48 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01197/41.59, allocations: 1.967 MB / 9.349 GB, free: 96.48 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3344/41.92, allocations: 91.7 MB / 9.439 GB, free: 88.11 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006514/41.93, allocations: 0.6278 MB / 9.44 GB, free: 87.75 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1494/42.08, allocations: 74.09 MB / 9.512 GB, free: 42.75 MB / 1.026 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.02097/42.1, allocations: 6.152 MB / 9.518 GB, free: 37.71 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.47/43.57, allocations: 100.2 MB / 9.616 GB, free: 114.5 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02556/43.6, allocations: 6.549 MB / 9.622 GB, free: 114.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01102/43.61, allocations: 231.2 kB / 9.622 GB, free: 114.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05857/43.67, allocations: 3.636 MB / 9.626 GB, free: 114.4 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007217/43.67, allocations: 0.9597 MB / 9.627 GB, free: 114.4 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005583/43.68, allocations: 0.6976 MB / 9.628 GB, free: 114.4 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.03511/43.71, allocations: 11.05 MB / 9.638 GB, free: 113.9 MB / 1.026 GB Notification: Performance of sort global known variables: time 2.625e-06/43.71, allocations: 0 / 9.638 GB, free: 113.9 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.1484/43.86, allocations: 43.5 MB / 9.681 GB, free: 113.9 MB / 1.026 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.01775/43.88, allocations: 5.57 MB / 9.686 GB, free: 112.1 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.1839/44.06, allocations: 77.71 MB / 9.762 GB, free: 108 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/44.06, allocations: 0 / 9.762 GB, free: 108 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.09823/44.16, allocations: 46.18 MB / 9.807 GB, free: 82.91 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05939/44.22, allocations: 7.427 MB / 9.815 GB, free: 78.85 MB / 1.026 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]