Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001593/0.001593, allocations: 111.1 kB / 16.42 MB, free: 6.52 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.001732/0.001732, allocations: 187.9 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.446/2.446, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 60.12 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7137/0.7152, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05751/0.7727, allocations: 61.21 MB / 1.227 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01593/0.7887, allocations: 11.99 MB / 1.239 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.7906, allocations: 59.62 kB / 1.239 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.7925, allocations: 0.7064 MB / 1.24 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005081/0.7977, allocations: 2.07 MB / 1.242 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002877/0.8005, allocations: 1.207 MB / 1.243 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003642/0.8042, allocations: 3.084 MB / 1.246 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.8057, allocations: 1.111 MB / 1.247 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.8085, allocations: 1.362 MB / 1.248 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001421/0.81, allocations: 0.8945 MB / 1.249 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002378/0.8102, allocations: 112 kB / 1.249 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002696/0.8129, allocations: 1.435 MB / 1.251 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003138/0.8133, allocations: 298.8 kB / 1.251 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0008411/0.8141, allocations: 0.688 MB / 1.251 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.8173, allocations: 2.288 MB / 1.254 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.8173, allocations: 0 / 1.254 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.193e-06/0.8173, allocations: 0 / 1.254 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.563e-05/0.8174, allocations: 0 / 1.254 GB, free: 10.98 MB / 0.9825 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.0032/0.8206, allocations: 1.722 MB / 1.255 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.8206, allocations: 12.91 kB / 1.255 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002292/0.8229, allocations: 402.9 kB / 1.256 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.8251, allocations: 1.167 MB / 1.257 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.8252, allocations: 66 kB / 1.257 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.8253, allocations: 83.94 kB / 1.257 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.8274, allocations: 0.9976 MB / 1.258 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.8274, allocations: 3.938 kB / 1.258 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.8275, allocations: 32 kB / 1.258 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.8275, allocations: 24 kB / 1.258 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.8298, allocations: 0.8547 MB / 1.259 GB, free: 5.453 MB / 0.9825 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.006225/0.836, allocations: 5.228 MB / 1.264 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003534/0.8396, allocations: 0.7852 MB / 1.265 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007288/0.8403, allocations: 296.7 kB / 1.265 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005727/0.8409, allocations: 0.9025 MB / 1.266 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.841, allocations: 34.56 kB / 1.266 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 2.655e-06/0.841, allocations: 4 kB / 1.266 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.008564/0.8495, allocations: 1.844 MB / 1.268 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.8496, allocations: 55.41 kB / 1.268 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.8512, allocations: 1.079 MB / 1.269 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.8512, allocations: 41.69 kB / 1.269 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003922/0.8516, allocations: 0.5272 MB / 1.269 GB, free: 10 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.8518, allocations: 149.8 kB / 1.27 GB, free: 9.852 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.852, allocations: 134.2 kB / 1.27 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.8521, allocations: 326 kB / 1.27 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009223/0.853, allocations: 311.3 kB / 1.27 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.8541, allocations: 0.5385 MB / 1.271 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.8558, allocations: 0.7172 MB / 1.272 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.8558, allocations: 0 / 1.272 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002722/0.8586, allocations: 1.012 MB / 1.273 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.8586, allocations: 4 kB / 1.273 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.8586, allocations: 8 kB / 1.273 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.8598, allocations: 311.8 kB / 1.273 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.8604, allocations: 127.8 kB / 1.273 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.8618, allocations: 0.8995 MB / 1.274 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.8631, allocations: 159.2 kB / 1.274 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.8632, allocations: 31.98 kB / 1.274 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001172/0.8643, allocations: 0.5012 MB / 1.275 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00106/0.8654, allocations: 0.5346 MB / 1.275 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00169/0.8671, allocations: 0.7061 MB / 1.276 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.18e-06/0.8671, allocations: 11.92 kB / 1.276 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002691/0.8698, allocations: 1.008 MB / 1.277 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.8698, allocations: 10.5 kB / 1.277 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.8699, allocations: 11.94 kB / 1.277 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.8709, allocations: 292.7 kB / 1.277 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.8715, allocations: 127.8 kB / 1.277 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.8729, allocations: 0.8971 MB / 1.278 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.8741, allocations: 131.5 kB / 1.278 GB, free: 0.6484 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/0.8742, allocations: 35.98 kB / 1.278 GB, free: 0.6133 MB / 0.9981 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.0002044/0.8744, allocations: 224 kB / 1.278 GB, free: 396 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.8746, allocations: 110.7 kB / 1.279 GB, free: 284 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003887/0.8785, allocations: 1.082 MB / 1.28 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.8785, allocations: 3.984 kB / 1.28 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.8785, allocations: 0 / 1.28 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.879, allocations: 263.4 kB / 1.28 GB, free: 14.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.8792, allocations: 11.98 kB / 1.28 GB, free: 14.89 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008229/0.88, allocations: 67.92 kB / 1.28 GB, free: 14.82 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.8801, allocations: 28.44 kB / 1.28 GB, free: 14.79 MB / 1.014 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.002841/0.8829, allocations: 0.773 MB / 1.281 GB, free: 14.02 MB / 1.014 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