Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 110.7 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 189.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002208/0.002208, allocations: 289.4 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.938/0.938, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 103.8 kB / 0.6822 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3977, allocations: 86.98 MB / 0.7671 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.FlowSystem.Simplified3): time 0.6645/1.062, allocations: 357.7 MB / 1.116 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.1072/1.17, allocations: 75.88 MB / 1.191 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01433/1.184, allocations: 429.6 kB / 1.191 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0178/1.202, allocations: 6.427 MB / 1.197 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.03787/1.24, allocations: 14.1 MB / 1.211 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.02476/1.264, allocations: 10.19 MB / 1.221 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.1/1.365, allocations: 74.19 MB / 1.293 GB, free: 6.496 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02957/1.394, allocations: 20.02 MB / 1.313 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.862/2.256, allocations: 17.4 MB / 1.33 GB, free: 65.48 MB / 0.9357 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02972/2.286, allocations: 16.38 MB / 1.346 GB, free: 63.65 MB / 0.9357 GB Notification: Performance of NFPackage.collectConstants: time 0.009384/2.295, allocations: 1.956 MB / 1.348 GB, free: 63.65 MB / 0.9357 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02108/2.316, allocations: 6.047 MB / 1.354 GB, free: 63.65 MB / 0.9357 GB Notification: Performance of NFScalarize.scalarize: time 0.01107/2.328, allocations: 6.49 MB / 1.36 GB, free: 62.92 MB / 0.9357 GB Notification: Performance of NFVerifyModel.verify: time 0.02343/2.351, allocations: 11.19 MB / 1.371 GB, free: 60.01 MB / 0.9357 GB Notification: Performance of NFConvertDAE.convert: time 0.04364/2.395, allocations: 31.08 MB / 1.401 GB, free: 56.71 MB / 0.9357 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/2.395, allocations: 4.5 kB / 1.401 GB, free: 56.71 MB / 0.9357 GB Notification: Performance of FrontEnd: time 2.705e-06/2.395, allocations: 0 / 1.401 GB, free: 56.71 MB / 0.9357 GB Notification: Performance of Transformations before backend: time 0.0009304/2.396, allocations: 0 / 1.401 GB, free: 56.71 MB / 0.9357 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2045 * Number of variables: 2045 Notification: Performance of Generate backend data structure: time 0.06745/2.463, allocations: 23.91 MB / 1.425 GB, free: 48.15 MB / 0.9357 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/2.463, allocations: 9.969 kB / 1.425 GB, free: 48.15 MB / 0.9357 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01804/2.481, allocations: 3.187 MB / 1.428 GB, free: 47.1 MB / 0.9357 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04012/2.521, allocations: 20.85 MB / 1.448 GB, free: 42.16 MB / 0.9357 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005994/2.522, allocations: 0.6684 MB / 1.449 GB, free: 42.15 MB / 0.9357 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005214/2.527, allocations: 0.9387 MB / 1.45 GB, free: 42.13 MB / 0.9357 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04014/2.567, allocations: 17.07 MB / 1.466 GB, free: 32.56 MB / 0.9357 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005592/2.568, allocations: 18.41 kB / 1.466 GB, free: 32.55 MB / 0.9357 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005527/2.574, allocations: 326.7 kB / 1.467 GB, free: 32.48 MB / 0.9357 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005045/2.574, allocations: 369.2 kB / 1.467 GB, free: 32.14 MB / 0.9357 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04503/2.619, allocations: 21.5 MB / 1.488 GB, free: 17.3 MB / 0.9357 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.1429/2.762, allocations: 83.3 MB / 1.569 GB, free: 12.05 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/2.786, allocations: 13.03 MB / 1.582 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01748/2.804, allocations: 10.08 MB / 1.592 GB, free: 5.18 MB / 1.029 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.07428/2.878, allocations: 35.31 MB / 1.627 GB, free: 1.492 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0185/2.896, allocations: 10.14 MB / 1.636 GB, free: 7.281 MB / 1.076 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02169/2.918, allocations: 5.821 MB / 1.642 GB, free: 1.617 MB / 1.076 GB Notification: Performance of pre-optimization done (n=567): time 2.451e-05/2.918, allocations: 0 / 1.642 GB, free: 1.617 MB / 1.076 GB Notification: Performance of matching and sorting (n=776): time 1.252/4.17, allocations: 191.5 MB / 1.829 GB, free: 0.4927 GB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/4.17, allocations: 133.5 kB / 1.829 GB, free: 0.4926 GB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02618/4.196, allocations: 17.85 MB / 1.847 GB, free: 486.7 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.003543/4.2, allocations: 217.7 kB / 1.847 GB, free: 486.5 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.007889/4.208, allocations: 7.74 MB / 1.854 GB, free: 479.2 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.004797/4.212, allocations: 2.38 MB / 1.857 GB, free: 476.9 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007885/4.22, allocations: 3.337 MB / 1.86 GB, free: 473.5 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 4.075e-05/4.22, allocations: 305.1 kB / 1.86 GB, free: 473.2 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01922/4.24, allocations: 12.49 MB / 1.873 GB, free: 460.7 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02266/4.262, allocations: 15.27 MB / 1.887 GB, free: 444.4 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04291/4.305, allocations: 26.85 MB / 1.914 GB, free: 416.8 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.772e-05/4.305, allocations: 19.94 kB / 1.914 GB, free: 416.8 MB / 1.154 GB Notification: Performance of matching and sorting (n=1526) (initialization): time 0.6087/4.914, allocations: 118.4 MB / 2.029 GB, free: 298.3 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 8.92e-05/4.914, allocations: 64.14 kB / 2.029 GB, free: 298.3 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.768e-05/4.914, allocations: 52.88 kB / 2.029 GB, free: 298.2 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.606/5.52, allocations: 118.2 MB / 2.145 GB, free: 180.1 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0156/5.536, allocations: 3.144 MB / 2.148 GB, free: 177 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.138/5.674, allocations: 81.83 MB / 2.228 GB, free: 94.75 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02119/5.695, allocations: 1.199 MB / 2.229 GB, free: 93.55 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004101/5.699, allocations: 0.8583 MB / 2.23 GB, free: 92.69 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.02889/5.728, allocations: 15.68 MB / 2.245 GB, free: 76.99 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.02246/5.751, allocations: 14.76 MB / 2.26 GB, free: 61.22 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.04266/5.793, allocations: 25.85 MB / 2.285 GB, free: 34.55 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.84e-05/5.793, allocations: 19.83 kB / 2.285 GB, free: 34.54 MB / 1.154 GB Notification: Performance of matching and sorting (n=1526) (initialization_lambda0): time 0.9704/6.764, allocations: 116.8 MB / 2.399 GB, free: 497.9 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 6.823e-05/6.764, allocations: 61.69 kB / 2.399 GB, free: 497.8 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.223e-05/6.764, allocations: 52 kB / 2.399 GB, free: 497.8 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6035/7.368, allocations: 117.9 MB / 2.514 GB, free: 380.3 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01445/7.382, allocations: 3.128 MB / 2.517 GB, free: 377.2 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1405/7.522, allocations: 86.06 MB / 2.601 GB, free: 291 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02025/7.543, allocations: 1.243 MB / 2.602 GB, free: 289.8 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003329/7.546, allocations: 0.8232 MB / 2.603 GB, free: 289 MB / 1.154 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 (1138): * Single equations (assignments): 1120 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 4 * 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.003674/7.55, allocations: 0.755 MB / 2.604 GB, free: 288.2 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005303/7.555, allocations: 1.554 MB / 2.605 GB, free: 287.2 MB / 1.154 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 948 equation(s) and 742 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02867/7.584, allocations: 13.82 MB / 2.619 GB, free: 273.4 MB / 1.154 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model BuildingSystems.Fluid.Examples.FlowSystem.Simplified3 could not be translated