Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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_latest_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_latest_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.001139/0.001139, allocations: 108.7 kB / 16.41 MB, free: 6.469 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.001166/0.001166, allocations: 189.4 kB / 17.35 MB, free: 5.711 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.351/1.351, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.598/2.598, allocations: 472.7 MB / 0.746 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 1.07 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8204/0.8218, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.0586/0.8804, allocations: 61.25 MB / 1.286 GB, free: 20 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01578/0.8962, allocations: 12 MB / 1.298 GB, free: 3.984 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.8984, allocations: 63.62 kB / 1.298 GB, free: 3.922 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.9003, allocations: 0.6909 MB / 1.299 GB, free: 3.227 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.9055, allocations: 2.072 MB / 1.301 GB, free: 1.145 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00281/0.9083, allocations: 1.206 MB / 1.302 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003638/0.912, allocations: 3.095 MB / 1.305 GB, free: 12.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.9134, allocations: 1.12 MB / 1.306 GB, free: 11.69 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.9162, allocations: 1.36 MB / 1.307 GB, free: 10.33 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.9174, allocations: 0.9139 MB / 1.308 GB, free: 9.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.9176, allocations: 124 kB / 1.308 GB, free: 9.289 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002637/0.9203, allocations: 1.435 MB / 1.31 GB, free: 7.852 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.9205, allocations: 302.8 kB / 1.31 GB, free: 7.555 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0006324/0.9212, allocations: 0.7036 MB / 1.311 GB, free: 6.848 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002975/0.9242, allocations: 2.328 MB / 1.313 GB, free: 4.52 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.9242, allocations: 0 / 1.313 GB, free: 4.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9242, allocations: 0 / 1.313 GB, free: 4.52 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.698e-05/0.9242, allocations: 0 / 1.313 GB, free: 4.52 MB / 1.029 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.002955/0.9272, allocations: 1.779 MB / 1.315 GB, free: 2.676 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.9272, allocations: 12.03 kB / 1.315 GB, free: 2.664 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002394/0.9296, allocations: 459.6 kB / 1.315 GB, free: 2.215 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.9317, allocations: 1.192 MB / 1.316 GB, free: 0.9688 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.059e-05/0.9318, allocations: 62 kB / 1.316 GB, free: 0.9062 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.9319, allocations: 84 kB / 1.316 GB, free: 0.8242 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.934, allocations: 1.01 MB / 1.317 GB, free: 15.79 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.934, allocations: 3.938 kB / 1.317 GB, free: 15.78 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.783e-05/0.9341, allocations: 28 kB / 1.317 GB, free: 15.75 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.9341, allocations: 20 kB / 1.317 GB, free: 15.73 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.9366, allocations: 0.9368 MB / 1.318 GB, free: 14.8 MB / 1.045 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.005758/0.9423, allocations: 4.689 MB / 1.323 GB, free: 9.762 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003812/0.9462, allocations: 0.9845 MB / 1.324 GB, free: 8.773 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009847/0.9472, allocations: 423.2 kB / 1.324 GB, free: 8.355 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009264/0.9481, allocations: 1.013 MB / 1.325 GB, free: 7.121 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.9482, allocations: 46.94 kB / 1.325 GB, free: 7.066 MB / 1.045 GB Notification: Performance of pre-optimization done (n=53): time 2.124e-06/0.9482, allocations: 0 / 1.325 GB, free: 7.066 MB / 1.045 GB Notification: Performance of matching and sorting (n=53): time 0.008707/0.9569, allocations: 2.166 MB / 1.327 GB, free: 4.875 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.9569, allocations: 59.78 kB / 1.328 GB, free: 4.805 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.9581, allocations: 0.947 MB / 1.328 GB, free: 3.84 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.439e-05/0.9582, allocations: 41.69 kB / 1.328 GB, free: 3.793 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003934/0.9586, allocations: 0.5048 MB / 1.329 GB, free: 3.285 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.9588, allocations: 194.3 kB / 1.329 GB, free: 3.094 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.959, allocations: 130.2 kB / 1.329 GB, free: 2.961 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.9591, allocations: 330 kB / 1.33 GB, free: 2.633 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009827/0.9601, allocations: 354.8 kB / 1.33 GB, free: 2.281 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.9612, allocations: 0.5078 MB / 1.33 GB, free: 1.711 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/0.9631, allocations: 0.7579 MB / 1.331 GB, free: 0.918 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9632, allocations: 4 kB / 1.331 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002726/0.9659, allocations: 1.061 MB / 1.332 GB, free: 15.84 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.9659, allocations: 4 kB / 1.332 GB, free: 15.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.9659, allocations: 4 kB / 1.332 GB, free: 15.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.9671, allocations: 312 kB / 1.333 GB, free: 15.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006183/0.9677, allocations: 123.8 kB / 1.333 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.9691, allocations: 0.8997 MB / 1.334 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009005/0.97, allocations: 119.5 kB / 1.334 GB, free: 14.37 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.418e-05/0.9701, allocations: 31.97 kB / 1.334 GB, free: 14.34 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001255/0.9713, allocations: 0.5556 MB / 1.334 GB, free: 13.78 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001075/0.9724, allocations: 0.5116 MB / 1.335 GB, free: 13.2 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001838/0.9743, allocations: 0.7463 MB / 1.335 GB, free: 12.42 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.325e-06/0.9743, allocations: 0 / 1.335 GB, free: 12.42 MB / 1.061 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002636/0.9769, allocations: 1.053 MB / 1.336 GB, free: 11.36 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.9769, allocations: 7.938 kB / 1.336 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.977, allocations: 4 kB / 1.336 GB, free: 11.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009795/0.9779, allocations: 292.7 kB / 1.337 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000605/0.9786, allocations: 135.8 kB / 1.337 GB, free: 10.92 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.9798, allocations: 0.8976 MB / 1.338 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/0.9807, allocations: 107.8 kB / 1.338 GB, free: 9.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.9808, allocations: 31.98 kB / 1.338 GB, free: 9.863 MB / 1.061 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.0002264/0.9811, allocations: 220.1 kB / 1.338 GB, free: 9.641 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.9812, allocations: 119.2 kB / 1.338 GB, free: 9.523 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/0.9854, allocations: 1.3 MB / 1.339 GB, free: 8.211 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.9854, allocations: 3.984 kB / 1.339 GB, free: 8.207 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.9855, allocations: 0 / 1.339 GB, free: 8.207 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004315/0.9859, allocations: 276.2 kB / 1.34 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.986, allocations: 15.98 kB / 1.34 GB, free: 7.902 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.9868, allocations: 75.86 kB / 1.34 GB, free: 7.828 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/0.9869, allocations: 36.44 kB / 1.34 GB, free: 7.789 MB / 1.061 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.0031/0.99, allocations: 0.8842 MB / 1.341 GB, free: 6.906 MB / 1.061 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