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.001475/0.001475, allocations: 107.6 kB / 16.27 MB, free: 6.414 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.001545/0.001545, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.411/1.411, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.0805/0.0805, allocations: 16.68 MB / 307.7 MB, free: 14.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00261/0.00261, allocations: 69.22 kB / 372.3 MB, free: 48.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1459, allocations: 53.56 MB / 425.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.04284/0.1888, allocations: 40.9 MB / 466.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.2108, allocations: 10.46 MB / 477.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006397/0.2172, allocations: 107.4 kB / 477.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006151/0.2234, allocations: 1.385 MB / 478.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01455/0.238, allocations: 3.94 MB / 482.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007481/0.2455, allocations: 2.605 MB / 485.3 MB, free: 1.281 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.01441/0.26, allocations: 8.626 MB / 493.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004857/0.2649, allocations: 2.136 MB / 496 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006284/0.2712, allocations: 2.919 MB / 499 MB, free: 3.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006491/0.2777, allocations: 3.085 MB / 0.4903 GB, free: 436 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002196/0.28, allocations: 472 kB / 0.4907 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004921/0.2849, allocations: 1.023 MB / 0.4917 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001973/0.2869, allocations: 1.058 MB / 0.4928 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005957/0.2929, allocations: 2.865 MB / 0.4956 GB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.3034, allocations: 6.998 MB / 0.5024 GB, free: 3.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.3034, allocations: 4 kB / 0.5024 GB, free: 3.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3034, allocations: 3.938 kB / 0.5024 GB, free: 3.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002053/0.3036, allocations: 3.938 kB / 0.5024 GB, free: 3.969 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.2326/0.5362, allocations: 6.973 MB / 0.5092 GB, free: 77.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.5363, allocations: 9.938 kB / 0.5092 GB, free: 77.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006506/0.5428, allocations: 1.028 MB / 0.5102 GB, free: 77.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008251/0.5511, allocations: 3.11 MB / 0.5133 GB, free: 75.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.5514, allocations: 278.3 kB / 0.5135 GB, free: 75.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008429/0.5523, allocations: 369.1 kB / 0.5139 GB, free: 75.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006717/0.559, allocations: 3.991 MB / 0.5178 GB, free: 73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.377e-05/0.5591, allocations: 24.81 kB / 0.5178 GB, free: 72.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003761/0.5595, allocations: 157 kB / 0.518 GB, free: 72.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-05/0.5596, allocations: 89.12 kB / 0.518 GB, free: 72.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006498/0.5661, allocations: 3.174 MB / 0.5211 GB, free: 71.5 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.03141/0.5975, allocations: 24.21 MB / 0.5448 GB, free: 50.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005244/0.6028, allocations: 3.591 MB / 0.5483 GB, free: 47.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.6046, allocations: 1.23 MB / 0.5495 GB, free: 45.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.6048, allocations: 38.89 kB / 0.5495 GB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.668e-05/0.6048, allocations: 77.56 kB / 0.5496 GB, free: 45.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=297): time 5.09e-06/0.6049, allocations: 0 / 0.5496 GB, free: 45.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=297): time 0.01398/0.6188, allocations: 5.369 MB / 0.5549 GB, free: 40.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.6189, allocations: 210.9 kB / 0.5551 GB, free: 40.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005108/0.6241, allocations: 3.665 MB / 0.5586 GB, free: 36.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007088/0.6248, allocations: 101.6 kB / 0.5587 GB, free: 36.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.6261, allocations: 1.902 MB / 0.5606 GB, free: 34.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.6274, allocations: 1.158 MB / 0.5617 GB, free: 33.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002042/0.6295, allocations: 1.536 MB / 0.5632 GB, free: 31.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.043e-05/0.6295, allocations: 309.1 kB / 0.5635 GB, free: 31.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003661/0.6332, allocations: 2.396 MB / 0.5659 GB, free: 29.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004371/0.6376, allocations: 3.309 MB / 0.5691 GB, free: 25.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/0.6445, allocations: 4.689 MB / 0.5737 GB, free: 20.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/0.6445, allocations: 4 kB / 0.5737 GB, free: 20.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01705/0.6616, allocations: 8.443 MB / 0.5819 GB, free: 11.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/0.6617, allocations: 12 kB / 0.5819 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/0.6617, allocations: 19.06 kB / 0.5819 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/0.6726, allocations: 2.156 MB / 0.584 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006327/0.679, allocations: 1.627 MB / 0.5856 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.031/0.71, allocations: 25.91 MB / 0.6109 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008095/0.7181, allocations: 0.6001 MB / 0.6115 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/0.7196, allocations: 280 kB / 0.6118 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007559/0.7272, allocations: 2.903 MB / 0.6146 GB, free: 8.617 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006144/0.7334, allocations: 3.207 MB / 0.6178 GB, free: 5.184 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008236/0.7417, allocations: 4.533 MB / 0.6222 GB, free: 412 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.365e-05/0.7417, allocations: 11.92 kB / 0.6222 GB, free: 400 kB / 414.1 MB Notification: Performance of matching and sorting (n=1091) (initialization_lambda0): time 0.01956/0.7613, allocations: 7.626 MB / 0.6296 GB, free: 8.637 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.7614, allocations: 12 kB / 0.6296 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/0.7614, allocations: 16 kB / 0.6297 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009783/0.7712, allocations: 1.636 MB / 0.6313 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007594/0.7789, allocations: 1.705 MB / 0.6329 GB, free: 5.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02464/0.8035, allocations: 21.09 MB / 0.6535 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008187/0.8118, allocations: 484.1 kB / 0.654 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/0.8132, allocations: 268 kB / 0.6542 GB, free: 13.75 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.001784/0.815, allocations: 0.5365 MB / 0.6548 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/0.8164, allocations: 430.8 kB / 0.6552 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006912/0.8234, allocations: 3.187 MB / 0.6583 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.031e-05/0.8234, allocations: 11.95 kB / 0.6583 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.8234, allocations: 0 / 0.6583 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003192/0.8266, allocations: 0.8663 MB / 0.6591 GB, free: 8.664 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001521/0.8282, allocations: 59.92 kB / 0.6592 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0036/0.8318, allocations: 151.8 kB / 0.6593 GB, free: 8.457 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/0.8324, allocations: 226.6 kB / 0.6596 GB, free: 8.238 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008434/0.8408, allocations: 3.218 MB / 0.6627 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008143/0.849, allocations: 4.029 MB / 0.6666 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001936/0.851, allocations: 1.054 MB / 0.6677 GB, free: 15.91 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004471/0.8555, allocations: 2.254 MB / 0.6699 GB, free: 13.65 MB / 478.1 MB Notification: Performance of Backend: time 7.51e-07/0.8555, allocations: 0 / 0.6699 GB, free: 13.65 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2256/1.081, allocations: 13.57 MB / 0.6831 GB, free: 151.3 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.01775/1.099, allocations: 9.653 MB / 0.6926 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