Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(BuildingSystems.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001095/0.001095, allocations: 114.6 kB / 16.42 MB, free: 6.02 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.001243/0.001243, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002195/0.002195, allocations: 292.8 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9387/0.9387, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 92.14 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4093/0.4112, allocations: 86.98 MB / 0.7671 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.05523/0.4665, allocations: 61.18 MB / 0.8268 GB, free: 6.512 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01543/0.4819, allocations: 11.99 MB / 0.8385 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.4832, allocations: 59.62 kB / 0.8386 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.4847, allocations: 0.7064 MB / 0.8393 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003999/0.4888, allocations: 2.064 MB / 0.8413 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002389/0.4912, allocations: 1.216 MB / 0.8425 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00296/0.4941, allocations: 3.095 MB / 0.8455 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.4954, allocations: 1.131 MB / 0.8466 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.4977, allocations: 1.365 MB / 0.8479 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.4987, allocations: 0.9068 MB / 0.8488 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.4989, allocations: 124 kB / 0.8489 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.5012, allocations: 1.435 MB / 0.8503 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002639/0.5015, allocations: 302.8 kB / 0.8506 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006126/0.5021, allocations: 0.7037 MB / 0.8513 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002557/0.5047, allocations: 2.336 MB / 0.8536 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.5047, allocations: 0 / 0.8536 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5047, allocations: 0 / 0.8536 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.5047, allocations: 0 / 0.8536 GB, free: 10.98 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.002824/0.5076, allocations: 1.726 MB / 0.8553 GB, free: 9.195 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.5076, allocations: 19.97 kB / 0.8553 GB, free: 9.176 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002541/0.5102, allocations: 454.7 kB / 0.8557 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.5122, allocations: 1.179 MB / 0.8569 GB, free: 7.496 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.454e-05/0.5123, allocations: 58 kB / 0.8569 GB, free: 7.438 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.5124, allocations: 84 kB / 0.857 GB, free: 7.355 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.5145, allocations: 1.006 MB / 0.858 GB, free: 6.32 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.5146, allocations: 0 / 0.858 GB, free: 6.32 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.321e-05/0.5147, allocations: 32 kB / 0.858 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.5147, allocations: 20 kB / 0.858 GB, free: 6.27 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.5176, allocations: 0.9368 MB / 0.859 GB, free: 5.328 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.007073/0.5246, allocations: 4.684 MB / 0.8635 GB, free: 304 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004187/0.5288, allocations: 0.9847 MB / 0.8645 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.5299, allocations: 413.9 kB / 0.8649 GB, free: 14.9 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009346/0.5309, allocations: 1.017 MB / 0.8659 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.5309, allocations: 39 kB / 0.8659 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=53): time 2.294e-06/0.5309, allocations: 7.938 kB / 0.8659 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of matching and sorting (n=53): time 0.009575/0.5405, allocations: 2.162 MB / 0.868 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.5406, allocations: 59.78 kB / 0.8681 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.5417, allocations: 0.9509 MB / 0.869 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.04e-05/0.5418, allocations: 37.7 kB / 0.8691 GB, free: 10.33 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.5422, allocations: 0.4963 MB / 0.8695 GB, free: 9.832 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.5424, allocations: 181.3 kB / 0.8697 GB, free: 9.652 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.5426, allocations: 130.1 kB / 0.8698 GB, free: 9.52 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.5427, allocations: 330 kB / 0.8701 GB, free: 9.191 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.5438, allocations: 354.9 kB / 0.8705 GB, free: 8.84 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.545, allocations: 0.5116 MB / 0.871 GB, free: 8.27 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.5471, allocations: 0.7502 MB / 0.8717 GB, free: 7.488 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5471, allocations: 4 kB / 0.8717 GB, free: 7.484 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002932/0.55, allocations: 1.064 MB / 0.8728 GB, free: 6.41 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.5501, allocations: 8 kB / 0.8728 GB, free: 6.402 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5501, allocations: 0 / 0.8728 GB, free: 6.402 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.5513, allocations: 304.3 kB / 0.8731 GB, free: 6.105 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/0.552, allocations: 135.8 kB / 0.8732 GB, free: 5.973 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.5534, allocations: 0.8917 MB / 0.8741 GB, free: 5.055 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009361/0.5544, allocations: 119.4 kB / 0.8742 GB, free: 4.938 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.978e-05/0.5545, allocations: 27.98 kB / 0.8742 GB, free: 4.91 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001328/0.5558, allocations: 0.5658 MB / 0.8748 GB, free: 4.34 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001185/0.557, allocations: 0.5116 MB / 0.8753 GB, free: 3.77 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002079/0.5591, allocations: 0.7462 MB / 0.876 GB, free: 2.988 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/0.5591, allocations: 0 / 0.876 GB, free: 2.988 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002928/0.562, allocations: 1.045 MB / 0.877 GB, free: 1.934 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.5621, allocations: 8 kB / 0.877 GB, free: 1.926 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5621, allocations: 7.984 kB / 0.877 GB, free: 1.918 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.5631, allocations: 284.7 kB / 0.8773 GB, free: 1.637 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/0.5638, allocations: 135.8 kB / 0.8774 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.5652, allocations: 0.8956 MB / 0.8783 GB, free: 0.582 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000961/0.5662, allocations: 103.7 kB / 0.8784 GB, free: 492 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.36e-05/0.5663, allocations: 31.98 kB / 0.8784 GB, free: 460 kB / 0.6387 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.0002098/0.5665, allocations: 221 kB / 0.8786 GB, free: 232 kB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.5667, allocations: 110.6 kB / 0.8787 GB, free: 120 kB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004666/0.5714, allocations: 1.318 MB / 0.88 GB, free: 14.78 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5714, allocations: 3.938 kB / 0.88 GB, free: 14.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.5714, allocations: 4 kB / 0.88 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004159/0.5718, allocations: 275.5 kB / 0.8803 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.572, allocations: 8 kB / 0.8803 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008277/0.5728, allocations: 79.84 kB / 0.8804 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.072e-05/0.5729, allocations: 32.52 kB / 0.8804 GB, free: 14.37 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.003408/0.5763, allocations: 0.8856 MB / 0.8813 GB, free: 13.48 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model BuildingSystems.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow could not be translated