Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.Examples.Carnot_TCon,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.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,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.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001373/0.001373, 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.291/1.291, allocations: 222.9 MB / 241 MB, free: 15.14 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.181/2.181, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 71.89 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7297/0.7309, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06134/0.7923, allocations: 61.2 MB / 1.148 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01814/0.8105, allocations: 11.99 MB / 1.16 GB, free: 1.012 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002518/0.8131, allocations: 60.34 kB / 1.16 GB, free: 0.9883 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.8153, allocations: 0.6966 MB / 1.161 GB, free: 0.543 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005957/0.8213, allocations: 2.069 MB / 1.163 GB, free: 15.31 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.8248, allocations: 1.209 MB / 1.164 GB, free: 14.64 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004522/0.8293, allocations: 3.094 MB / 1.167 GB, free: 13.12 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001821/0.8312, allocations: 1.105 MB / 1.168 GB, free: 12.57 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003132/0.8343, allocations: 1.359 MB / 1.169 GB, free: 11.9 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.8361, allocations: 0.8969 MB / 1.17 GB, free: 11.48 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003263/0.8364, allocations: 114.9 kB / 1.17 GB, free: 11.48 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003284/0.8397, allocations: 1.438 MB / 1.172 GB, free: 11 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004131/0.8401, allocations: 289.5 kB / 1.172 GB, free: 10.81 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.8413, allocations: 0.6978 MB / 1.173 GB, free: 10.37 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003574/0.8449, allocations: 2.288 MB / 1.175 GB, free: 9.18 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.8449, allocations: 0.7188 kB / 1.175 GB, free: 9.18 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.472e-06/0.845, allocations: 3.938 kB / 1.175 GB, free: 9.176 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.046e-05/0.845, allocations: 0.9062 kB / 1.175 GB, free: 9.176 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003432/0.8484, allocations: 1.718 MB / 1.177 GB, free: 7.844 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.8485, allocations: 8.625 kB / 1.177 GB, free: 7.844 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002223/0.8507, allocations: 410 kB / 1.177 GB, free: 7.656 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.8529, allocations: 1.162 MB / 1.178 GB, free: 6.727 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.8529, allocations: 60.69 kB / 1.178 GB, free: 6.699 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.8531, allocations: 79.19 kB / 1.178 GB, free: 6.676 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.8551, allocations: 1.01 MB / 1.179 GB, free: 6 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.8552, allocations: 5.141 kB / 1.179 GB, free: 5.996 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/0.8553, allocations: 32.03 kB / 1.179 GB, free: 5.973 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.8553, allocations: 23.56 kB / 1.179 GB, free: 5.969 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.8576, allocations: 0.8586 MB / 1.18 GB, free: 5.539 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.006317/0.8639, allocations: 5.23 MB / 1.185 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003339/0.8673, allocations: 0.7801 MB / 1.186 GB, free: 400 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007284/0.868, allocations: 296.2 kB / 1.186 GB, free: 252 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007057/0.8687, allocations: 0.9105 MB / 1.187 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.8688, allocations: 37.28 kB / 1.187 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=43): time 3.276e-06/0.8688, allocations: 0 / 1.187 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43): time 0.008418/0.8772, allocations: 1.853 MB / 1.189 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.8772, allocations: 55.09 kB / 1.189 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.8788, allocations: 1.078 MB / 1.19 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.8789, allocations: 33.86 kB / 1.19 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/0.8793, allocations: 0.5343 MB / 1.191 GB, free: 13 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.8794, allocations: 147.8 kB / 1.191 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.8797, allocations: 143.6 kB / 1.191 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.8798, allocations: 324 kB / 1.191 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009123/0.8808, allocations: 309.8 kB / 1.192 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.8819, allocations: 0.532 MB / 1.192 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.8835, allocations: 0.7128 MB / 1.193 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.8835, allocations: 2.188 kB / 1.193 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002634/0.8862, allocations: 1.013 MB / 1.194 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.8862, allocations: 6.781 kB / 1.194 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.8862, allocations: 5.094 kB / 1.194 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.8874, allocations: 305.1 kB / 1.194 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005418/0.888, allocations: 132.3 kB / 1.194 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.8894, allocations: 0.9048 MB / 1.195 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.8907, allocations: 152.1 kB / 1.195 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.8908, allocations: 34.98 kB / 1.195 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001337/0.8922, allocations: 0.512 MB / 1.196 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001059/0.8933, allocations: 0.5338 MB / 1.196 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00167/0.8949, allocations: 0.7109 MB / 1.197 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.895, allocations: 1.812 kB / 1.197 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002724/0.8977, allocations: 1.003 MB / 1.198 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.8977, allocations: 6.781 kB / 1.198 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.8977, allocations: 5.719 kB / 1.198 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.8988, allocations: 299.4 kB / 1.198 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.8994, allocations: 132.8 kB / 1.199 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.9008, allocations: 0.884 MB / 1.199 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.9021, allocations: 141.4 kB / 1.2 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.158e-05/0.9021, allocations: 31.83 kB / 1.2 GB, free: 7.145 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0002377/0.9024, allocations: 229 kB / 1.2 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.9026, allocations: 108.1 kB / 1.2 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003849/0.9065, allocations: 1.09 MB / 1.201 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.9065, allocations: 7.922 kB / 1.201 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.9065, allocations: 3.938 kB / 1.201 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004589/0.907, allocations: 261.8 kB / 1.201 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.9072, allocations: 10.62 kB / 1.201 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008037/0.908, allocations: 71.03 kB / 1.201 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.9081, allocations: 26.06 kB / 1.201 GB, free: 5.965 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.002779/0.9109, allocations: 0.7583 MB / 1.202 GB, free: 5.555 MB / 0.9356 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Buildings.Fluid.HeatPumps.Examples.Carnot_TCon could not be translated