Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001475/0.001475, allocations: 110.6 kB / 16.41 MB, free: 5.973 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.001734/0.001734, allocations: 187.1 kB / 17.35 MB, free: 5.586 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.343/1.343, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002173/0.002172, allocations: 293.4 kB / 291.5 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9473/0.9473, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 92.08 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3924, allocations: 86.98 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05662/0.449, allocations: 61.14 MB / 0.8268 GB, free: 6.551 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01593/0.465, allocations: 11.99 MB / 0.8385 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.4668, allocations: 63.56 kB / 0.8385 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.4685, allocations: 0.683 MB / 0.8392 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005075/0.4736, allocations: 1.962 MB / 0.8411 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002854/0.4765, allocations: 1.213 MB / 0.8423 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003824/0.4803, allocations: 3.079 MB / 0.8453 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001491/0.4818, allocations: 1.111 MB / 0.8464 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002943/0.4847, allocations: 1.354 MB / 0.8477 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.4861, allocations: 0.8905 MB / 0.8486 GB, free: 124 kB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.4862, allocations: 116 kB / 0.8487 GB, free: 8 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.489, allocations: 1.443 MB / 0.8501 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.4893, allocations: 286.9 kB / 0.8504 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006472/0.4899, allocations: 0.6958 MB / 0.851 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.493, allocations: 2.305 MB / 0.8533 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.493, allocations: 0 / 0.8533 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.583e-06/0.493, allocations: 0 / 0.8533 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.687e-05/0.493, allocations: 4 kB / 0.8533 GB, free: 11.27 MB / 0.6231 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.002998/0.496, allocations: 1.719 MB / 0.855 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.4961, allocations: 8.031 kB / 0.855 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002258/0.4984, allocations: 406.9 kB / 0.8554 GB, free: 9.086 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.5006, allocations: 1.163 MB / 0.8565 GB, free: 7.863 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.5007, allocations: 62 kB / 0.8566 GB, free: 7.805 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.5008, allocations: 79.94 kB / 0.8566 GB, free: 7.727 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.5028, allocations: 0.9976 MB / 0.8576 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.5029, allocations: 3.938 kB / 0.8576 GB, free: 6.664 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.503, allocations: 36 kB / 0.8577 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.503, allocations: 20 kB / 0.8577 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002307/0.5053, allocations: 0.8547 MB / 0.8585 GB, free: 5.754 MB / 0.6231 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.006298/0.5116, allocations: 5.242 MB / 0.8636 GB, free: 144 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003485/0.5151, allocations: 0.7852 MB / 0.8644 GB, free: 15.35 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007371/0.5159, allocations: 296.7 kB / 0.8647 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006259/0.5165, allocations: 0.8986 MB / 0.8656 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.5166, allocations: 46.55 kB / 0.8656 GB, free: 13.9 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=43): time 2.655e-06/0.5166, allocations: 3.938 kB / 0.8656 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of matching and sorting (n=43): time 0.008801/0.5254, allocations: 1.842 MB / 0.8674 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.5254, allocations: 55.41 kB / 0.8675 GB, free: 11.96 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.527, allocations: 1.079 MB / 0.8685 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.238e-05/0.5271, allocations: 37.7 kB / 0.8686 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.5275, allocations: 0.5311 MB / 0.8691 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.5277, allocations: 149.8 kB / 0.8692 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.5279, allocations: 134.2 kB / 0.8693 GB, free: 10 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.528, allocations: 330 kB / 0.8697 GB, free: 9.672 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008977/0.5289, allocations: 307.3 kB / 0.8699 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.53, allocations: 0.5422 MB / 0.8705 GB, free: 8.727 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.5318, allocations: 0.7066 MB / 0.8712 GB, free: 7.949 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5318, allocations: 0 / 0.8712 GB, free: 7.949 MB / 0.6387 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002731/0.5345, allocations: 1.016 MB / 0.8722 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.5345, allocations: 8 kB / 0.8722 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.5346, allocations: 11.94 kB / 0.8722 GB, free: 6.902 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5358, allocations: 308.7 kB / 0.8725 GB, free: 6.598 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005603/0.5364, allocations: 127.8 kB / 0.8726 GB, free: 6.473 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.5378, allocations: 0.9067 MB / 0.8735 GB, free: 5.543 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.5391, allocations: 159.2 kB / 0.8736 GB, free: 5.387 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.729e-05/0.5391, allocations: 27.98 kB / 0.8737 GB, free: 5.359 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001209/0.5403, allocations: 0.5129 MB / 0.8742 GB, free: 4.84 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001055/0.5414, allocations: 0.5346 MB / 0.8747 GB, free: 4.207 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00164/0.5431, allocations: 0.7098 MB / 0.8754 GB, free: 3.426 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.138e-06/0.5431, allocations: 4 kB / 0.8754 GB, free: 3.422 MB / 0.6387 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002674/0.5458, allocations: 0.9965 MB / 0.8764 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.5458, allocations: 8 kB / 0.8764 GB, free: 2.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5458, allocations: 7.938 kB / 0.8764 GB, free: 2.398 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.5469, allocations: 304.7 kB / 0.8767 GB, free: 2.098 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005625/0.5474, allocations: 127.8 kB / 0.8768 GB, free: 1.973 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.5488, allocations: 0.888 MB / 0.8776 GB, free: 1.059 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.55, allocations: 139.5 kB / 0.8778 GB, free: 0.9219 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.5501, allocations: 35.98 kB / 0.8778 GB, free: 0.8867 MB / 0.6387 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.0002118/0.5503, allocations: 224 kB / 0.878 GB, free: 0.6602 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.5505, allocations: 106.7 kB / 0.8781 GB, free: 0.5547 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003864/0.5544, allocations: 1.082 MB / 0.8792 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.5544, allocations: 7.984 kB / 0.8792 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5544, allocations: 0 / 0.8792 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.5548, allocations: 263.4 kB / 0.8794 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.555, allocations: 12 kB / 0.8795 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.5558, allocations: 63.92 kB / 0.8795 GB, free: 15.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.039e-05/0.5559, allocations: 28.39 kB / 0.8795 GB, free: 15.07 MB / 0.6544 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.00282/0.5587, allocations: 0.7691 MB / 0.8803 GB, free: 14.3 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model BuildingSystems.Fluid.HeatPumps.Examples.Carnot_TCon could not be translated