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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00114/0.00114, allocations: 110.4 kB / 16.37 MB, free: 6.262 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.001075/0.001075, allocations: 192.8 kB / 17.3 MB, free: 5.848 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.45/2.45, allocations: 442.6 MB / 0.7166 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 71.33 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.279, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.4997/0.7787, allocations: 61.2 MB / 1.087 GB, free: 23.2 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01478/0.7935, allocations: 11.99 MB / 1.098 GB, free: 22.87 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.7957, allocations: 58.97 kB / 1.098 GB, free: 22.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.7975, allocations: 0.678 MB / 1.099 GB, free: 22.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005959/0.8035, allocations: 1.966 MB / 1.101 GB, free: 21.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003317/0.8068, allocations: 1.209 MB / 1.102 GB, free: 21.39 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004168/0.811, allocations: 3.091 MB / 1.105 GB, free: 19.95 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001685/0.8127, allocations: 1.1 MB / 1.106 GB, free: 19.43 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003036/0.8157, allocations: 1.334 MB / 1.107 GB, free: 18.84 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.8174, allocations: 0.8955 MB / 1.108 GB, free: 18.49 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003288/0.8178, allocations: 114.8 kB / 1.108 GB, free: 18.49 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003382/0.8212, allocations: 1.435 MB / 1.11 GB, free: 18.07 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.8215, allocations: 296.6 kB / 1.11 GB, free: 17.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.8226, allocations: 0.6871 MB / 1.111 GB, free: 17.46 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003911/0.8265, allocations: 2.288 MB / 1.113 GB, free: 16.7 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.8265, allocations: 0 / 1.113 GB, free: 16.7 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8265, allocations: 0 / 1.113 GB, free: 16.7 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.543e-05/0.8266, allocations: 0 / 1.113 GB, free: 16.7 MB / 0.8419 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.003137/0.8297, allocations: 1.724 MB / 1.115 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.8297, allocations: 8.719 kB / 1.115 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/0.8319, allocations: 408.5 kB / 1.115 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/0.834, allocations: 1.161 MB / 1.116 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.215e-05/0.8341, allocations: 61.09 kB / 1.116 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.8343, allocations: 82.94 kB / 1.116 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.8362, allocations: 1 MB / 1.117 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.8363, allocations: 1.125 kB / 1.117 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-05/0.8364, allocations: 32.16 kB / 1.117 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.8364, allocations: 19.16 kB / 1.117 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002253/0.8386, allocations: 0.8609 MB / 1.118 GB, free: 13.91 MB / 0.8419 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.005692/0.8443, allocations: 5.23 MB / 1.123 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003254/0.8476, allocations: 0.789 MB / 1.124 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.8483, allocations: 294.2 kB / 1.124 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004248/0.8487, allocations: 0.9106 MB / 1.125 GB, free: 8.508 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.8488, allocations: 38.11 kB / 1.125 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=43): time 2.264e-06/0.8488, allocations: 0 / 1.125 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.008095/0.8569, allocations: 1.848 MB / 1.127 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.561e-05/0.8569, allocations: 55.78 kB / 1.127 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.8585, allocations: 1.078 MB / 1.128 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/0.8586, allocations: 34.33 kB / 1.128 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.8589, allocations: 0.5307 MB / 1.129 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.859, allocations: 148.4 kB / 1.129 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.8592, allocations: 142.7 kB / 1.129 GB, free: 6.832 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 4.938e-05/0.8593, allocations: 327.1 kB / 1.129 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008488/0.8602, allocations: 305.8 kB / 1.13 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009818/0.8612, allocations: 0.5379 MB / 1.13 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.8627, allocations: 0.7222 MB / 1.131 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.8627, allocations: 2.094 kB / 1.131 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002587/0.8653, allocations: 1.007 MB / 1.132 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.8653, allocations: 7.938 kB / 1.132 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.8654, allocations: 5.688 kB / 1.132 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.8665, allocations: 311.2 kB / 1.132 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005287/0.8671, allocations: 134.2 kB / 1.132 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.8683, allocations: 0.8926 MB / 1.133 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.8695, allocations: 161.2 kB / 1.133 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.377e-05/0.8696, allocations: 35.25 kB / 1.133 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00111/0.8707, allocations: 0.5076 MB / 1.134 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009172/0.8717, allocations: 0.5284 MB / 1.134 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001492/0.8732, allocations: 0.7072 MB / 1.135 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.977e-06/0.8732, allocations: 2.344 kB / 1.135 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002494/0.8757, allocations: 0.9999 MB / 1.136 GB, free: 3.055 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.8757, allocations: 7.625 kB / 1.136 GB, free: 3.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.8757, allocations: 7.844 kB / 1.136 GB, free: 3.051 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009961/0.8767, allocations: 299.1 kB / 1.136 GB, free: 2.977 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005276/0.8773, allocations: 128.6 kB / 1.136 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.8785, allocations: 0.8976 MB / 1.137 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.8797, allocations: 135.2 kB / 1.137 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.8798, allocations: 32.91 kB / 1.138 GB, free: 2.27 MB / 0.8419 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.0002151/0.88, allocations: 228.2 kB / 1.138 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.8802, allocations: 112.9 kB / 1.138 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003571/0.8838, allocations: 1.089 MB / 1.139 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.8838, allocations: 2.766 kB / 1.139 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.8839, allocations: 0 / 1.139 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004169/0.8843, allocations: 261.1 kB / 1.139 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.8844, allocations: 12.48 kB / 1.139 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007393/0.8852, allocations: 70.22 kB / 1.139 GB, free: 1.398 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.8853, allocations: 28.16 kB / 1.139 GB, free: 1.395 MB / 0.8419 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.002522/0.8878, allocations: 0.7622 MB / 1.14 GB, free: 1.152 MB / 0.8419 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