Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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.Validation.Carnot_TCon_reverseFlow,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.QCon_flow|heaPum.QEva_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,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.QCon_flow|heaPum.QEva_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 114.6 kB / 16.42 MB, free: 6.523 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.001471/0.001471, allocations: 186.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.317/1.317, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.456/2.456, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.91 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7553/0.7567, allocations: 151.6 MB / 1.167 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.05904/0.8158, allocations: 61.25 MB / 1.227 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.8314, allocations: 12 MB / 1.239 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001741/0.8331, allocations: 55.69 kB / 1.239 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001848/0.835, allocations: 0.6986 MB / 1.24 GB, free: 9.516 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004854/0.8399, allocations: 2.069 MB / 1.242 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002797/0.8427, allocations: 1.215 MB / 1.243 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003672/0.8464, allocations: 3.088 MB / 1.246 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.8479, allocations: 1.124 MB / 1.247 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.8507, allocations: 1.364 MB / 1.248 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001391/0.8521, allocations: 0.914 MB / 1.249 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002245/0.8524, allocations: 120 kB / 1.249 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002589/0.855, allocations: 1.443 MB / 1.251 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.8553, allocations: 298.9 kB / 1.251 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0009005/0.8562, allocations: 0.6997 MB / 1.252 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003375/0.8596, allocations: 2.325 MB / 1.254 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.8596, allocations: 7.938 kB / 1.254 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8596, allocations: 3.938 kB / 1.254 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.274e-05/0.8597, allocations: 0 / 1.254 GB, free: 10.8 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.003267/0.8629, allocations: 1.787 MB / 1.256 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.863, allocations: 8.922 kB / 1.256 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002599/0.8656, allocations: 463.6 kB / 1.256 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.8678, allocations: 1.176 MB / 1.257 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.243e-05/0.8679, allocations: 66 kB / 1.257 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.868, allocations: 80 kB / 1.257 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002141/0.8702, allocations: 1.006 MB / 1.258 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.8702, allocations: 0 / 1.258 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/0.8703, allocations: 32 kB / 1.258 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.8703, allocations: 20 kB / 1.258 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.873, allocations: 0.9484 MB / 1.259 GB, free: 5.078 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.00622/0.8792, allocations: 4.678 MB / 1.264 GB, free: 56 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004234/0.8835, allocations: 0.9953 MB / 1.265 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.8846, allocations: 405.9 kB / 1.265 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000947/0.8855, allocations: 1.021 MB / 1.266 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.8856, allocations: 39 kB / 1.266 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=53): time 2.715e-06/0.8856, allocations: 0 / 1.266 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of matching and sorting (n=53): time 0.009827/0.8954, allocations: 2.162 MB / 1.268 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.8955, allocations: 63.78 kB / 1.268 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.8967, allocations: 0.947 MB / 1.269 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.299e-05/0.8968, allocations: 37.7 kB / 1.269 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003837/0.8972, allocations: 0.5165 MB / 1.27 GB, free: 9.574 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.8974, allocations: 194.3 kB / 1.27 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.8976, allocations: 126.2 kB / 1.27 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.8977, allocations: 330 kB / 1.271 GB, free: 8.926 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.8988, allocations: 354.8 kB / 1.271 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.9001, allocations: 0.5116 MB / 1.271 GB, free: 8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.9022, allocations: 0.758 MB / 1.272 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.9023, allocations: 0 / 1.272 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00306/0.9053, allocations: 1.061 MB / 1.273 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.9054, allocations: 8.312 kB / 1.273 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.9054, allocations: 4 kB / 1.273 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.9067, allocations: 304.5 kB / 1.273 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.9074, allocations: 131.8 kB / 1.274 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.9089, allocations: 0.8958 MB / 1.274 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.9099, allocations: 127.5 kB / 1.275 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.91, allocations: 27.98 kB / 1.275 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001394/0.9114, allocations: 0.5625 MB / 1.275 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001181/0.9126, allocations: 0.5077 MB / 1.276 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002091/0.9147, allocations: 0.7463 MB / 1.276 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.9147, allocations: 4 kB / 1.276 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002929/0.9177, allocations: 1.049 MB / 1.277 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.9177, allocations: 4 kB / 1.277 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.9177, allocations: 4 kB / 1.277 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.9188, allocations: 298 kB / 1.278 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/0.9194, allocations: 131.8 kB / 1.278 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.9208, allocations: 0.894 MB / 1.279 GB, free: 304 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009845/0.9218, allocations: 111.7 kB / 1.279 GB, free: 192 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.9219, allocations: 27.98 kB / 1.279 GB, free: 164 kB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * 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.000222/0.9221, allocations: 220.1 kB / 1.279 GB, free: 15.94 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/0.9223, allocations: 123.2 kB / 1.279 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004644/0.927, allocations: 1.31 MB / 1.28 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.927, allocations: 3.984 kB / 1.28 GB, free: 14.49 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.927, allocations: 0 / 1.28 GB, free: 14.49 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004045/0.9274, allocations: 280.1 kB / 1.281 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.9276, allocations: 8 kB / 1.281 GB, free: 14.19 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008201/0.9284, allocations: 79.84 kB / 1.281 GB, free: 14.11 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.483e-05/0.9285, allocations: 32.52 kB / 1.281 GB, free: 14.08 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.003324/0.9318, allocations: 0.8854 MB / 1.282 GB, free: 13.19 MB / 1.014 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow could not be translated