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.001554/0.001554, allocations: 112.7 kB / 17.75 MB, free: 5.305 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.001513/0.001513, allocations: 183 kB / 18.68 MB, free: 4.379 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.574/1.574, allocations: 205.1 MB / 224.6 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.3498/0.3498, allocations: 48.85 MB / 320.8 MB, free: 11.01 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.002071/0.002072, allocations: 67.84 kB / 451.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.135, 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.6201/0.7551, allocations: 258.4 MB / 0.7507 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.4576/1.213, allocations: 18.6 MB / 0.7689 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/1.215, allocations: 34.25 kB / 0.7689 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003327/1.219, allocations: 0.9757 MB / 0.7699 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005286/1.224, allocations: 1.506 MB / 0.7714 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02969/1.254, allocations: 8.011 MB / 0.7792 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01694/1.271, allocations: 12.27 MB / 0.7912 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00815/1.279, allocations: 4.035 MB / 0.7951 GB, free: 16.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/1.289, allocations: 3.836 MB / 0.7989 GB, free: 16.92 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009535/1.299, allocations: 4.012 MB / 0.8028 GB, free: 16.92 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.004346/1.303, allocations: 1.065 MB / 0.8038 GB, free: 16.92 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02404/1.327, allocations: 8.724 MB / 0.8123 GB, free: 16.86 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.005583/1.333, allocations: 3.343 MB / 0.8156 GB, free: 16.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.01188/1.345, allocations: 4.124 MB / 0.8196 GB, free: 16.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03185/1.377, allocations: 17.19 MB / 0.8364 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/1.377, allocations: 0 / 0.8364 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.495e-06/1.377, allocations: 4.562 kB / 0.8364 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0004617/1.377, allocations: 0 / 0.8364 GB, free: 7.352 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.03794/1.415, allocations: 7.629 MB / 0.8439 GB, free: 348 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/1.415, allocations: 11.89 kB / 0.8439 GB, free: 336 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01782/1.433, allocations: 2.419 MB / 0.8462 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/1.446, allocations: 3.789 MB / 0.8499 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000614/1.446, allocations: 391.8 kB / 0.8503 GB, free: 9.871 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004389/1.451, allocations: 0.6857 MB / 0.851 GB, free: 9.199 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03972/1.49, allocations: 13.35 MB / 0.864 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002337/1.491, allocations: 3.094 kB / 0.864 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003111/1.494, allocations: 216 kB / 0.8642 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004521/1.494, allocations: 358.5 kB / 0.8646 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04902/1.543, allocations: 15.41 MB / 0.8796 GB, free: 11.82 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.1207/1.664, allocations: 42.66 MB / 0.9213 GB, free: 15.3 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0444/1.708, allocations: 21.48 MB / 0.9423 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009597/1.718, allocations: 5.056 MB / 0.9472 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1591/1.877, allocations: 81.26 MB / 1.027 GB, free: 8.371 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/1.877, allocations: 119 kB / 1.027 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=604): time 2.197e-05/1.877, allocations: 0 / 1.027 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=605): time 0.4468/2.324, allocations: 39.32 MB / 1.065 GB, free: 404.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/2.324, allocations: 138.2 kB / 1.065 GB, free: 404.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/2.328, allocations: 1.634 MB / 1.067 GB, free: 404 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.00312/2.331, allocations: 139.5 kB / 1.067 GB, free: 403.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001391/2.333, allocations: 1.457 MB / 1.068 GB, free: 402.8 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.004404/2.337, allocations: 2.205 MB / 1.07 GB, free: 401.1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006845/2.344, allocations: 1.285 MB / 1.072 GB, free: 400.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.055e-05/2.344, allocations: 305.1 kB / 1.072 GB, free: 400.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01034/2.355, allocations: 5.722 MB / 1.078 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/2.366, allocations: 6.326 MB / 1.084 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02451/2.391, allocations: 12.41 MB / 1.096 GB, free: 388 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-05/2.391, allocations: 3.625 kB / 1.096 GB, free: 388 MB / 0.8106 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.04667/2.438, allocations: 19.26 MB / 1.115 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.298e-05/2.438, allocations: 8 kB / 1.115 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.17e-05/2.438, allocations: 8 kB / 1.115 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.135/2.573, allocations: 31.54 MB / 1.146 GB, free: 339.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/2.575, allocations: 427.4 kB / 1.146 GB, free: 339.5 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.02167/2.596, allocations: 11.54 MB / 1.157 GB, free: 327.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006861/2.603, allocations: 319.6 kB / 1.158 GB, free: 327.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/2.606, allocations: 351.7 kB / 1.158 GB, free: 327.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01408/2.62, allocations: 7.195 MB / 1.165 GB, free: 320 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01051/2.63, allocations: 6.258 MB / 1.171 GB, free: 313.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02082/2.651, allocations: 12.27 MB / 1.183 GB, free: 301.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.985e-05/2.651, allocations: 4 kB / 1.183 GB, free: 301.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=697) (initialization_lambda0): time 0.04226/2.693, allocations: 18.42 MB / 1.201 GB, free: 282.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/2.693, allocations: 12 kB / 1.201 GB, free: 282.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.469e-05/2.693, allocations: 8 kB / 1.201 GB, free: 282.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09896/2.792, allocations: 24.19 MB / 1.225 GB, free: 258.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/2.795, allocations: 0.4915 MB / 1.225 GB, free: 257.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.02557/2.821, allocations: 11.64 MB / 1.236 GB, free: 246.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008318/2.829, allocations: 319.6 kB / 1.237 GB, free: 245.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003585/2.833, allocations: 355.7 kB / 1.237 GB, free: 245.5 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.005666/2.839, allocations: 458.5 kB / 1.238 GB, free: 245 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003417/2.842, allocations: 361.9 kB / 1.238 GB, free: 244.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05224/2.894, allocations: 35.18 MB / 1.272 GB, free: 209.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002599/2.895, allocations: 31.89 kB / 1.272 GB, free: 209.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.838e-05/2.895, allocations: 0 / 1.272 GB, free: 209.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005802/2.9, allocations: 1.783 MB / 1.274 GB, free: 207.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002955/2.903, allocations: 211.9 kB / 1.274 GB, free: 207.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008275/2.912, allocations: 455.3 kB / 1.275 GB, free: 206.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002767/2.914, allocations: 0.5038 MB / 1.275 GB, free: 206.4 MB / 0.8106 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.04084/2.955, allocations: 16.56 MB / 1.291 GB, free: 189.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03332/2.989, allocations: 19.51 MB / 1.31 GB, free: 170.2 MB / 0.8106 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.009064/2.998, allocations: 6.54 MB / 1.317 GB, free: 163.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002518/3, allocations: 1.18 MB / 1.318 GB, free: 162.5 MB / 0.8106 GB Notification: Performance of Backend: time 9.62e-07/3, allocations: 0 / 1.318 GB, free: 162.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.05621/3.057, allocations: 17.92 MB / 1.335 GB, free: 144.7 MB / 0.8106 GB Notification: Performance of SimCode: time 0.02567/3.082, allocations: 12.41 MB / 1.348 GB, free: 132.2 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