Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2.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/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/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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008592/0.008592, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7941/0.7941, allocations: 132.3 MB / 148.1 MB, free: 200 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.2 MB / 403.2 MB, free: 6.766 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.0008992/0.0008992, allocations: 83.28 kB / 485.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 8 kB / 0.5641 GB, free: 2.125 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3943, allocations: 81.57 MB / 0.6437 GB, free: 39.38 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.227/1.622, allocations: 424 MB / 1.058 GB, free: 253 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/1.622, allocations: 101.7 kB / 1.058 GB, free: 253 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 38.1/39.72, allocations: 8.779 GB / 9.837 GB, free: 26.62 MB / 0.948 GB Notification: Performance of FrontEnd: time 4.158e-06/39.72, allocations: 0 / 9.837 GB, free: 26.62 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.004079/39.73, allocations: 435.5 kB / 9.838 GB, free: 26.2 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.08666/39.81, allocations: 20.64 MB / 9.858 GB, free: 5.398 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/39.81, allocations: 16.02 kB / 9.858 GB, free: 5.383 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01972/39.83, allocations: 2.192 MB / 9.86 GB, free: 3.172 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.207/41.04, allocations: 21.81 MB / 9.881 GB, free: 51.87 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001335/41.04, allocations: 0.6832 MB / 9.882 GB, free: 51.85 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006503/41.05, allocations: 0.9586 MB / 9.883 GB, free: 51.85 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05999/41.11, allocations: 15.81 MB / 9.898 GB, free: 51.06 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009995/41.11, allocations: 13.41 kB / 9.898 GB, free: 51.06 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006152/41.12, allocations: 325.9 kB / 9.899 GB, free: 51.06 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007054/41.12, allocations: 365.6 kB / 9.899 GB, free: 51.05 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04836/41.17, allocations: 20.06 MB / 9.919 GB, free: 50.98 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 0.1991/41.36, allocations: 79.56 MB / 9.996 GB, free: 33.93 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02665/41.39, allocations: 12.21 MB / 10.01 GB, free: 33.48 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.1022/41.49, allocations: 33.68 MB / 10.04 GB, free: 24.97 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02336/41.52, allocations: 9.454 MB / 10.05 GB, free: 24.8 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05113/41.57, allocations: 14.84 MB / 10.06 GB, free: 24.52 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=613): time 7.935e-05/41.57, allocations: 2.953 kB / 10.06 GB, free: 24.52 MB / 0.9636 GB Notification: Performance of matching and sorting (n=907): time 2.279/43.85, allocations: 254.3 MB / 10.31 GB, free: 78.27 MB / 0.9792 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.02219/43.87, allocations: 6.446 MB / 10.32 GB, free: 77.77 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04064/43.91, allocations: 14.41 MB / 10.33 GB, free: 77.11 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.00671/43.92, allocations: 241.2 kB / 10.33 GB, free: 77.07 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.01375/43.93, allocations: 7.228 MB / 10.34 GB, free: 76.84 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.01226/43.94, allocations: 3.219 MB / 10.34 GB, free: 76.52 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006163/43.95, allocations: 208.6 kB / 10.34 GB, free: 76.52 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.001337/43.95, allocations: 0.751 MB / 10.34 GB, free: 76.2 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03736/43.99, allocations: 18.38 MB / 10.36 GB, free: 76.18 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04148/44.03, allocations: 21.39 MB / 10.38 GB, free: 73 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03932/44.07, allocations: 19.73 MB / 10.4 GB, free: 72.75 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002241/44.07, allocations: 13.94 kB / 10.4 GB, free: 72.75 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 0.6391/44.71, allocations: 146.4 MB / 10.55 GB, free: 29.51 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.01028/44.72, allocations: 35.43 MB / 10.58 GB, free: 8.207 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003777/44.72, allocations: 52 kB / 10.58 GB, free: 8.156 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671/46.39, allocations: 147.1 MB / 10.72 GB, free: 99.69 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02071/46.41, allocations: 3.638 MB / 10.73 GB, free: 99.69 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1547/46.57, allocations: 76.35 MB / 10.8 GB, free: 92.63 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0966/46.66, allocations: 6.738 MB / 10.81 GB, free: 91.78 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008836/46.67, allocations: 1.385 MB / 10.81 GB, free: 91.78 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/46.67, allocations: 9.484 kB / 10.81 GB, free: 91.78 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5953/47.27, allocations: 145.2 MB / 10.95 GB, free: 13.3 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004087/47.27, allocations: 54.73 kB / 10.95 GB, free: 13.25 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628/48.89, allocations: 147.4 MB / 11.1 GB, free: 103.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01899/48.91, allocations: 3.61 MB / 11.1 GB, free: 103.5 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1712/49.08, allocations: 80.66 MB / 11.18 GB, free: 98.9 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09495/49.18, allocations: 6.708 MB / 11.18 GB, free: 98.21 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008951/49.19, allocations: 1.342 MB / 11.19 GB, free: 98.21 MB / 1.026 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.01996/49.21, allocations: 4.017 MB / 11.19 GB, free: 98.01 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01046/49.22, allocations: 1.494 MB / 11.19 GB, free: 98.01 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2168/49.44, allocations: 61.78 MB / 11.25 GB, free: 91.7 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2142/49.65, allocations: 69 MB / 11.32 GB, free: 40.78 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002019/49.65, allocations: 32 kB / 11.32 GB, free: 40.75 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386/51.04, allocations: 68.24 MB / 11.39 GB, free: 105.2 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4174/51.45, allocations: 145 MB / 11.53 GB, free: 99.08 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001259/51.45, allocations: 4.875 kB / 11.53 GB, free: 99.08 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01308/51.47, allocations: 2.051 MB / 11.53 GB, free: 99.08 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3426/51.81, allocations: 89.71 MB / 11.62 GB, free: 95.94 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005017/51.81, allocations: 0.6198 MB / 11.62 GB, free: 95.57 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1279/51.94, allocations: 72.03 MB / 11.69 GB, free: 47.68 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.02061/51.96, allocations: 6.316 MB / 11.69 GB, free: 42.33 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.439/53.4, allocations: 98.31 MB / 11.79 GB, free: 115.1 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03028/53.43, allocations: 6.454 MB / 11.8 GB, free: 115 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01036/53.44, allocations: 225 kB / 11.8 GB, free: 115 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05741/53.5, allocations: 3.674 MB / 11.8 GB, free: 115 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006094/53.51, allocations: 0.9389 MB / 11.8 GB, free: 115 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004982/53.51, allocations: 0.689 MB / 11.8 GB, free: 115 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.0323/53.54, allocations: 11.07 MB / 11.81 GB, free: 114.6 MB / 1.026 GB Notification: Performance of sort global known variables: time 1.643e-06/53.54, allocations: 0 / 11.81 GB, free: 114.6 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.1426/53.69, allocations: 43.5 MB / 11.86 GB, free: 114.6 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 (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.01562/53.7, allocations: 5.556 MB / 11.86 GB, free: 112.7 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.1556/53.86, allocations: 75.92 MB / 11.93 GB, free: 110.9 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/53.86, allocations: 4 kB / 11.93 GB, free: 110.9 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.08857/53.95, allocations: 45.39 MB / 11.98 GB, free: 86.58 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05952/54.01, allocations: 7.381 MB / 11.99 GB, free: 82.52 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]