Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(IBPSA.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001058/0.001058, allocations: 109.2 kB / 17.09 MB, free: 5.828 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.001144/0.001144, allocations: 194.7 kB / 18.02 MB, free: 4.961 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.27/1.27, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6756/0.6756, allocations: 115.3 MB / 407.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 67.3 kB / 0.5583 GB, free: 32.32 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1214, allocations: 76.18 MB / 0.6327 GB, free: 4.449 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.06672/0.1882, allocations: 61.18 MB / 0.6925 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02043/0.2086, allocations: 12 MB / 0.7042 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002256/0.2109, allocations: 55.69 kB / 0.7042 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.213, allocations: 0.6752 MB / 0.7049 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004675/0.2177, allocations: 1.969 MB / 0.7068 GB, free: 8.301 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00274/0.2204, allocations: 1.21 MB / 0.708 GB, free: 7.098 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003627/0.2241, allocations: 3.087 MB / 0.711 GB, free: 4 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.2257, allocations: 1.131 MB / 0.7121 GB, free: 2.832 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002639/0.2284, allocations: 1.353 MB / 0.7135 GB, free: 1.477 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.2297, allocations: 0.9178 MB / 0.7143 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002292/0.23, allocations: 120 kB / 0.7145 GB, free: 448 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.2324, allocations: 1.439 MB / 0.7159 GB, free: 15 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.2327, allocations: 298.9 kB / 0.7162 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000717/0.2334, allocations: 0.6997 MB / 0.7168 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002808/0.2362, allocations: 2.318 MB / 0.7191 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2362, allocations: 0 / 0.7191 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2362, allocations: 0 / 0.7191 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.426e-05/0.2363, allocations: 3.938 kB / 0.7191 GB, free: 11.67 MB / 0.5606 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.003014/0.2393, allocations: 1.736 MB / 0.7208 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2393, allocations: 8.031 kB / 0.7208 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002439/0.2418, allocations: 458.8 kB / 0.7212 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.2438, allocations: 1.179 MB / 0.7224 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.2439, allocations: 62 kB / 0.7225 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.244, allocations: 84 kB / 0.7225 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.246, allocations: 1.002 MB / 0.7235 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.2461, allocations: 0 / 0.7235 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.611e-05/0.2462, allocations: 28 kB / 0.7235 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.2462, allocations: 20 kB / 0.7236 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.2486, allocations: 0.9446 MB / 0.7245 GB, free: 6.016 MB / 0.5606 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.005484/0.2541, allocations: 4.688 MB / 0.7291 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/0.258, allocations: 0.9896 MB / 0.73 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.259, allocations: 411.9 kB / 0.7304 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008582/0.2599, allocations: 1.017 MB / 0.7314 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.2599, allocations: 39 kB / 0.7314 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 1.994e-06/0.26, allocations: 0 / 0.7314 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.009317/0.2693, allocations: 2.166 MB / 0.7336 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.2693, allocations: 59.78 kB / 0.7336 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.2707, allocations: 0.9392 MB / 0.7345 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.544e-05/0.2708, allocations: 41.7 kB / 0.7346 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.2712, allocations: 0.4963 MB / 0.7351 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.2714, allocations: 185.3 kB / 0.7352 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.2716, allocations: 130.1 kB / 0.7354 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2717, allocations: 326 kB / 0.7357 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.2727, allocations: 362.8 kB / 0.736 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.2739, allocations: 0.5048 MB / 0.7365 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/0.2759, allocations: 0.7579 MB / 0.7373 GB, free: 8.168 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2759, allocations: 0 / 0.7373 GB, free: 8.168 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003016/0.279, allocations: 1.057 MB / 0.7383 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.279, allocations: 8.25 kB / 0.7383 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.279, allocations: 8 kB / 0.7383 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.2803, allocations: 304.5 kB / 0.7386 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.281, allocations: 135.8 kB / 0.7387 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.2824, allocations: 0.8983 MB / 0.7396 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.2834, allocations: 115.4 kB / 0.7397 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.281e-05/0.2835, allocations: 35.95 kB / 0.7397 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001376/0.2849, allocations: 0.5556 MB / 0.7403 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001089/0.286, allocations: 0.5077 MB / 0.7408 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001941/0.2879, allocations: 0.754 MB / 0.7415 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.365e-06/0.2879, allocations: 0 / 0.7415 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.0028/0.2908, allocations: 1.045 MB / 0.7425 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.2908, allocations: 4 kB / 0.7425 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2908, allocations: 4 kB / 0.7425 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.2918, allocations: 300.8 kB / 0.7428 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/0.2924, allocations: 135.8 kB / 0.743 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.2937, allocations: 0.8917 MB / 0.7438 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009928/0.2948, allocations: 103.7 kB / 0.7439 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.086e-05/0.2948, allocations: 39.97 kB / 0.744 GB, free: 1.109 MB / 0.5762 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.0002112/0.295, allocations: 212.1 kB / 0.7442 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.2953, allocations: 110.6 kB / 0.7443 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3055/0.6008, allocations: 1.302 MB / 0.7455 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.6008, allocations: 3.797 kB / 0.7456 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-06/0.6008, allocations: 2.156 kB / 0.7456 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000659/0.6015, allocations: 276 kB / 0.7458 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.6017, allocations: 6.688 kB / 0.7458 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000825/0.6025, allocations: 81 kB / 0.7459 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.6026, allocations: 33.53 kB / 0.7459 GB, free: 109.4 MB / 0.5762 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.003388/0.606, allocations: 0.8793 MB / 0.7468 GB, free: 109.3 MB / 0.5762 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model IBPSA.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow could not be translated