Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.795/0.795, allocations: 143.4 MB / 159.2 MB, free: 4.898 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 187.1 kB / 191.9 MB, free: 5.746 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 447.3 MB, free: 5.859 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.00107/0.00107, allocations: 119 kB / 0.517 GB, free: 3.727 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001872/0.001872, allocations: 280.9 kB / 0.5973 GB, free: 49.4 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.00157, allocations: 83.88 kB / 0.6885 GB, free: 3.875 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3694, allocations: 81.29 MB / 0.7679 GB, free: 27.71 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5): time 0.5824/0.9519, allocations: 353 MB / 1.113 GB, free: 2.641 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.5229/1.475, allocations: 72.83 MB / 1.184 GB, free: 20.85 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01924/1.494, allocations: 372.2 kB / 1.184 GB, free: 20.85 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.01571/1.51, allocations: 3.888 MB / 1.188 GB, free: 20.84 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.03521/1.545, allocations: 10.25 MB / 1.198 GB, free: 20.73 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.02223/1.567, allocations: 7.132 MB / 1.205 GB, free: 20.55 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.05399/1.621, allocations: 38.41 MB / 1.242 GB, free: 20.46 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02517/1.647, allocations: 15.4 MB / 1.257 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03269/1.679, allocations: 12.76 MB / 1.27 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02975/1.709, allocations: 13.49 MB / 1.283 GB, free: 0.7461 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 0.008709/1.718, allocations: 1.086 MB / 1.284 GB, free: 15.66 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02218/1.74, allocations: 4.222 MB / 1.288 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.009743/1.75, allocations: 4.296 MB / 1.292 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.02354/1.774, allocations: 8.026 MB / 1.3 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.03881/1.812, allocations: 22.97 MB / 1.323 GB, free: 2.184 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 7.505e-06/1.812, allocations: 0 / 1.323 GB, free: 2.184 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.705e-06/1.812, allocations: 0 / 1.323 GB, free: 2.184 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0007816/1.813, allocations: 0 / 1.323 GB, free: 2.184 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.05881/1.872, allocations: 18.47 MB / 1.341 GB, free: 168 kB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.872, allocations: 12.03 kB / 1.341 GB, free: 156 kB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/1.885, allocations: 2.257 MB / 1.343 GB, free: 13.88 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0322/1.917, allocations: 12.62 MB / 1.355 GB, free: 1.508 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001963/1.919, allocations: 0.7438 MB / 1.356 GB, free: 0.7656 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004746/1.924, allocations: 0.6853 MB / 1.357 GB, free: 84 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03756/1.962, allocations: 14.03 MB / 1.37 GB, free: 1.906 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002577/1.962, allocations: 7.938 kB / 1.37 GB, free: 1.898 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003656/1.966, allocations: 240 kB / 1.371 GB, free: 1.664 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/1.966, allocations: 152 kB / 1.371 GB, free: 1.516 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03796/2.004, allocations: 18.97 MB / 1.389 GB, free: 14.54 MB / 0.8386 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.1248/2.129, allocations: 71.89 MB / 1.46 GB, free: 3.965 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01812/2.147, allocations: 10.56 MB / 1.47 GB, free: 9.625 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01441/2.161, allocations: 9.038 MB / 1.479 GB, free: 0.582 MB / 0.9167 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.06284/2.224, allocations: 30.64 MB / 1.509 GB, free: 1.648 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5491/2.773, allocations: 8.861 MB / 1.517 GB, free: 483.1 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02617/2.799, allocations: 8.577 MB / 1.526 GB, free: 483 MB / 0.948 GB Notification: Performance of pre-optimization done (n=387): time 3.729e-05/2.799, allocations: 0 / 1.526 GB, free: 483 MB / 0.948 GB Notification: Performance of matching and sorting (n=573): time 0.961/3.76, allocations: 203.1 MB / 1.724 GB, free: 299.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/3.76, allocations: 111.9 kB / 1.724 GB, free: 299.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01679/3.777, allocations: 12.51 MB / 1.736 GB, free: 287.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.002907/3.78, allocations: 171.3 kB / 1.736 GB, free: 287.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004936/3.785, allocations: 5.931 MB / 1.742 GB, free: 281.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004011/3.789, allocations: 1.93 MB / 1.744 GB, free: 279.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009495/3.799, allocations: 2.394 MB / 1.746 GB, free: 277 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 3.635e-05/3.799, allocations: 309.1 kB / 1.747 GB, free: 276.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.018/3.817, allocations: 10.09 MB / 1.757 GB, free: 266.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01952/3.836, allocations: 12.31 MB / 1.769 GB, free: 253.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03722/3.874, allocations: 22.01 MB / 1.79 GB, free: 230.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.431e-05/3.874, allocations: 12 kB / 1.79 GB, free: 230.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=958) (initialization): time 0.6319/4.506, allocations: 125.7 MB / 1.913 GB, free: 104.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/4.506, allocations: 49.7 kB / 1.913 GB, free: 104.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.577e-05/4.506, allocations: 48 kB / 1.913 GB, free: 104.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.999/5.505, allocations: 136.2 MB / 2.046 GB, free: 439.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01073/5.516, allocations: 1.911 MB / 2.048 GB, free: 439.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.199/5.715, allocations: 94.09 MB / 2.14 GB, free: 361 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01808/5.733, allocations: 1.18 MB / 2.141 GB, free: 359.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003966/5.737, allocations: 0.7646 MB / 2.142 GB, free: 359.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.02667/5.763, allocations: 12.34 MB / 2.154 GB, free: 346.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0207/5.784, allocations: 11.86 MB / 2.165 GB, free: 334 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03769/5.822, allocations: 21.12 MB / 2.186 GB, free: 312.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.569e-05/5.822, allocations: 12 kB / 2.186 GB, free: 312.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=958) (initialization_lambda0): time 0.6423/6.464, allocations: 124.2 MB / 2.307 GB, free: 188.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.991e-05/6.464, allocations: 59.58 kB / 2.307 GB, free: 188.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-05/6.464, allocations: 44 kB / 2.307 GB, free: 188.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6517/7.116, allocations: 135.7 MB / 2.44 GB, free: 53.01 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009148/7.125, allocations: 1.897 MB / 2.442 GB, free: 51.11 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6026/7.728, allocations: 97.88 MB / 2.537 GB, free: 417.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01866/7.747, allocations: 1.209 MB / 2.538 GB, free: 417 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004321/7.751, allocations: 0.731 MB / 2.539 GB, free: 416.9 MB / 0.948 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,stepValve.count,$PRE.stepValve.count,stepValve.T_start,$PRE.stepValve.T_start,pumpHea.stage,stepPump.pulseStart,$PRE.stepPump.pulseStart,stepPump.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (683): * Single equations (assignments): 669 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(32,39,82.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(7,78), (8,77)} Notification: Performance of prepare postOptimizeDAE: time 0.006696/7.758, allocations: 0.5892 MB / 2.54 GB, free: 416.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007059/7.765, allocations: 1.203 MB / 2.541 GB, free: 416.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2473/8.012, allocations: 52.35 MB / 2.592 GB, free: 385.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001341/8.012, allocations: 72 kB / 2.592 GB, free: 385.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002869/8.013, allocations: 36 kB / 2.592 GB, free: 385.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2153/8.228, allocations: 46.77 MB / 2.638 GB, free: 338.4 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 postOpt removeSimpleEquations (simulation): time 0.2422/8.47, allocations: 66.4 MB / 2.703 GB, free: 272.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.848e-05/8.47, allocations: 11.88 kB / 2.703 GB, free: 272.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007357/8.478, allocations: 1.323 MB / 2.704 GB, free: 270.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2029/8.681, allocations: 46.93 MB / 2.75 GB, free: 224 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002433/8.683, allocations: 191.9 kB / 2.75 GB, free: 223.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07976/8.763, allocations: 41.57 MB / 2.791 GB, free: 182.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/8.763, allocations: 11.94 kB / 2.791 GB, free: 182.2 MB / 0.948 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! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2314:10-2314:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Error: post-optimization module symbolicJacobian (simulation) failed.