Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_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.00157/0.00157, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.00179/0.00179, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.317/1.317, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06542/0.06542, allocations: 14.17 MB / 284.7 MB, free: 13.87 MB / 238.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.001575/0.001575, allocations: 66.52 kB / 399.3 MB, free: 42.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07662, allocations: 50.13 MB / 449.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01638/0.09302, allocations: 15.97 MB / 465.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.1055, allocations: 6.838 MB / 472.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003939/0.1095, allocations: 67.62 kB / 472.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00303/0.1126, allocations: 0.8221 MB / 473.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007323/0.12, allocations: 2.54 MB / 475.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003785/0.1238, allocations: 1.544 MB / 477.2 MB, free: 15.68 MB / 366.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.007131/0.1309, allocations: 5.087 MB / 482.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1323, allocations: 0.749 MB / 483 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002804/0.1351, allocations: 1.771 MB / 484.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002719/0.1378, allocations: 1.848 MB / 486.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006582/0.1385, allocations: 288 kB / 486.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/0.1405, allocations: 0.6989 MB / 487.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005624/0.141, allocations: 0.6342 MB / 488.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002163/0.1432, allocations: 1.648 MB / 489.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005322/0.1485, allocations: 4.221 MB / 494.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1486, allocations: 0 / 494.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1486, allocations: 0 / 494.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.359e-05/0.1487, allocations: 0 / 494.1 MB, free: 14.65 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01336/0.162, allocations: 4.173 MB / 498.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1621, allocations: 8.031 kB / 498.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.1636, allocations: 413 kB / 498.7 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/0.1672, allocations: 1.938 MB / 0.4889 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.1673, allocations: 168.3 kB / 0.4891 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004001/0.1677, allocations: 227.8 kB / 0.4893 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003453/0.1712, allocations: 2.071 MB / 0.4913 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.3e-05/0.1713, allocations: 7.938 kB / 0.4913 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.1714, allocations: 80 kB / 0.4914 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.1715, allocations: 48 kB / 0.4915 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003595/0.1751, allocations: 1.924 MB / 0.4933 GB, free: 3.402 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.01952/0.1946, allocations: 12.21 MB / 0.5053 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004173/0.1988, allocations: 2.645 MB / 0.5079 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.2003, allocations: 0.8144 MB / 0.5087 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.475e-05/0.2004, allocations: 25.98 kB / 0.5087 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.2004, allocations: 52.56 kB / 0.5087 GB, free: 2.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 5.109e-06/0.2004, allocations: 4 kB / 0.5087 GB, free: 2.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.00964/0.2101, allocations: 3.406 MB / 0.5121 GB, free: 14.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.2102, allocations: 180.2 kB / 0.5122 GB, free: 14.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002859/0.2131, allocations: 1.876 MB / 0.5141 GB, free: 12.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002148/0.2133, allocations: 65.7 kB / 0.5141 GB, free: 12.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009089/0.2142, allocations: 1.096 MB / 0.5152 GB, free: 11.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007992/0.2151, allocations: 0.6816 MB / 0.5159 GB, free: 11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006809/0.2157, allocations: 493.4 kB / 0.5163 GB, free: 10.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2159, allocations: 309.1 kB / 0.5166 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.2175, allocations: 0.8329 MB / 0.5174 GB, free: 9.367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.2196, allocations: 1.467 MB / 0.5189 GB, free: 7.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003449/0.2231, allocations: 2.212 MB / 0.521 GB, free: 5.176 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.2231, allocations: 7.938 kB / 0.521 GB, free: 5.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.008937/0.232, allocations: 3.778 MB / 0.5247 GB, free: 1.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.2321, allocations: 12 kB / 0.5247 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.2321, allocations: 16 kB / 0.5248 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.201/0.4331, allocations: 1.782 MB / 0.5265 GB, free: 78.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.4356, allocations: 0.533 MB / 0.527 GB, free: 78.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02207/0.4577, allocations: 21.35 MB / 0.5479 GB, free: 62.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.4602, allocations: 267.6 kB / 0.5481 GB, free: 62.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.4603, allocations: 106.3 kB / 0.5482 GB, free: 62.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001772/0.4621, allocations: 1.073 MB / 0.5493 GB, free: 61.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001385/0.4635, allocations: 1.357 MB / 0.5506 GB, free: 60.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002348/0.4659, allocations: 2.054 MB / 0.5526 GB, free: 59.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.297e-06/0.4659, allocations: 9.844 kB / 0.5526 GB, free: 59.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.005379/0.4713, allocations: 2.964 MB / 0.5555 GB, free: 58.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.4713, allocations: 11.88 kB / 0.5555 GB, free: 58.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.4713, allocations: 15.88 kB / 0.5555 GB, free: 58.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/0.4774, allocations: 1.275 MB / 0.5568 GB, free: 58.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/0.4796, allocations: 0.603 MB / 0.5574 GB, free: 58.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.4909, allocations: 16.57 MB / 0.5735 GB, free: 42.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.4932, allocations: 193.9 kB / 0.5737 GB, free: 42.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.4933, allocations: 102.1 kB / 0.5738 GB, free: 42.6 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 5 (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 (286): * Single equations (assignments): 275 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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): 6 systems {(38,0), (2,0), (2,0), (2,0), (2,0), (10,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0005834/0.4939, allocations: 337.4 kB / 0.5741 GB, free: 42.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003925/0.4943, allocations: 251.8 kB / 0.5744 GB, free: 42.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.498, allocations: 2.109 MB / 0.5764 GB, free: 41.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.498, allocations: 11.95 kB / 0.5765 GB, free: 41.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.498, allocations: 3.984 kB / 0.5765 GB, free: 41.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007182/0.4987, allocations: 0.4977 MB / 0.5769 GB, free: 40.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002403/0.499, allocations: 35.56 kB / 0.577 GB, free: 40.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.5002, allocations: 75.12 kB / 0.5771 GB, free: 40.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.5004, allocations: 147.9 kB / 0.5772 GB, free: 40.69 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004287/0.5047, allocations: 2.093 MB / 0.5792 GB, free: 39.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003392/0.5081, allocations: 2.649 MB / 0.5818 GB, free: 36.59 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009167/0.5091, allocations: 0.691 MB / 0.5825 GB, free: 35.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.5105, allocations: 1.217 MB / 0.5837 GB, free: 34.67 MB / 414.1 MB Notification: Performance of Backend: time 5.31e-07/0.5105, allocations: 0 / 0.5837 GB, free: 34.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/0.5215, allocations: 7.025 MB / 0.5905 GB, free: 27.43 MB / 414.1 MB Notification: Performance of SimCode: time 0.006823/0.5284, allocations: 6.431 MB / 0.5968 GB, free: 21 MB / 414.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