Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.009212/0.009212, 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-master/package.mo): time 0.8783/0.8783, allocations: 135.2 MB / 151.1 MB, free: 13.8 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.558/1.558, 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.0009041/0.0009042, allocations: 106.1 kB / 490 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003428, allocations: 8 kB / 0.5691 GB, free: 14.16 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3957, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.267/1.663, allocations: 424.2 MB / 1.064 GB, free: 177.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/1.663, allocations: 98.72 kB / 1.064 GB, free: 177.7 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 38.55/40.21, allocations: 8.779 GB / 9.843 GB, free: 57.16 MB / 0.9636 GB Notification: Performance of FrontEnd: time 4.068e-06/40.21, allocations: 3.938 kB / 9.843 GB, free: 57.16 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.004576/40.22, allocations: 443.4 kB / 9.844 GB, free: 56.73 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.08845/40.3, allocations: 20.65 MB / 9.864 GB, free: 35.92 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/40.3, allocations: 8.031 kB / 9.864 GB, free: 35.91 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01816/40.32, allocations: 2.199 MB / 9.866 GB, free: 33.7 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08137/40.4, allocations: 21.81 MB / 9.887 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001235/40.4, allocations: 0.687 MB / 9.888 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006864/40.41, allocations: 0.9567 MB / 9.889 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 2.13/42.54, allocations: 15.79 MB / 9.904 GB, free: 59.1 MB / 0.9637 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000634/42.54, allocations: 12.41 kB / 9.904 GB, free: 59.1 MB / 0.9637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005255/42.55, allocations: 326.7 kB / 9.905 GB, free: 59.1 MB / 0.9637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006439/42.55, allocations: 370.3 kB / 9.905 GB, free: 59.09 MB / 0.9637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05123/42.6, allocations: 20.05 MB / 9.925 GB, free: 59.02 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.1753/42.78, allocations: 79.55 MB / 10 GB, free: 26.87 MB / 0.9637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02413/42.8, allocations: 12.22 MB / 10.01 GB, free: 26.41 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 evalFunc (simulation): time 0.09542/42.9, allocations: 33.68 MB / 10.05 GB, free: 18.16 MB / 0.9637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02319/42.92, allocations: 9.454 MB / 10.06 GB, free: 18 MB / 0.9637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0514/42.97, allocations: 14.84 MB / 10.07 GB, free: 17.85 MB / 0.9637 GB Notification: Performance of pre-optimization done (n=613): time 8.263e-05/42.97, allocations: 0.7188 kB / 10.07 GB, free: 17.85 MB / 0.9637 GB Notification: Performance of matching and sorting (n=907): time 3.09/46.06, allocations: 252.8 MB / 10.32 GB, free: 86.68 MB / 0.995 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.02238/46.08, allocations: 6.457 MB / 10.32 GB, free: 86.17 MB / 0.995 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04544/46.13, allocations: 14.4 MB / 10.34 GB, free: 85.51 MB / 0.995 GB Notification: Performance of collectPreVariables (initialization): time 0.005585/46.13, allocations: 244 kB / 10.34 GB, free: 85.48 MB / 0.995 GB Notification: Performance of collectInitialEqns (initialization): time 0.01329/46.15, allocations: 7.232 MB / 10.35 GB, free: 85.24 MB / 0.995 GB Notification: Performance of collectInitialBindings (initialization): time 0.01116/46.16, allocations: 3.214 MB / 10.35 GB, free: 84.43 MB / 0.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00572/46.16, allocations: 213.7 kB / 10.35 GB, free: 84.43 MB / 0.995 GB Notification: Performance of setup shared object (initialization): time 0.00109/46.16, allocations: 0.7505 MB / 10.35 GB, free: 84.1 MB / 0.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03582/46.2, allocations: 18.38 MB / 10.37 GB, free: 84.08 MB / 0.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04443/46.25, allocations: 21.39 MB / 10.39 GB, free: 80.91 MB / 0.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04232/46.29, allocations: 19.72 MB / 10.41 GB, free: 80.68 MB / 0.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002159/46.29, allocations: 15.16 kB / 10.41 GB, free: 80.68 MB / 0.995 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 0.6228/46.91, allocations: 146.4 MB / 10.55 GB, free: 71.68 MB / 0.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.008779/46.92, allocations: 35.44 MB / 10.59 GB, free: 34.43 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003212/46.92, allocations: 52 kB / 10.59 GB, free: 34.38 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661/48.58, allocations: 147.1 MB / 10.73 GB, free: 95.95 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02107/48.6, allocations: 3.633 MB / 10.73 GB, free: 95.95 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1583/48.76, allocations: 76.34 MB / 10.81 GB, free: 88.89 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09376/48.85, allocations: 6.732 MB / 10.81 GB, free: 88.42 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008479/48.86, allocations: 1.388 MB / 10.81 GB, free: 88.41 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/48.86, allocations: 7.891 kB / 10.81 GB, free: 88.41 MB / 1.011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5854/49.45, allocations: 145.2 MB / 10.96 GB, free: 36.29 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003355/49.45, allocations: 53.31 kB / 10.96 GB, free: 36.24 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631/51.08, allocations: 147.4 MB / 11.1 GB, free: 119.5 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01972/51.1, allocations: 3.608 MB / 11.1 GB, free: 119.5 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.183/51.28, allocations: 80.67 MB / 11.18 GB, free: 115 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09331/51.38, allocations: 6.709 MB / 11.19 GB, free: 114.7 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008314/51.38, allocations: 1.345 MB / 11.19 GB, free: 114.7 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.02022/51.4, allocations: 4.021 MB / 11.19 GB, free: 114.5 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00975/51.41, allocations: 1.492 MB / 11.2 GB, free: 114.5 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2154/51.63, allocations: 61.78 MB / 11.26 GB, free: 113.2 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.217/51.85, allocations: 68.99 MB / 11.32 GB, free: 83.21 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002079/51.85, allocations: 28.62 kB / 11.32 GB, free: 83.19 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32/53.17, allocations: 68.24 MB / 11.39 GB, free: 103.8 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3643/53.53, allocations: 145 MB / 11.53 GB, free: 97.74 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001414/53.53, allocations: 7.047 kB / 11.53 GB, free: 97.73 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01313/53.54, allocations: 2.05 MB / 11.53 GB, free: 97.73 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3469/53.89, allocations: 89.71 MB / 11.62 GB, free: 97.43 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004557/53.9, allocations: 0.6157 MB / 11.62 GB, free: 97.43 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1287/54.02, allocations: 72.04 MB / 11.69 GB, free: 82.71 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.02083/54.04, allocations: 6.308 MB / 11.7 GB, free: 80.42 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.462/55.51, allocations: 98.31 MB / 11.79 GB, free: 110.5 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02483/55.53, allocations: 6.459 MB / 11.8 GB, free: 110.4 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01064/55.54, allocations: 226.3 kB / 11.8 GB, free: 110.4 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05981/55.6, allocations: 3.674 MB / 11.81 GB, free: 110.4 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007009/55.61, allocations: 0.9398 MB / 11.81 GB, free: 110.4 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005599/55.61, allocations: 0.6918 MB / 11.81 GB, free: 110.4 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.03681/55.65, allocations: 11.06 MB / 11.82 GB, free: 110 MB / 1.042 GB Notification: Performance of sort global known variables: time 2.765e-06/55.65, allocations: 0 / 11.82 GB, free: 110 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.1583/55.81, allocations: 43.49 MB / 11.86 GB, free: 110 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.01551/55.83, allocations: 5.56 MB / 11.87 GB, free: 108.1 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.174/56, allocations: 75.92 MB / 11.94 GB, free: 106.8 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.866e-05/56, allocations: 6.656 kB / 11.94 GB, free: 106.8 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.09727/56.1, allocations: 45.37 MB / 11.98 GB, free: 103.6 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06131/56.16, allocations: 7.392 MB / 11.99 GB, free: 103.2 MB / 1.042 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]