Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7564/0.7564, allocations: 143.4 MB / 159.2 MB, free: 4.875 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.001157/0.001157, allocations: 184.5 kB / 191.9 MB, free: 5.73 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.366/1.366, allocations: 222.9 MB / 447.3 MB, free: 5.855 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.0009738/0.0009738, allocations: 103.5 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001849/0.001849, allocations: 286.5 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001487, allocations: 79.81 kB / 0.6885 GB, free: 3.855 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3043, allocations: 81.29 MB / 0.7679 GB, free: 27.68 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4): time 0.6735/0.9778, allocations: 353 MB / 1.113 GB, free: 2.648 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.5365/1.514, allocations: 72.84 MB / 1.184 GB, free: 20.93 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.014/1.528, allocations: 372.1 kB / 1.184 GB, free: 20.93 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.01441/1.543, allocations: 4.354 MB / 1.188 GB, free: 20.92 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.03517/1.578, allocations: 12.09 MB / 1.2 GB, free: 20.72 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.02151/1.6, allocations: 8.512 MB / 1.209 GB, free: 20.51 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.04742/1.647, allocations: 45.03 MB / 1.252 GB, free: 19.33 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02552/1.673, allocations: 16.32 MB / 1.268 GB, free: 13 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02954/1.702, allocations: 13.81 MB / 1.282 GB, free: 2.379 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02547/1.728, allocations: 14.58 MB / 1.296 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.00717/1.735, allocations: 1.129 MB / 1.297 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01879/1.754, allocations: 4.998 MB / 1.302 GB, free: 2.137 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.008165/1.762, allocations: 4.556 MB / 1.307 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0196/1.782, allocations: 8.719 MB / 1.315 GB, free: 8.875 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.03898/1.821, allocations: 25.34 MB / 1.34 GB, free: 1.949 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.821, allocations: 0 / 1.34 GB, free: 1.949 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.253e-06/1.821, allocations: 0 / 1.34 GB, free: 1.949 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0007709/1.821, allocations: 0 / 1.34 GB, free: 1.949 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.05255/1.874, allocations: 19.8 MB / 1.359 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/1.874, allocations: 8.031 kB / 1.359 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01146/1.885, allocations: 2.225 MB / 1.361 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03771/1.923, allocations: 13.95 MB / 1.375 GB, free: 14.25 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001331/1.925, allocations: 0.7096 MB / 1.376 GB, free: 13.54 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003934/1.929, allocations: 0.7811 MB / 1.376 GB, free: 12.76 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03451/1.963, allocations: 14.93 MB / 1.391 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002788/1.963, allocations: 7.938 kB / 1.391 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002752/1.966, allocations: 292 kB / 1.391 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/1.966, allocations: 191.9 kB / 1.391 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03766/2.004, allocations: 19.36 MB / 1.41 GB, free: 9.75 MB / 0.8542 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.1249/2.129, allocations: 76.02 MB / 1.485 GB, free: 10.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01743/2.146, allocations: 10.59 MB / 1.495 GB, free: 0.5156 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01382/2.16, allocations: 9.053 MB / 1.504 GB, free: 7.469 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 evalFunc (simulation): time 0.653/2.813, allocations: 31.48 MB / 1.535 GB, free: 468 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01316/2.826, allocations: 8.842 MB / 1.543 GB, free: 464.9 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02377/2.85, allocations: 8.477 MB / 1.551 GB, free: 462.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=421): time 2.363e-05/2.85, allocations: 0 / 1.551 GB, free: 462.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=605): time 0.8098/3.66, allocations: 183.2 MB / 1.73 GB, free: 290.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/3.66, allocations: 116.2 kB / 1.73 GB, free: 290.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01803/3.678, allocations: 13.26 MB / 1.743 GB, free: 277.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.002968/3.681, allocations: 177.7 kB / 1.744 GB, free: 277 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005399/3.687, allocations: 6.529 MB / 1.75 GB, free: 270.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003903/3.691, allocations: 2.046 MB / 1.752 GB, free: 268.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004598/3.695, allocations: 2.47 MB / 1.754 GB, free: 266 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 3.814e-05/3.695, allocations: 317 kB / 1.755 GB, free: 265.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0152/3.71, allocations: 10.08 MB / 1.764 GB, free: 255.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01801/3.729, allocations: 12.48 MB / 1.777 GB, free: 242.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03545/3.764, allocations: 22.25 MB / 1.798 GB, free: 219.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.111e-05/3.764, allocations: 16 kB / 1.798 GB, free: 219.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=1029) (initialization): time 0.5691/4.333, allocations: 112.6 MB / 1.908 GB, free: 106.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/4.333, allocations: 57.83 kB / 1.908 GB, free: 106.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.656e-05/4.333, allocations: 56 kB / 1.909 GB, free: 106.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.9351/5.268, allocations: 117.9 MB / 2.024 GB, free: 437.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/5.279, allocations: 2.047 MB / 2.026 GB, free: 437.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1369/5.416, allocations: 77.53 MB / 2.101 GB, free: 392.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01732/5.433, allocations: 1.22 MB / 2.103 GB, free: 391 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003332/5.437, allocations: 0.7802 MB / 2.103 GB, free: 390.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.02141/5.458, allocations: 12.55 MB / 2.116 GB, free: 377.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.018/5.476, allocations: 12.04 MB / 2.127 GB, free: 364.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03288/5.509, allocations: 21.36 MB / 2.148 GB, free: 342.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.55e-05/5.509, allocations: 12 kB / 2.148 GB, free: 342.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=1029) (initialization_lambda0): time 0.5571/6.066, allocations: 111.2 MB / 2.257 GB, free: 232 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 6.538e-05/6.066, allocations: 65.66 kB / 2.257 GB, free: 231.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.857e-05/6.066, allocations: 52 kB / 2.257 GB, free: 231.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5663/6.633, allocations: 117.6 MB / 2.372 GB, free: 114.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009714/6.642, allocations: 2.028 MB / 2.374 GB, free: 112.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1478/6.79, allocations: 81.82 MB / 2.454 GB, free: 30.45 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01782/6.808, allocations: 1.233 MB / 2.455 GB, free: 29.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003867/6.812, allocations: 0.7529 MB / 2.456 GB, free: 28.49 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * 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 (769): * Single equations (assignments): 755 * 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 {(28,28,89.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,80), (5,80)} Notification: Performance of prepare postOptimizeDAE: time 0.005052/6.817, allocations: 0.6311 MB / 2.456 GB, free: 27.85 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005237/6.822, allocations: 1.286 MB / 2.457 GB, free: 27.16 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6154/7.438, allocations: 48.37 MB / 2.505 GB, free: 437.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.845e-05/7.438, allocations: 74.56 kB / 2.505 GB, free: 437.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001418/7.438, allocations: 30 kB / 2.505 GB, free: 437.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1772/7.615, allocations: 42.76 MB / 2.547 GB, free: 422.6 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.2226/7.838, allocations: 63.3 MB / 2.608 GB, free: 359.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.723e-05/7.838, allocations: 8.812 kB / 2.608 GB, free: 359.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007555/7.846, allocations: 1.369 MB / 2.61 GB, free: 358.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1863/8.032, allocations: 40.91 MB / 2.65 GB, free: 317.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001819/8.034, allocations: 199.9 kB / 2.65 GB, free: 317.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06027/8.094, allocations: 35.76 MB / 2.685 GB, free: 281.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/8.094, allocations: 7.984 kB / 2.685 GB, free: 281.3 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.