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.001364/0.001364, allocations: 101.9 kB / 16.4 MB, free: 6.461 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.001418/0.001418, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07439/0.07439, allocations: 16.78 MB / 308 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 427.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 53.56 MB / 480.8 MB, free: 4.926 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GEN.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GEN.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter NTLV.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter NTLV.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:4:3-5:21:writable] Warning: Parameter TGEN.componentPF.UNomA has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:8:3-9:21:writable] Warning: Parameter TGEN.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GRID.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GRID.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GRIDL.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GRIDL.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.2767/0.3875, allocations: 40.91 MB / 0.5095 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.405, allocations: 10.46 MB / 0.5197 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006212/0.4113, allocations: 107.9 kB / 0.5198 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005295/0.4166, allocations: 1.39 MB / 0.5212 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.4295, allocations: 4.164 MB / 0.5253 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006598/0.4361, allocations: 2.623 MB / 0.5278 GB, free: 4.715 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2652:11-2652:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.01273/0.4489, allocations: 8.668 MB / 0.5363 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004407/0.4533, allocations: 2.152 MB / 0.5384 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00612/0.4595, allocations: 2.986 MB / 0.5413 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006144/0.4656, allocations: 3.09 MB / 0.5443 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001701/0.4674, allocations: 481.2 kB / 0.5448 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004209/0.4716, allocations: 1.021 MB / 0.5458 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.4729, allocations: 1.05 MB / 0.5468 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005282/0.4782, allocations: 2.866 MB / 0.5496 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009895/0.4881, allocations: 7.124 MB / 0.5566 GB, free: 2.223 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4882, allocations: 0 / 0.5566 GB, free: 2.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4882, allocations: 0 / 0.5566 GB, free: 2.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001811/0.4884, allocations: 0 / 0.5566 GB, free: 2.223 MB / 398.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.02272/0.5111, allocations: 6.987 MB / 0.5634 GB, free: 11.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.5112, allocations: 8.031 kB / 0.5634 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005508/0.5167, allocations: 1.021 MB / 0.5644 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007692/0.5244, allocations: 3.204 MB / 0.5675 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/0.5247, allocations: 283.1 kB / 0.5678 GB, free: 6.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008225/0.5255, allocations: 375.8 kB / 0.5682 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006789/0.5323, allocations: 3.999 MB / 0.5721 GB, free: 1.945 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8e-05/0.5324, allocations: 19.81 kB / 0.5721 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003935/0.5328, allocations: 152 kB / 0.5722 GB, free: 1.777 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.086e-05/0.5329, allocations: 91.98 kB / 0.5723 GB, free: 1.688 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006068/0.539, allocations: 3.172 MB / 0.5754 GB, free: 14.5 MB / 430.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.03594/0.575, allocations: 24.1 MB / 0.5989 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006188/0.5812, allocations: 3.593 MB / 0.6025 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/0.5833, allocations: 1.233 MB / 0.6037 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.5835, allocations: 44.22 kB / 0.6037 GB, free: 436 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.343e-05/0.5836, allocations: 77.5 kB / 0.6038 GB, free: 352 kB / 446.1 MB Notification: Performance of pre-optimization done (n=297): time 4.92e-06/0.5836, allocations: 4 kB / 0.6038 GB, free: 348 kB / 446.1 MB Notification: Performance of matching and sorting (n=297): time 0.01563/0.5992, allocations: 5.365 MB / 0.609 GB, free: 10.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/0.5994, allocations: 226.8 kB / 0.6092 GB, free: 10.65 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007701/0.6072, allocations: 3.653 MB / 0.6128 GB, free: 6.977 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007105/0.6079, allocations: 97.7 kB / 0.6129 GB, free: 6.875 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.61, allocations: 1.909 MB / 0.6148 GB, free: 4.984 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001919/0.612, allocations: 1.154 MB / 0.6159 GB, free: 3.836 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004574/0.6165, allocations: 1.536 MB / 0.6174 GB, free: 2.289 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6167, allocations: 301.1 kB / 0.6177 GB, free: 1.992 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005508/0.6222, allocations: 2.4 MB / 0.62 GB, free: 15.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006702/0.629, allocations: 3.313 MB / 0.6233 GB, free: 12.04 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0092/0.6382, allocations: 4.689 MB / 0.6278 GB, free: 7.098 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.294e-05/0.6383, allocations: 4 kB / 0.6278 GB, free: 7.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.02607/0.6643, allocations: 8.441 MB / 0.6361 GB, free: 14.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.291e-05/0.6645, allocations: 8 kB / 0.6361 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-05/0.6646, allocations: 16 kB / 0.6361 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01538/0.6799, allocations: 2.14 MB / 0.6382 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007587/0.6876, allocations: 1.638 MB / 0.6398 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03903/0.7267, allocations: 25.87 MB / 0.6651 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009883/0.7366, allocations: 0.6039 MB / 0.6656 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002046/0.7387, allocations: 279.9 kB / 0.6659 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0113/0.75, allocations: 2.907 MB / 0.6687 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.009415/0.7595, allocations: 3.203 MB / 0.6719 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01237/0.7719, allocations: 4.537 MB / 0.6763 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.206e-05/0.772, allocations: 4 kB / 0.6763 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1091) (initialization_lambda0): time 0.01986/0.7919, allocations: 7.621 MB / 0.6838 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.792, allocations: 19.33 kB / 0.6838 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.474e-05/0.792, allocations: 19.94 kB / 0.6838 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01033/0.8024, allocations: 1.625 MB / 0.6854 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007519/0.8099, allocations: 1.705 MB / 0.687 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02299/0.833, allocations: 21.06 MB / 0.7076 GB, free: 1.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007272/0.8403, allocations: 484.1 kB / 0.7081 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/0.8416, allocations: 272 kB / 0.7083 GB, free: 336 kB / 0.545 GB 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.2598/1.101, allocations: 0.5238 MB / 0.7088 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001729/1.103, allocations: 426.7 kB / 0.7092 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006559/1.11, allocations: 3.186 MB / 0.7124 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/1.11, allocations: 14.16 kB / 0.7124 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/1.11, allocations: 0 / 0.7124 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002431/1.112, allocations: 0.8665 MB / 0.7132 GB, free: 178.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/1.113, allocations: 53.27 kB / 0.7133 GB, free: 178.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002976/1.116, allocations: 150.9 kB / 0.7134 GB, free: 178.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004995/1.117, allocations: 221.8 kB / 0.7136 GB, free: 178.8 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007523/1.124, allocations: 3.22 MB / 0.7168 GB, free: 178.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007955/1.132, allocations: 4.031 MB / 0.7207 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001967/1.134, allocations: 1.058 MB / 0.7217 GB, free: 177.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004412/1.139, allocations: 2.246 MB / 0.7239 GB, free: 176.6 MB / 0.545 GB Notification: Performance of Backend: time 7.52e-07/1.139, allocations: 3 kB / 0.7239 GB, free: 176.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02692/1.165, allocations: 13.58 MB / 0.7372 GB, free: 170.1 MB / 0.545 GB Notification: Performance of SimCode: time 0.01548/1.181, allocations: 9.544 MB / 0.7465 GB, free: 165.6 MB / 0.545 GB [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