Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc") translateModel(ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 102.5 kB / 17.74 MB, free: 5.316 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.001/0.001, allocations: 187 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2512/0.2512, allocations: 48.85 MB / 320.8 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.001481, allocations: 76.11 kB / 451.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.109, allocations: 59.15 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc): time 0.499/0.6081, allocations: 258.4 MB / 0.7507 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.3117/0.9198, allocations: 18.61 MB / 0.7689 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.9212, allocations: 33.53 kB / 0.7689 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.9233, allocations: 0.9602 MB / 0.7699 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003066/0.9264, allocations: 1.478 MB / 0.7713 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0191/0.9456, allocations: 7.999 MB / 0.7791 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01265/0.9582, allocations: 12.24 MB / 0.7911 GB, free: 1.254 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005756/0.964, allocations: 4.034 MB / 0.795 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006796/0.9708, allocations: 3.843 MB / 0.7988 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007944/0.9788, allocations: 4.005 MB / 0.8027 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.004064/0.9829, allocations: 1.068 MB / 0.8037 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01938/1.002, allocations: 8.72 MB / 0.8122 GB, free: 0.957 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.005619/1.008, allocations: 3.348 MB / 0.8155 GB, free: 0.957 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01043/1.018, allocations: 4.121 MB / 0.8195 GB, free: 260 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02818/1.047, allocations: 17.16 MB / 0.8363 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.047, allocations: 1.031 kB / 0.8363 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.452e-06/1.047, allocations: 0 / 0.8363 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003744/1.047, allocations: 0 / 0.8363 GB, free: 7.473 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1371 * Number of variables: 1371 Notification: Performance of Generate backend data structure: time 0.03031/1.077, allocations: 7.483 MB / 0.8436 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/1.077, allocations: 11.89 kB / 0.8436 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01595/1.093, allocations: 2.392 MB / 0.846 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/1.104, allocations: 3.788 MB / 0.8497 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005363/1.105, allocations: 384.9 kB / 0.85 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003966/1.109, allocations: 0.6875 MB / 0.8507 GB, free: 9.551 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03931/1.148, allocations: 13.34 MB / 0.8637 GB, free: 12.15 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002395/1.148, allocations: 4.062 kB / 0.8637 GB, free: 12.15 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003416/1.152, allocations: 221.8 kB / 0.8639 GB, free: 11.94 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004655/1.152, allocations: 355.1 kB / 0.8643 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03774/1.19, allocations: 15.41 MB / 0.8793 GB, free: 12.18 MB / 0.6544 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.08014/1.27, allocations: 42.62 MB / 0.921 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03379/1.304, allocations: 21.47 MB / 0.9419 GB, free: 8.738 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008776/1.313, allocations: 5.06 MB / 0.9469 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1572/1.47, allocations: 81.24 MB / 1.026 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/1.47, allocations: 107.9 kB / 1.026 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=604): time 1.823e-05/1.47, allocations: 0 / 1.026 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=605): time 0.3872/1.858, allocations: 39.26 MB / 1.065 GB, free: 404.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/1.858, allocations: 139.6 kB / 1.065 GB, free: 404.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005478/1.863, allocations: 1.634 MB / 1.066 GB, free: 403.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.003887/1.867, allocations: 138.6 kB / 1.066 GB, free: 403.7 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001767/1.869, allocations: 1.413 MB / 1.068 GB, free: 402.6 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.005954/1.875, allocations: 2.099 MB / 1.07 GB, free: 401 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009627/1.885, allocations: 1.288 MB / 1.071 GB, free: 400.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.042e-05/1.885, allocations: 305.1 kB / 1.071 GB, free: 400.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.011/1.896, allocations: 5.725 MB / 1.077 GB, free: 397.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01064/1.906, allocations: 6.324 MB / 1.083 GB, free: 394.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01929/1.926, allocations: 12.4 MB / 1.095 GB, free: 388 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.335e-05/1.926, allocations: 3.562 kB / 1.095 GB, free: 388 MB / 0.8106 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.04146/1.967, allocations: 19.24 MB / 1.114 GB, free: 371 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/1.967, allocations: 8 kB / 1.114 GB, free: 371 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.824e-05/1.967, allocations: 12 kB / 1.114 GB, free: 371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1351/2.103, allocations: 31.55 MB / 1.145 GB, free: 340.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/2.105, allocations: 419.4 kB / 1.145 GB, free: 339.9 MB / 0.8106 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 calculateStrongComponentJacobians (initialization): time 0.02233/2.127, allocations: 11.55 MB / 1.157 GB, free: 328.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006906/2.134, allocations: 315.7 kB / 1.157 GB, free: 328 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/2.136, allocations: 357.2 kB / 1.157 GB, free: 327.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01358/2.15, allocations: 7.188 MB / 1.164 GB, free: 320.5 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01026/2.16, allocations: 6.255 MB / 1.17 GB, free: 314.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01979/2.18, allocations: 12.28 MB / 1.182 GB, free: 301.6 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.478e-05/2.18, allocations: 0 / 1.182 GB, free: 301.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=697) (initialization_lambda0): time 0.03655/2.216, allocations: 18.4 MB / 1.2 GB, free: 283.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/2.216, allocations: 11.98 kB / 1.2 GB, free: 283.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/2.216, allocations: 12.25 kB / 1.2 GB, free: 283.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09558/2.312, allocations: 24.19 MB / 1.224 GB, free: 258.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/2.315, allocations: 0.4992 MB / 1.225 GB, free: 258.4 MB / 0.8106 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 calculateStrongComponentJacobians (initialization): time 0.01964/2.334, allocations: 11.64 MB / 1.236 GB, free: 246.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006715/2.341, allocations: 319.6 kB / 1.236 GB, free: 246.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002138/2.343, allocations: 355.7 kB / 1.237 GB, free: 246 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 13 (Plant.Boiler.WaterSide.fluidState[11].phase,Plant.Boiler.WaterSide.fluidState[10].phase,Plant.Boiler.WaterSide.fluidState[9].phase,Plant.Boiler.WaterSide.fluidState[8].phase,Plant.Boiler.WaterSide.fluidState[7].phase,Plant.Boiler.WaterSide.fluidState[6].phase,Plant.Boiler.WaterSide.fluidState[5].phase,Plant.Boiler.WaterSide.fluidState[4].phase,Plant.Boiler.WaterSide.fluidState[3].phase,Plant.Boiler.WaterSide.fluidState[2].phase,Plant.Boiler.WaterSide.fluidState[1].phase,Plant.WaterOut.fluidState.phase,Plant.WaterIn.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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 {(35,460)} Notification: Performance of prepare postOptimizeDAE: time 0.003647/2.347, allocations: 446.1 kB / 1.237 GB, free: 245.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002593/2.349, allocations: 348.2 kB / 1.237 GB, free: 245.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04863/2.398, allocations: 35.18 MB / 1.272 GB, free: 209.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001701/2.398, allocations: 31.88 kB / 1.272 GB, free: 209.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/2.398, allocations: 0 / 1.272 GB, free: 209.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005451/2.404, allocations: 1.761 MB / 1.273 GB, free: 208 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002736/2.407, allocations: 211.9 kB / 1.274 GB, free: 207.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007276/2.414, allocations: 467.3 kB / 1.274 GB, free: 207.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00227/2.416, allocations: 0.4999 MB / 1.275 GB, free: 206.9 MB / 0.8106 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03988/2.456, allocations: 16.54 MB / 1.291 GB, free: 190.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03439/2.49, allocations: 19.5 MB / 1.31 GB, free: 170.7 MB / 0.8106 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.009304/2.5, allocations: 6.54 MB / 1.316 GB, free: 164.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002114/2.502, allocations: 1.18 MB / 1.317 GB, free: 163 MB / 0.8106 GB Notification: Performance of Backend: time 3.81e-07/2.502, allocations: 0 / 1.317 GB, free: 163 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.05286/2.555, allocations: 17.89 MB / 1.335 GB, free: 145.4 MB / 0.8106 GB Notification: Performance of SimCode: time 0.02326/2.578, allocations: 12.23 MB / 1.347 GB, free: 133.1 MB / 0.8106 GB [CodegenCFunctions.tpl:7894:34-7894:34:writable] Error: Template error: varAttributes got negative index=-2 for _omcQERROR_5Fcref2simvar_5Ffailed_20_24START_2EPlant_2EBoiler_2EGasSide_2EheatTransfer_2Egamma. Error: Internal error SimCode DAEmode: The model ThermoPower.Examples.HRB.Simulators.OpenLoopSimulatorHtc could not be translated