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.001599/0.001599, allocations: 104.6 kB / 16.41 MB, free: 6.508 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.001748/0.001748, allocations: 189.7 kB / 17.34 MB, free: 5.738 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.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06125/0.06125, allocations: 14.16 MB / 284.7 MB, free: 13.86 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.001578/0.001578, allocations: 63.98 kB / 399.3 MB, free: 42.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0747/0.07628, allocations: 50.14 MB / 449.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01603/0.09235, allocations: 15.95 MB / 465.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1043, allocations: 6.842 MB / 472.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002842/0.1072, allocations: 71.62 kB / 472.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002752/0.1099, allocations: 0.8299 MB / 473.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007924/0.118, allocations: 2.651 MB / 475.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.1218, allocations: 1.527 MB / 477.3 MB, free: 15.67 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.007065/0.1289, allocations: 5.099 MB / 482.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.1305, allocations: 0.7451 MB / 483.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003268/0.1338, allocations: 1.779 MB / 484.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003395/0.1372, allocations: 1.844 MB / 486.8 MB, free: 6.141 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001048/0.1383, allocations: 288 kB / 487.1 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002399/0.1407, allocations: 0.6989 MB / 487.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009112/0.1416, allocations: 0.6341 MB / 488.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.1444, allocations: 1.644 MB / 490 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006417/0.1508, allocations: 4.221 MB / 494.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1508, allocations: 0 / 494.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1508, allocations: 0 / 494.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001425/0.151, allocations: 4 kB / 494.3 MB, free: 14.63 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.01504/0.166, allocations: 4.177 MB / 498.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.933e-05/0.1661, allocations: 12.03 kB / 498.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002154/0.1683, allocations: 409 kB / 498.9 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004632/0.1729, allocations: 1.942 MB / 0.4891 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.1731, allocations: 160.4 kB / 0.4892 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006174/0.1738, allocations: 231.8 kB / 0.4894 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.1782, allocations: 2.071 MB / 0.4915 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.1782, allocations: 7.938 kB / 0.4915 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/0.1785, allocations: 83.94 kB / 0.4915 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-05/0.1785, allocations: 52 kB / 0.4916 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003834/0.1823, allocations: 1.912 MB / 0.4935 GB, free: 3.383 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.01984/0.2022, allocations: 12.22 MB / 0.5054 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004294/0.2065, allocations: 2.641 MB / 0.508 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.208, allocations: 0.8144 MB / 0.5088 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.2082, allocations: 29.98 kB / 0.5088 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.46e-05/0.2082, allocations: 56.56 kB / 0.5088 GB, free: 2.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 5.431e-06/0.2082, allocations: 0 / 0.5088 GB, free: 2.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01038/0.2186, allocations: 3.406 MB / 0.5122 GB, free: 14.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.2188, allocations: 180.2 kB / 0.5123 GB, free: 14.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003228/0.222, allocations: 1.876 MB / 0.5142 GB, free: 12.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002838/0.2223, allocations: 65.7 kB / 0.5142 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.2233, allocations: 1.092 MB / 0.5153 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008658/0.2242, allocations: 0.6816 MB / 0.516 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009148/0.2251, allocations: 493.4 kB / 0.5164 GB, free: 10.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2253, allocations: 305.1 kB / 0.5167 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001748/0.227, allocations: 0.8407 MB / 0.5176 GB, free: 9.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.2292, allocations: 1.467 MB / 0.519 GB, free: 7.609 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/0.2329, allocations: 2.205 MB / 0.5211 GB, free: 5.156 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.745e-05/0.2329, allocations: 4 kB / 0.5211 GB, free: 5.152 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009836/0.2427, allocations: 3.778 MB / 0.5248 GB, free: 1.289 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.2428, allocations: 18.95 kB / 0.5249 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.345e-05/0.2429, allocations: 23.94 kB / 0.5249 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2084/0.4513, allocations: 1.78 MB / 0.5266 GB, free: 78.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/0.4538, allocations: 0.534 MB / 0.5271 GB, free: 78.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02348/0.4773, allocations: 21.35 MB / 0.548 GB, free: 62.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/0.4799, allocations: 273.2 kB / 0.5482 GB, free: 62.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.4801, allocations: 103 kB / 0.5483 GB, free: 62.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001874/0.482, allocations: 1.072 MB / 0.5494 GB, free: 62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001529/0.4835, allocations: 1.361 MB / 0.5507 GB, free: 60.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002502/0.486, allocations: 2.053 MB / 0.5527 GB, free: 59.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.312e-05/0.486, allocations: 4.281 kB / 0.5527 GB, free: 59.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.005803/0.4918, allocations: 2.967 MB / 0.5556 GB, free: 58.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4919, allocations: 11.91 kB / 0.5556 GB, free: 58.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.4919, allocations: 15.81 kB / 0.5556 GB, free: 58.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005995/0.4979, allocations: 1.274 MB / 0.5569 GB, free: 58.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.5002, allocations: 0.6039 MB / 0.5575 GB, free: 58.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/0.5114, allocations: 16.56 MB / 0.5737 GB, free: 42.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5138, allocations: 191.5 kB / 0.5738 GB, free: 42.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.514, allocations: 107 kB / 0.5739 GB, free: 42.61 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.0005244/0.5145, allocations: 342.6 kB / 0.5743 GB, free: 42.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004433/0.5149, allocations: 248.3 kB / 0.5745 GB, free: 42.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.5186, allocations: 2.108 MB / 0.5766 GB, free: 41.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.5187, allocations: 11.95 kB / 0.5766 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5187, allocations: 4 kB / 0.5766 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009371/0.5196, allocations: 0.4954 MB / 0.5771 GB, free: 40.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.5199, allocations: 35.84 kB / 0.5771 GB, free: 40.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.5212, allocations: 77.44 kB / 0.5772 GB, free: 40.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.5214, allocations: 151.3 kB / 0.5773 GB, free: 40.63 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00436/0.5258, allocations: 2.094 MB / 0.5794 GB, free: 39.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003684/0.5295, allocations: 2.649 MB / 0.5819 GB, free: 36.55 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009332/0.5305, allocations: 0.691 MB / 0.5826 GB, free: 35.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001445/0.5319, allocations: 1.222 MB / 0.5838 GB, free: 34.62 MB / 414.1 MB Notification: Performance of Backend: time 5.41e-07/0.5319, allocations: 0 / 0.5838 GB, free: 34.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01163/0.5436, allocations: 7.014 MB / 0.5907 GB, free: 27.39 MB / 414.1 MB Notification: Performance of SimCode: time 0.007547/0.5512, allocations: 6.448 MB / 0.597 GB, free: 20.95 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