Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.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: "" <> buildModelFMU(IDEAS.Fluid.Examples.FlowSystem.Simplified1,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.FlowSystem.Simplified1,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01197/0.01197, allocations: 171.3 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7526/0.7526, allocations: 135.2 MB / 151 MB, free: 13.82 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.562/1.562, allocations: 223.2 MB / 406.8 MB, free: 3.238 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.0008828/0.0008825, allocations: 94.64 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003872, allocations: 15.98 kB / 0.5691 GB, free: 14.1 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4617/0.4621, allocations: 82.3 MB / 0.6495 GB, free: 36.05 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.338/1.8, allocations: 424.1 MB / 1.064 GB, free: 251.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/1.801, allocations: 104.3 kB / 1.064 GB, free: 251.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 39.26/41.06, allocations: 8.778 GB / 9.842 GB, free: 65.02 MB / 0.9636 GB Notification: Performance of FrontEnd: time 4.328e-06/41.06, allocations: 3.938 kB / 9.842 GB, free: 65.02 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.005615/41.07, allocations: 439.6 kB / 9.843 GB, free: 64.59 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.1165/41.18, allocations: 20.65 MB / 9.863 GB, free: 43.79 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.589e-05/41.18, allocations: 16.02 kB / 9.863 GB, free: 43.77 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007855/41.19, allocations: 1.041 MB / 9.864 GB, free: 42.72 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01783/41.21, allocations: 2.201 MB / 9.866 GB, free: 40.5 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08359/41.29, allocations: 21.82 MB / 9.887 GB, free: 18.6 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0018/41.3, allocations: 0.6832 MB / 9.888 GB, free: 17.91 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008071/41.3, allocations: 0.9567 MB / 9.889 GB, free: 16.96 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04793/41.35, allocations: 15.8 MB / 9.904 GB, free: 0.9414 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000638/41.35, allocations: 15.84 kB / 9.904 GB, free: 0.9258 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005161/41.36, allocations: 327.9 kB / 9.905 GB, free: 0.6055 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004333/41.36, allocations: 363.3 kB / 9.905 GB, free: 256 kB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.211/42.57, allocations: 20.05 MB / 9.925 GB, free: 71.14 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.1925/42.76, allocations: 79.55 MB / 10 GB, free: 38.98 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02607/42.79, allocations: 12.21 MB / 10.01 GB, free: 38.53 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.1014/42.89, allocations: 33.67 MB / 10.05 GB, free: 30.26 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02251/42.91, allocations: 9.451 MB / 10.06 GB, free: 30.09 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05187/42.96, allocations: 14.85 MB / 10.07 GB, free: 29.93 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=613): time 7.653e-05/42.96, allocations: 0.6562 kB / 10.07 GB, free: 29.93 MB / 0.9636 GB Notification: Performance of matching and sorting (n=907): time 2.243/45.21, allocations: 252.5 MB / 10.32 GB, free: 80.78 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1745/45.38, allocations: 62.91 MB / 10.38 GB, free: 73.3 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04556/45.43, allocations: 14.41 MB / 10.39 GB, free: 72.63 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.006782/45.43, allocations: 243 kB / 10.39 GB, free: 72.6 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.01374/45.45, allocations: 7.231 MB / 10.4 GB, free: 72.32 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.01179/45.46, allocations: 3.215 MB / 10.4 GB, free: 70.83 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006275/45.47, allocations: 210.2 kB / 10.4 GB, free: 70.83 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.00146/45.47, allocations: 0.7501 MB / 10.4 GB, free: 70.51 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03822/45.51, allocations: 18.38 MB / 10.42 GB, free: 70.48 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04394/45.55, allocations: 21.39 MB / 10.44 GB, free: 67.31 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04364/45.59, allocations: 19.72 MB / 10.46 GB, free: 67.09 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002346/45.59, allocations: 13.88 kB / 10.46 GB, free: 67.09 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 0.6346/46.23, allocations: 146.4 MB / 10.61 GB, free: 14.97 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.172/47.4, allocations: 35.42 MB / 10.64 GB, free: 77.54 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003937/47.4, allocations: 50.91 kB / 10.64 GB, free: 77.54 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6241/48.03, allocations: 147.9 MB / 10.78 GB, free: 77.42 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02101/48.05, allocations: 3.634 MB / 10.79 GB, free: 77.42 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1579/48.2, allocations: 76.8 MB / 10.86 GB, free: 70.02 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09373/48.3, allocations: 6.738 MB / 10.87 GB, free: 68.96 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008183/48.31, allocations: 1.385 MB / 10.87 GB, free: 68.96 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/48.31, allocations: 6.562 kB / 10.87 GB, free: 68.96 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.714/50.02, allocations: 145.2 MB / 11.01 GB, free: 98.32 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002988/50.02, allocations: 49.5 kB / 11.01 GB, free: 98.32 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6289/50.65, allocations: 147.7 MB / 11.16 GB, free: 98.24 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01969/50.67, allocations: 3.609 MB / 11.16 GB, free: 98.24 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1773/50.85, allocations: 81.06 MB / 11.24 GB, free: 93.67 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09427/50.94, allocations: 6.714 MB / 11.25 GB, free: 92.76 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008337/50.95, allocations: 1.339 MB / 11.25 GB, free: 92.76 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 {39 65,39 65} Notification: Performance of prepare postOptimizeDAE: time 0.02105/50.97, allocations: 4.014 MB / 11.25 GB, free: 92.57 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0115/50.98, allocations: 1.495 MB / 11.25 GB, free: 92.57 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2205/51.2, allocations: 61.79 MB / 11.31 GB, free: 64.03 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24/52.44, allocations: 68.91 MB / 11.38 GB, free: 92.08 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002128/52.44, allocations: 34.95 kB / 11.38 GB, free: 92.07 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2254/52.67, allocations: 68.16 MB / 11.45 GB, free: 91.33 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.363/53.03, allocations: 145 MB / 11.59 GB, free: 85.21 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001378/53.03, allocations: 0 / 11.59 GB, free: 85.21 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01268/53.04, allocations: 2.045 MB / 11.59 GB, free: 85.21 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3423/53.39, allocations: 90.25 MB / 11.68 GB, free: 80.84 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004546/53.39, allocations: 0.6198 MB / 11.68 GB, free: 80.47 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1285/53.52, allocations: 72.3 MB / 11.75 GB, free: 18.22 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 1.052/54.57, allocations: 6.339 MB / 11.76 GB, free: 115.1 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2745/54.85, allocations: 98.35 MB / 11.85 GB, free: 113.9 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02592/54.87, allocations: 6.462 MB / 11.86 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01335/54.89, allocations: 223.4 kB / 11.86 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.08655/54.97, allocations: 3.667 MB / 11.86 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005731/54.98, allocations: 0.9417 MB / 11.86 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004425/54.98, allocations: 0.6879 MB / 11.86 GB, free: 113.4 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.02901/55.01, allocations: 11.07 MB / 11.87 GB, free: 112.9 MB / 1.026 GB Notification: Performance of sort global known variables: time 4.81e-07/55.01, allocations: 0 / 11.87 GB, free: 112.9 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.138/55.15, allocations: 43.5 MB / 11.92 GB, free: 112.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 (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 {39 64,70 187} Notification: Performance of Backend phase and start with SimCode phase: time 0.2811/55.43, allocations: 103.9 MB / 12.02 GB, free: 82.41 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.1482/55.58, allocations: 77.12 MB / 12.09 GB, free: 27.57 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 3.679e-05/55.58, allocations: 3.531 kB / 12.09 GB, free: 27.57 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 1.076/56.66, allocations: 46.2 MB / 12.14 GB, free: 118 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0545/56.71, allocations: 7.39 MB / 12.15 GB, free: 117.9 MB / 1.026 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]