Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 106.2 kB / 16.27 MB, free: 5.977 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.00142/0.00142, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.347/1.347, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07958/0.07958, allocations: 16.76 MB / 307.8 MB, free: 14.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 62.73 kB / 372.4 MB, free: 48.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 53.58 MB / 426 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.03641/0.1392, allocations: 40.89 MB / 466.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.159, allocations: 10.47 MB / 477.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005284/0.1643, allocations: 107.4 kB / 477.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005297/0.1697, allocations: 1.385 MB / 478.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.1821, allocations: 3.937 MB / 482.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006999/0.1892, allocations: 2.613 MB / 485.4 MB, free: 1.09 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2647:11-2647:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.01355/0.2027, allocations: 8.625 MB / 494 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004954/0.2077, allocations: 2.14 MB / 496.2 MB, free: 6.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005336/0.2131, allocations: 2.911 MB / 499.1 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005628/0.2187, allocations: 3.089 MB / 0.4904 GB, free: 236 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001974/0.2207, allocations: 476 kB / 0.4909 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003918/0.2247, allocations: 1.019 MB / 0.4918 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001749/0.2264, allocations: 1.062 MB / 0.4929 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005419/0.2319, allocations: 2.861 MB / 0.4957 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.2422, allocations: 7.002 MB / 0.5025 GB, free: 3.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.2422, allocations: 0 / 0.5025 GB, free: 3.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2422, allocations: 0 / 0.5025 GB, free: 3.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002502/0.2425, allocations: 0 / 0.5025 GB, free: 3.781 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 862 * Number of variables: 862 Notification: Performance of Generate backend data structure: time 0.2595/0.502, allocations: 6.984 MB / 0.5093 GB, free: 77.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.5021, allocations: 8.375 kB / 0.5093 GB, free: 77.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006145/0.5082, allocations: 1.029 MB / 0.5103 GB, free: 77.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007612/0.5159, allocations: 3.102 MB / 0.5134 GB, free: 75.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.5161, allocations: 282 kB / 0.5136 GB, free: 75.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005292/0.5166, allocations: 369.6 kB / 0.514 GB, free: 75.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006009/0.5226, allocations: 3.989 MB / 0.5179 GB, free: 72.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.917e-05/0.5227, allocations: 25.75 kB / 0.5179 GB, free: 72.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003256/0.5231, allocations: 154.9 kB / 0.5181 GB, free: 72.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.5232, allocations: 88.19 kB / 0.5182 GB, free: 72.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006146/0.5293, allocations: 3.175 MB / 0.5213 GB, free: 71.39 MB / 382.1 MB 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.03014/0.5595, allocations: 24.22 MB / 0.5449 GB, free: 50.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005255/0.5648, allocations: 3.569 MB / 0.5484 GB, free: 46.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/0.5666, allocations: 1.233 MB / 0.5496 GB, free: 45.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.5668, allocations: 46.5 kB / 0.5496 GB, free: 45.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.522e-05/0.5668, allocations: 73.08 kB / 0.5497 GB, free: 45.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=297): time 4.989e-06/0.5668, allocations: 0 / 0.5497 GB, free: 45.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=297): time 0.01569/0.5825, allocations: 5.372 MB / 0.555 GB, free: 40.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/0.5826, allocations: 214.9 kB / 0.5552 GB, free: 39.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006801/0.5894, allocations: 3.653 MB / 0.5587 GB, free: 36.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000856/0.5903, allocations: 97.7 kB / 0.5588 GB, free: 36.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.5919, allocations: 1.909 MB / 0.5607 GB, free: 34.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/0.5935, allocations: 1.158 MB / 0.5618 GB, free: 32.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002324/0.5959, allocations: 1.54 MB / 0.5633 GB, free: 31.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.5959, allocations: 309 kB / 0.5636 GB, free: 31.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/0.5996, allocations: 2.396 MB / 0.566 GB, free: 28.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004277/0.6038, allocations: 3.309 MB / 0.5692 GB, free: 25.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006843/0.6107, allocations: 4.689 MB / 0.5738 GB, free: 20.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.442e-05/0.6108, allocations: 7.938 kB / 0.5738 GB, free: 20.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01735/0.6281, allocations: 8.443 MB / 0.582 GB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.6282, allocations: 12 kB / 0.582 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.464e-05/0.6283, allocations: 12 kB / 0.582 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01133/0.6396, allocations: 2.148 MB / 0.5841 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006827/0.6465, allocations: 1.631 MB / 0.5857 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03038/0.6769, allocations: 25.92 MB / 0.611 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008246/0.6852, allocations: 0.6118 MB / 0.6116 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/0.6862, allocations: 268 kB / 0.6119 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006068/0.6923, allocations: 2.91 MB / 0.6147 GB, free: 8.285 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004982/0.6973, allocations: 3.207 MB / 0.6179 GB, free: 4.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007659/0.705, allocations: 4.526 MB / 0.6223 GB, free: 80 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.909e-05/0.705, allocations: 7.938 kB / 0.6223 GB, free: 72 kB / 414.1 MB Notification: Performance of matching and sorting (n=1091) (initialization_lambda0): time 0.01576/0.7208, allocations: 7.629 MB / 0.6297 GB, free: 8.312 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.7209, allocations: 8 kB / 0.6298 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/0.7209, allocations: 16.53 kB / 0.6298 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01007/0.731, allocations: 1.634 MB / 0.6314 GB, free: 6.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007564/0.7386, allocations: 1.705 MB / 0.633 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/0.76, allocations: 21.1 MB / 0.6536 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006903/0.7669, allocations: 476.1 kB / 0.6541 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008029/0.7677, allocations: 276 kB / 0.6544 GB, free: 13.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 9 (GRIDL.componentPF.isSlackBus,GRID.componentPF.isSlackBus,NTLV.componentPF.isSlackBus,GEN.componentPF.isSlackBus,PSS.firstWashoutVsi2.integrator.local_reset,PSS.secondWashoutVsi1.integrator.local_reset,PSS.firstWashoutVsi1.integrator.local_reset,AVR.firstOrderLim.I.local_reset,TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1002 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,0,100.0%), (2,0,100.0%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(38,0), (10,0), (19,0), (2,0), (2,0), (2,0), (2,0)} Notification: Performance of prepare postOptimizeDAE: time 0.001261/0.769, allocations: 0.5319 MB / 0.6549 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.77, allocations: 426.8 kB / 0.6553 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006571/0.7766, allocations: 3.191 MB / 0.6584 GB, free: 9.242 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/0.7767, allocations: 11.95 kB / 0.6584 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.7767, allocations: 0 / 0.6584 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002952/0.7796, allocations: 0.8662 MB / 0.6593 GB, free: 8.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009644/0.7806, allocations: 52 kB / 0.6593 GB, free: 8.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00309/0.7837, allocations: 159.8 kB / 0.6595 GB, free: 8.133 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/0.7841, allocations: 218.6 kB / 0.6597 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00797/0.7921, allocations: 3.229 MB / 0.6628 GB, free: 4.734 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00789/0.8, allocations: 4.025 MB / 0.6667 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001897/0.802, allocations: 1.062 MB / 0.6678 GB, free: 15.59 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004123/0.8061, allocations: 2.254 MB / 0.67 GB, free: 13.33 MB / 478.1 MB Notification: Performance of Backend: time 6.01e-07/0.8061, allocations: 0 / 0.67 GB, free: 13.33 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2293/1.035, allocations: 13.57 MB / 0.6832 GB, free: 151.4 MB / 478.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.01676/1.052, allocations: 9.659 MB / 0.6927 GB, free: 147.7 MB / 478.1 MB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 0: TGOV.firstOrderLim.G.y >= 0.0 and TGOV.firstOrderLim.I.y > TGOV.firstOrderLim.lim.uMax or TGOV.firstOrderLim.G.y <= 0.0 and TGOV.firstOrderLim.I.y < TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 1: AVR.firstOrderLim.G.y >= 0.0 and AVR.firstOrderLim.I.y > AVR.firstOrderLim.lim.uMax or AVR.firstOrderLim.G.y <= 0.0 and AVR.firstOrderLim.I.y < AVR.firstOrderLim.lim.uMin. Error: Internal error SimCode DAEmode: The model PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat could not be translated