Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.001133/0.001133, allocations: 109.2 kB / 16.42 MB, free: 6.488 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.001153/0.001154, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7972/0.7972, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 66.05 kB / 0.582 GB, free: 23.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1384, allocations: 80.21 MB / 0.6603 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.0616/0.2, allocations: 61.17 MB / 0.7201 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01722/0.2173, allocations: 11.98 MB / 0.7318 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001929/0.2193, allocations: 59.62 kB / 0.7318 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.2212, allocations: 0.687 MB / 0.7325 GB, free: 208 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005114/0.2264, allocations: 2.07 MB / 0.7345 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.2293, allocations: 1.204 MB / 0.7357 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003747/0.2331, allocations: 3.091 MB / 0.7387 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.2347, allocations: 1.1 MB / 0.7398 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.2376, allocations: 1.37 MB / 0.7411 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00151/0.2391, allocations: 0.9023 MB / 0.742 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002866/0.2394, allocations: 116 kB / 0.7421 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002978/0.2424, allocations: 1.435 MB / 0.7435 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003723/0.2428, allocations: 290.9 kB / 0.7438 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.2439, allocations: 0.6959 MB / 0.7445 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.2478, allocations: 2.302 MB / 0.7467 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2478, allocations: 0 / 0.7467 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2478, allocations: 0 / 0.7467 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.001e-05/0.2479, allocations: 0 / 0.7467 GB, free: 1.586 MB / 0.5762 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.3323/0.5802, allocations: 1.721 MB / 0.7484 GB, free: 86.55 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.308e-05/0.5803, allocations: 10.78 kB / 0.7484 GB, free: 86.55 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003772/0.584, allocations: 411 kB / 0.7488 GB, free: 86.48 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/0.588, allocations: 1.154 MB / 0.7499 GB, free: 86.11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.5882, allocations: 64.12 kB / 0.75 GB, free: 86.11 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002617/0.5884, allocations: 90.48 kB / 0.7501 GB, free: 86.11 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.591, allocations: 0.9989 MB / 0.7511 GB, free: 85.77 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.5911, allocations: 5.312 kB / 0.7511 GB, free: 85.77 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.662e-05/0.5912, allocations: 31.69 kB / 0.7511 GB, free: 85.75 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.5912, allocations: 24.22 kB / 0.7511 GB, free: 85.74 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.5938, allocations: 0.856 MB / 0.752 GB, free: 85.47 MB / 0.5762 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.009486/0.6033, allocations: 5.21 MB / 0.757 GB, free: 81.47 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003679/0.607, allocations: 0.7887 MB / 0.7578 GB, free: 81.26 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008302/0.6079, allocations: 293.9 kB / 0.7581 GB, free: 81.17 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005746/0.6085, allocations: 0.9035 MB / 0.759 GB, free: 80.13 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.6085, allocations: 44.42 kB / 0.759 GB, free: 80.09 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 3.086e-06/0.6085, allocations: 1.062 kB / 0.759 GB, free: 80.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.009281/0.6178, allocations: 1.845 MB / 0.7608 GB, free: 79.65 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/0.6179, allocations: 56.09 kB / 0.7609 GB, free: 79.59 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.6205, allocations: 1.07 MB / 0.7619 GB, free: 79.15 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.407e-05/0.6206, allocations: 42.31 kB / 0.762 GB, free: 79.11 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004504/0.6211, allocations: 0.5355 MB / 0.7625 GB, free: 78.69 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.6212, allocations: 148.7 kB / 0.7626 GB, free: 78.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.6215, allocations: 136.1 kB / 0.7628 GB, free: 78.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.045e-05/0.6216, allocations: 333.1 kB / 0.7631 GB, free: 78.18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009796/0.6226, allocations: 308.2 kB / 0.7634 GB, free: 78.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.6237, allocations: 0.538 MB / 0.7639 GB, free: 77.71 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.6255, allocations: 0.7162 MB / 0.7646 GB, free: 77.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.6256, allocations: 1.375 kB / 0.7646 GB, free: 77.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003003/0.6286, allocations: 1.008 MB / 0.7656 GB, free: 76.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.6286, allocations: 8.906 kB / 0.7656 GB, free: 76.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.6286, allocations: 5.688 kB / 0.7656 GB, free: 76.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.6299, allocations: 312.1 kB / 0.7659 GB, free: 76.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.6305, allocations: 128.9 kB / 0.766 GB, free: 76.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.6319, allocations: 0.8967 MB / 0.7669 GB, free: 76.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.6333, allocations: 155.8 kB / 0.767 GB, free: 76.13 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.256e-05/0.6334, allocations: 31.19 kB / 0.7671 GB, free: 76.13 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001217/0.6346, allocations: 0.5105 MB / 0.7676 GB, free: 75.88 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001067/0.6357, allocations: 0.532 MB / 0.7681 GB, free: 75.51 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001791/0.6375, allocations: 0.703 MB / 0.7688 GB, free: 75.11 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.598e-06/0.6375, allocations: 6.25 kB / 0.7688 GB, free: 75.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002811/0.6404, allocations: 0.9989 MB / 0.7698 GB, free: 74.74 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.6404, allocations: 12.06 kB / 0.7698 GB, free: 74.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.6404, allocations: 4.375 kB / 0.7698 GB, free: 74.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.6414, allocations: 298.6 kB / 0.7701 GB, free: 74.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.642, allocations: 130.5 kB / 0.7702 GB, free: 74.65 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.6433, allocations: 0.8987 MB / 0.7711 GB, free: 73.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.6446, allocations: 135 kB / 0.7712 GB, free: 73.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.375e-05/0.6447, allocations: 30.45 kB / 0.7712 GB, free: 73.91 MB / 0.5762 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.0002098/0.6449, allocations: 225.7 kB / 0.7714 GB, free: 73.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.6451, allocations: 113.5 kB / 0.7715 GB, free: 73.64 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003692/0.6488, allocations: 1.078 MB / 0.7726 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.6489, allocations: 5.234 kB / 0.7726 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.6489, allocations: 4 kB / 0.7726 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.6493, allocations: 254.3 kB / 0.7728 GB, free: 72.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.6496, allocations: 13.58 kB / 0.7729 GB, free: 72.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008467/0.6504, allocations: 67.92 kB / 0.7729 GB, free: 72.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.6505, allocations: 29.05 kB / 0.7729 GB, free: 72.75 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.002781/0.6533, allocations: 0.7743 MB / 0.7737 GB, free: 72.34 MB / 0.5762 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon could not be translated