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-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.Simplified2,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.FlowSystem.Simplified2,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_FlowSystem_Simplified2",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.008663/0.008663, allocations: 172 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.7623/0.7623, allocations: 135.2 MB / 151 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.541/1.541, allocations: 223.2 MB / 406.8 MB, free: 3.215 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.0009473/0.0009471, allocations: 93.81 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.000357, allocations: 16 kB / 0.5692 GB, free: 14.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4825/0.4829, allocations: 82.3 MB / 0.6495 GB, free: 36.13 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.402/1.884, allocations: 424.2 MB / 1.064 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/1.885, allocations: 102.2 kB / 1.064 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 39.15/41.03, allocations: 8.779 GB / 9.843 GB, free: 56.75 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.266e-06/41.03, allocations: 4 kB / 9.843 GB, free: 56.75 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0045/41.04, allocations: 431.5 kB / 9.844 GB, free: 56.33 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.0945/41.13, allocations: 20.65 MB / 9.864 GB, free: 35.52 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 7.125e-05/41.13, allocations: 12.03 kB / 9.864 GB, free: 35.51 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009701/41.14, allocations: 1.041 MB / 9.865 GB, free: 34.46 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01978/41.16, allocations: 2.199 MB / 9.867 GB, free: 32.24 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07379/41.23, allocations: 21.82 MB / 9.888 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001083/41.24, allocations: 0.6909 MB / 9.889 GB, free: 9.645 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005736/41.24, allocations: 0.9528 MB / 9.89 GB, free: 8.691 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.219/42.46, allocations: 15.79 MB / 9.905 GB, free: 61.59 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005539/42.46, allocations: 17 kB / 9.905 GB, free: 61.59 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004645/42.47, allocations: 331.2 kB / 9.906 GB, free: 61.59 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005745/42.47, allocations: 368.6 kB / 9.906 GB, free: 61.57 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04449/42.51, allocations: 20.05 MB / 9.926 GB, free: 61.51 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.1772/42.69, allocations: 79.55 MB / 10 GB, free: 29.36 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03009/42.72, allocations: 12.22 MB / 10.02 GB, free: 28.9 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.09991/42.82, allocations: 33.68 MB / 10.05 GB, free: 20.62 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02777/42.85, allocations: 9.455 MB / 10.06 GB, free: 20.46 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05159/42.9, allocations: 14.84 MB / 10.07 GB, free: 20.31 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=613): time 8.307e-05/42.9, allocations: 0 / 10.07 GB, free: 20.31 MB / 0.9636 GB Notification: Performance of matching and sorting (n=907): time 2.198/45.1, allocations: 252.5 MB / 10.32 GB, free: 75.54 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.02596/45.12, allocations: 6.451 MB / 10.32 GB, free: 75.04 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05042/45.17, allocations: 14.41 MB / 10.34 GB, free: 74.38 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.006624/45.18, allocations: 243.4 kB / 10.34 GB, free: 74.34 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.01626/45.19, allocations: 7.234 MB / 10.35 GB, free: 74.1 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.01341/45.21, allocations: 3.216 MB / 10.35 GB, free: 73.26 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007597/45.22, allocations: 210.9 kB / 10.35 GB, free: 73.26 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.001666/45.22, allocations: 0.7492 MB / 10.35 GB, free: 72.94 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03985/45.26, allocations: 18.38 MB / 10.37 GB, free: 72.91 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04559/45.3, allocations: 21.39 MB / 10.39 GB, free: 69.74 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04585/45.35, allocations: 19.72 MB / 10.41 GB, free: 69.52 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002635/45.35, allocations: 18.98 kB / 10.41 GB, free: 69.52 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1423) (initialization): time 0.6426/45.99, allocations: 146.4 MB / 10.55 GB, free: 48.59 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.01121/46, allocations: 35.42 MB / 10.59 GB, free: 27.3 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003627/46, allocations: 52 kB / 10.59 GB, free: 27.25 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752/47.76, allocations: 147.1 MB / 10.73 GB, free: 99.21 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02223/47.78, allocations: 3.635 MB / 10.73 GB, free: 99.21 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1791/47.96, allocations: 76.34 MB / 10.81 GB, free: 92.16 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09668/48.05, allocations: 6.741 MB / 10.81 GB, free: 91.54 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009797/48.06, allocations: 1.387 MB / 10.82 GB, free: 91.54 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/48.06, allocations: 4.594 kB / 10.82 GB, free: 91.54 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6114/48.68, allocations: 145.2 MB / 10.96 GB, free: 29.74 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003852/48.68, allocations: 48 kB / 10.96 GB, free: 29.69 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68/50.36, allocations: 147.4 MB / 11.1 GB, free: 105.6 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01988/50.38, allocations: 3.612 MB / 11.1 GB, free: 105.6 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1842/50.56, allocations: 80.66 MB / 11.18 GB, free: 101.1 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09639/50.66, allocations: 6.71 MB / 11.19 GB, free: 100.6 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008907/50.67, allocations: 1.338 MB / 11.19 GB, free: 100.6 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.02433/50.69, allocations: 4.016 MB / 11.2 GB, free: 100.4 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01138/50.7, allocations: 1.493 MB / 11.2 GB, free: 100.4 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.228/50.93, allocations: 61.78 MB / 11.26 GB, free: 99.08 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2212/51.15, allocations: 69 MB / 11.32 GB, free: 59.17 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002166/51.15, allocations: 28 kB / 11.32 GB, free: 59.14 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222/52.37, allocations: 68.24 MB / 11.39 GB, free: 97.29 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3612/52.73, allocations: 145 MB / 11.53 GB, free: 91.18 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001105/52.73, allocations: 5.062 kB / 11.53 GB, free: 91.18 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01266/52.75, allocations: 2.049 MB / 11.53 GB, free: 91.18 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3458/53.09, allocations: 89.71 MB / 11.62 GB, free: 90.88 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004899/53.1, allocations: 0.6203 MB / 11.62 GB, free: 90.88 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1619/53.26, allocations: 72.04 MB / 11.69 GB, free: 62.43 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.0222/53.28, allocations: 6.309 MB / 11.7 GB, free: 57.08 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.289/54.57, allocations: 98.31 MB / 11.8 GB, free: 107.6 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02441/54.59, allocations: 6.46 MB / 11.8 GB, free: 107.5 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01003/54.6, allocations: 224.7 kB / 11.8 GB, free: 107.5 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05852/54.66, allocations: 3.664 MB / 11.81 GB, free: 107.5 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006334/54.67, allocations: 0.9451 MB / 11.81 GB, free: 107.5 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004709/54.67, allocations: 0.6925 MB / 11.81 GB, free: 107.5 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.02605/54.7, allocations: 11.06 MB / 11.82 GB, free: 107 MB / 1.026 GB Notification: Performance of sort global known variables: time 1.313e-06/54.7, allocations: 2.688 kB / 11.82 GB, free: 107 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.1424/54.84, allocations: 43.49 MB / 11.86 GB, free: 107 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.2928/55.14, allocations: 103.8 MB / 11.96 GB, free: 103.1 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.1508/55.29, allocations: 75.91 MB / 12.04 GB, free: 69.25 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/55.29, allocations: 5.75 kB / 12.04 GB, free: 69.25 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.08955/55.38, allocations: 45.38 MB / 12.08 GB, free: 38.06 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05512/55.43, allocations: 7.395 MB / 12.09 GB, free: 32.8 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]