Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(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_latest_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_latest_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.001333/0.001333, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.001324/0.001324, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.685/2.685, allocations: 472.7 MB / 0.746 GB, free: 452 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.89 kB / 1.07 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7257/0.7271, allocations: 159.9 MB / 1.226 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06338/0.7905, allocations: 61.21 MB / 1.286 GB, free: 244 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01642/0.807, allocations: 12.01 MB / 1.298 GB, free: 4.203 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001771/0.8088, allocations: 59.69 kB / 1.298 GB, free: 4.145 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.8107, allocations: 0.6947 MB / 1.299 GB, free: 3.445 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.005336/0.8161, allocations: 2.072 MB / 1.301 GB, free: 1.363 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003033/0.8191, allocations: 1.204 MB / 1.302 GB, free: 172 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004158/0.8233, allocations: 3.087 MB / 1.305 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.8249, allocations: 1.104 MB / 1.306 GB, free: 11.94 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002989/0.828, allocations: 1.356 MB / 1.307 GB, free: 10.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001537/0.8295, allocations: 0.8983 MB / 1.308 GB, free: 9.676 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0002795/0.8298, allocations: 112 kB / 1.308 GB, free: 9.566 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00291/0.8327, allocations: 1.435 MB / 1.31 GB, free: 8.129 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0003618/0.8331, allocations: 298.8 kB / 1.31 GB, free: 7.836 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0009969/0.8341, allocations: 0.6919 MB / 1.311 GB, free: 7.141 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003868/0.838, allocations: 2.294 MB / 1.313 GB, free: 4.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.838, allocations: 0 / 1.313 GB, free: 4.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.904e-06/0.838, allocations: 3.938 kB / 1.313 GB, free: 4.836 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.203e-05/0.8381, allocations: 0 / 1.313 GB, free: 4.836 MB / 1.029 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.004091/0.8422, allocations: 1.775 MB / 1.315 GB, free: 3 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.8422, allocations: 11.97 kB / 1.315 GB, free: 2.988 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002281/0.8445, allocations: 415.6 kB / 1.315 GB, free: 2.582 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.847, allocations: 1.172 MB / 1.316 GB, free: 1.352 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.162e-05/0.8471, allocations: 66 kB / 1.316 GB, free: 1.289 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.8473, allocations: 80 kB / 1.316 GB, free: 1.211 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.8495, allocations: 0.9976 MB / 1.317 GB, free: 156 kB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.8495, allocations: 0 / 1.317 GB, free: 156 kB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-05/0.8496, allocations: 32 kB / 1.317 GB, free: 124 kB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.8496, allocations: 24 kB / 1.317 GB, free: 100 kB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002257/0.8519, allocations: 0.8586 MB / 1.318 GB, free: 15.24 MB / 1.045 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.006778/0.8587, allocations: 5.242 MB / 1.323 GB, free: 9.625 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.8621, allocations: 0.777 MB / 1.324 GB, free: 8.836 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007221/0.8628, allocations: 304.6 kB / 1.324 GB, free: 8.535 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006594/0.8635, allocations: 0.9025 MB / 1.325 GB, free: 7.43 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.8635, allocations: 34.56 kB / 1.325 GB, free: 7.387 MB / 1.045 GB Notification: Performance of pre-optimization done (n=43): time 4.098e-06/0.8636, allocations: 4 kB / 1.325 GB, free: 7.383 MB / 1.045 GB Notification: Performance of matching and sorting (n=43): time 0.008237/0.8718, allocations: 1.849 MB / 1.327 GB, free: 5.504 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.8718, allocations: 55.41 kB / 1.327 GB, free: 5.438 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.8735, allocations: 1.087 MB / 1.328 GB, free: 4.336 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.627e-05/0.8736, allocations: 37.7 kB / 1.328 GB, free: 4.293 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004316/0.874, allocations: 0.5398 MB / 1.329 GB, free: 3.75 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.8741, allocations: 154.6 kB / 1.329 GB, free: 3.598 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.8744, allocations: 138.2 kB / 1.329 GB, free: 3.453 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.8745, allocations: 326 kB / 1.329 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008949/0.8754, allocations: 311.3 kB / 1.33 GB, free: 2.824 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.8765, allocations: 0.5346 MB / 1.33 GB, free: 2.188 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.8781, allocations: 0.7135 MB / 1.331 GB, free: 1.402 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.8781, allocations: 0 / 1.331 GB, free: 1.402 MB / 1.045 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002639/0.8808, allocations: 1.024 MB / 1.332 GB, free: 376 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.8808, allocations: 4 kB / 1.332 GB, free: 372 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.8808, allocations: 8 kB / 1.332 GB, free: 364 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.8821, allocations: 308.7 kB / 1.332 GB, free: 52 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/0.8826, allocations: 127.8 kB / 1.332 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.884, allocations: 0.8982 MB / 1.333 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.8852, allocations: 163.4 kB / 1.333 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/0.8853, allocations: 39.91 kB / 1.333 GB, free: 14.8 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001133/0.8864, allocations: 0.5012 MB / 1.334 GB, free: 14.3 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001032/0.8875, allocations: 0.5385 MB / 1.334 GB, free: 13.66 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001577/0.8891, allocations: 0.71 MB / 1.335 GB, free: 12.88 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.889e-06/0.8891, allocations: 4 kB / 1.335 GB, free: 12.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002562/0.8916, allocations: 1.009 MB / 1.336 GB, free: 11.86 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.8917, allocations: 8 kB / 1.336 GB, free: 11.85 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.8917, allocations: 11.94 kB / 1.336 GB, free: 11.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.8927, allocations: 296.7 kB / 1.336 GB, free: 11.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.8933, allocations: 127.8 kB / 1.336 GB, free: 11.42 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.8946, allocations: 0.894 MB / 1.337 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.8957, allocations: 131.7 kB / 1.337 GB, free: 10.37 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.591e-05/0.8958, allocations: 35.98 kB / 1.337 GB, free: 10.34 MB / 1.061 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.0001969/0.896, allocations: 225.8 kB / 1.338 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.8962, allocations: 119.2 kB / 1.338 GB, free: 9.992 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.8998, allocations: 1.086 MB / 1.339 GB, free: 8.891 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.8998, allocations: 3.984 kB / 1.339 GB, free: 8.887 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.8998, allocations: 0 / 1.339 GB, free: 8.887 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.9002, allocations: 264.1 kB / 1.339 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.9004, allocations: 15.98 kB / 1.339 GB, free: 8.594 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007436/0.9011, allocations: 67.92 kB / 1.339 GB, free: 8.527 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.904e-05/0.9012, allocations: 28.39 kB / 1.339 GB, free: 8.5 MB / 1.061 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.002656/0.9039, allocations: 0.7637 MB / 1.34 GB, free: 7.738 MB / 1.061 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