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.001657/0.001657, allocations: 111.9 kB / 16.42 MB, free: 6.453 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.001893/0.001893, allocations: 185.7 kB / 17.35 MB, free: 5.734 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.336/1.336, 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.433/2.433, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7137/0.715, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05514/0.7701, allocations: 61.21 MB / 1.227 GB, free: 6.453 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01646/0.7866, allocations: 11.99 MB / 1.239 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.7884, allocations: 55.69 kB / 1.239 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.79, allocations: 0.6986 MB / 1.24 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00484/0.7949, allocations: 2.07 MB / 1.242 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002838/0.7978, allocations: 1.208 MB / 1.243 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003679/0.8014, allocations: 3.079 MB / 1.246 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.8029, allocations: 1.1 MB / 1.247 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002721/0.8056, allocations: 1.363 MB / 1.248 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.8068, allocations: 0.8907 MB / 1.249 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.8069, allocations: 116 kB / 1.249 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00262/0.8096, allocations: 1.443 MB / 1.251 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.8098, allocations: 298.8 kB / 1.251 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007471/0.8106, allocations: 0.6958 MB / 1.251 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003191/0.8138, allocations: 2.297 MB / 1.254 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.8138, allocations: 0 / 1.254 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8138, allocations: 0 / 1.254 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.948e-05/0.8139, allocations: 0 / 1.254 GB, free: 11.05 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.002921/0.8168, allocations: 1.763 MB / 1.255 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.8168, allocations: 12.92 kB / 1.255 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.819, allocations: 415.6 kB / 1.256 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.8213, allocations: 1.174 MB / 1.257 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.487e-05/0.8213, allocations: 62 kB / 1.257 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.8215, allocations: 84 kB / 1.257 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.8234, allocations: 1.009 MB / 1.258 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.8234, allocations: 0 / 1.258 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/0.8235, allocations: 32 kB / 1.258 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.8236, allocations: 20 kB / 1.258 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002186/0.8257, allocations: 0.8586 MB / 1.259 GB, free: 5.465 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.006182/0.8319, allocations: 5.229 MB / 1.264 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/0.8353, allocations: 0.7842 MB / 1.265 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007018/0.836, allocations: 295 kB / 1.265 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005988/0.8366, allocations: 0.9064 MB / 1.266 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.8366, allocations: 38.56 kB / 1.266 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 2.705e-06/0.8366, allocations: 0 / 1.266 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.008208/0.8449, allocations: 1.852 MB / 1.268 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.8449, allocations: 59.41 kB / 1.268 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.8464, allocations: 1.072 MB / 1.269 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.913e-05/0.8465, allocations: 33.7 kB / 1.269 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.8469, allocations: 0.5475 MB / 1.27 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.847, allocations: 162.6 kB / 1.27 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.8473, allocations: 138.2 kB / 1.27 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.8474, allocations: 326 kB / 1.27 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000881/0.8483, allocations: 307.3 kB / 1.27 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.8493, allocations: 0.5307 MB / 1.271 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.851, allocations: 0.725 MB / 1.272 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.832e-06/0.851, allocations: 4 kB / 1.272 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002612/0.8536, allocations: 1.005 MB / 1.273 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.8536, allocations: 11.94 kB / 1.273 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.8536, allocations: 4 kB / 1.273 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.8549, allocations: 312.7 kB / 1.273 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.8554, allocations: 127.8 kB / 1.273 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.8568, allocations: 0.9095 MB / 1.274 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.858, allocations: 151.4 kB / 1.274 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.8581, allocations: 31.98 kB / 1.274 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001157/0.8592, allocations: 0.5228 MB / 1.275 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001027/0.8603, allocations: 0.5269 MB / 1.275 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001567/0.8619, allocations: 0.7061 MB / 1.276 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.896e-06/0.8619, allocations: 0 / 1.276 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002576/0.8645, allocations: 1.02 MB / 1.277 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.8645, allocations: 8 kB / 1.277 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.8645, allocations: 7.938 kB / 1.277 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.8656, allocations: 292.6 kB / 1.277 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005625/0.8661, allocations: 131.8 kB / 1.277 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.8675, allocations: 0.8904 MB / 1.278 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.8687, allocations: 143.6 kB / 1.278 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.8687, allocations: 24 kB / 1.278 GB, free: 0.5898 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.000219/0.869, allocations: 224.1 kB / 1.279 GB, free: 372 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002078/0.8692, allocations: 119.2 kB / 1.279 GB, free: 252 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.8729, allocations: 1.086 MB / 1.28 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.8729, allocations: 3.938 kB / 1.28 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.8729, allocations: 4 kB / 1.28 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.8733, allocations: 268.1 kB / 1.28 GB, free: 14.85 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.8735, allocations: 12 kB / 1.28 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007658/0.8742, allocations: 71.91 kB / 1.28 GB, free: 14.77 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.398e-05/0.8743, allocations: 28.44 kB / 1.28 GB, free: 14.74 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.002709/0.877, allocations: 0.7614 MB / 1.281 GB, free: 13.98 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