Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001088, allocations: 115.9 kB / 16.42 MB, free: 6.473 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: 183.9 kB / 17.35 MB, free: 5.75 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 67.91 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8218/0.8233, allocations: 140.4 MB / 1.089 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.07972/0.9031, allocations: 61.23 MB / 1.148 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01883/0.922, allocations: 11.99 MB / 1.16 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002392/0.9244, allocations: 63.97 kB / 1.16 GB, free: 1.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.9268, allocations: 0.6941 MB / 1.161 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006318/0.9331, allocations: 2.07 MB / 1.163 GB, free: 15.57 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003667/0.9368, allocations: 1.207 MB / 1.164 GB, free: 14.91 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00484/0.9416, allocations: 3.102 MB / 1.167 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002052/0.9437, allocations: 1.133 MB / 1.168 GB, free: 12.81 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003652/0.9474, allocations: 1.365 MB / 1.17 GB, free: 12.14 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.9494, allocations: 0.9035 MB / 1.17 GB, free: 11.72 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003898/0.9498, allocations: 120.1 kB / 1.171 GB, free: 11.72 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.9536, allocations: 1.446 MB / 1.172 GB, free: 11.23 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005192/0.9541, allocations: 306.6 kB / 1.172 GB, free: 11.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001638/0.9557, allocations: 0.695 MB / 1.173 GB, free: 10.59 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004658/0.9604, allocations: 2.318 MB / 1.175 GB, free: 9.281 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.9604, allocations: 0.8438 kB / 1.175 GB, free: 9.281 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9604, allocations: 0 / 1.175 GB, free: 9.281 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.419e-05/0.9605, allocations: 3.938 kB / 1.175 GB, free: 9.277 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.004339/0.9648, allocations: 1.734 MB / 1.177 GB, free: 7.938 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.9649, allocations: 13.23 kB / 1.177 GB, free: 7.934 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002676/0.9676, allocations: 452.7 kB / 1.177 GB, free: 7.73 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002632/0.9702, allocations: 1.175 MB / 1.178 GB, free: 6.785 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.243e-05/0.9703, allocations: 65.47 kB / 1.179 GB, free: 6.758 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.9705, allocations: 79.84 kB / 1.179 GB, free: 6.734 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.9729, allocations: 1.008 MB / 1.18 GB, free: 6.105 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.973, allocations: 1.125 kB / 1.18 GB, free: 6.105 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.001e-05/0.9731, allocations: 31.38 kB / 1.18 GB, free: 6.082 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.9731, allocations: 18.69 kB / 1.18 GB, free: 6.082 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/0.9758, allocations: 0.9414 MB / 1.181 GB, free: 5.617 MB / 0.92 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.006732/0.9826, allocations: 4.688 MB / 1.185 GB, free: 1.465 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004089/0.9867, allocations: 0.9961 MB / 1.186 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.9879, allocations: 408.8 kB / 1.186 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001234/0.9891, allocations: 1.014 MB / 1.187 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.9892, allocations: 41.62 kB / 1.188 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=53): time 3.186e-06/0.9892, allocations: 0 / 1.188 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of matching and sorting (n=53): time 0.009917/0.9991, allocations: 2.168 MB / 1.19 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.9992, allocations: 56.88 kB / 1.19 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/1.001, allocations: 0.9408 MB / 1.191 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.697e-05/1.001, allocations: 37.83 kB / 1.191 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004618/1.001, allocations: 0.5116 MB / 1.191 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/1.002, allocations: 175.8 kB / 1.191 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/1.002, allocations: 128.5 kB / 1.191 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.002, allocations: 331.4 kB / 1.192 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/1.003, allocations: 356.5 kB / 1.192 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/1.004, allocations: 0.5152 MB / 1.193 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002147/1.006, allocations: 0.752 MB / 1.193 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/1.007, allocations: 1.781 kB / 1.193 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003165/1.01, allocations: 1.058 MB / 1.194 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/1.01, allocations: 6.5 kB / 1.194 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/1.01, allocations: 2.281 kB / 1.194 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/1.011, allocations: 300.3 kB / 1.195 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006942/1.012, allocations: 133.1 kB / 1.195 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/1.013, allocations: 0.8987 MB / 1.196 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/1.015, allocations: 127.1 kB / 1.196 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.448e-05/1.015, allocations: 27.48 kB / 1.196 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001456/1.016, allocations: 0.5549 MB / 1.196 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001201/1.017, allocations: 0.5219 MB / 1.197 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002153/1.019, allocations: 0.7448 MB / 1.198 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.536e-06/1.019, allocations: 1.094 kB / 1.198 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.003108/1.023, allocations: 1.049 MB / 1.199 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/1.023, allocations: 9.406 kB / 1.199 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/1.023, allocations: 2.438 kB / 1.199 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/1.024, allocations: 284 kB / 1.199 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006595/1.024, allocations: 133.4 kB / 1.199 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/1.026, allocations: 0.8959 MB / 1.2 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/1.027, allocations: 110.6 kB / 1.2 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/1.027, allocations: 27.83 kB / 1.2 GB, free: 7.664 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002612/1.027, allocations: 219.6 kB / 1.2 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/1.028, allocations: 114.3 kB / 1.2 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004706/1.032, allocations: 1.307 MB / 1.202 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/1.032, allocations: 3.984 kB / 1.202 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/1.032, allocations: 1.031 kB / 1.202 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005912/1.033, allocations: 275 kB / 1.202 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/1.033, allocations: 14.94 kB / 1.202 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009505/1.034, allocations: 78.44 kB / 1.202 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/1.034, allocations: 32.58 kB / 1.202 GB, free: 6.367 MB / 0.9356 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 createDAEmodeBDAE (simulation): time 0.003421/1.038, allocations: 0.8797 MB / 1.203 GB, free: 5.898 MB / 0.9356 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow could not be translated