Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_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.001445/0.001445, allocations: 102.7 kB / 16.97 MB, free: 6.188 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.00158/0.00158, allocations: 188.8 kB / 17.9 MB, free: 5.289 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.413/1.413, allocations: 205.1 MB / 223.8 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06282/0.06282, allocations: 14.19 MB / 285.3 MB, free: 13.92 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.001468/0.001468, allocations: 71.91 kB / 349.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2717, allocations: 50.12 MB / 399.5 MB, free: 48.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01188/0.2836, allocations: 15.96 MB / 415.4 MB, free: 35.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.2944, allocations: 6.835 MB / 422.3 MB, free: 28.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.2976, allocations: 75.56 kB / 422.3 MB, free: 28.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.3001, allocations: 0.83 MB / 423.2 MB, free: 27.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006257/0.3064, allocations: 2.548 MB / 425.7 MB, free: 25.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002836/0.3092, allocations: 1.531 MB / 427.2 MB, free: 23.53 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2646:11-2646:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.005521/0.3148, allocations: 5.087 MB / 432.3 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001357/0.3161, allocations: 0.749 MB / 433.1 MB, free: 17.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002667/0.3188, allocations: 1.747 MB / 434.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00276/0.3216, allocations: 1.844 MB / 436.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009649/0.3226, allocations: 288 kB / 436.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002352/0.3249, allocations: 0.7028 MB / 437.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005365/0.3255, allocations: 0.6303 MB / 438.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001806/0.3273, allocations: 1.652 MB / 439.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004058/0.3314, allocations: 4.116 MB / 444 MB, free: 6.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3314, allocations: 0 / 444 MB, free: 6.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3314, allocations: 0 / 444 MB, free: 6.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.49e-05/0.3314, allocations: 0 / 444 MB, free: 6.645 MB / 318.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.01178/0.3432, allocations: 4.211 MB / 448.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3433, allocations: 12.03 kB / 448.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.3447, allocations: 409 kB / 448.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/0.3474, allocations: 1.875 MB / 450.5 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.3476, allocations: 164.4 kB / 450.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002861/0.3479, allocations: 223.8 kB / 450.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003413/0.3513, allocations: 2.076 MB / 453 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.3514, allocations: 0 / 453 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001539/0.3515, allocations: 88 kB / 453.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.3516, allocations: 48 kB / 453.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003488/0.3551, allocations: 1.912 MB / 455 MB, free: 11.43 MB / 334.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.01861/0.3737, allocations: 12.22 MB / 467.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.3776, allocations: 2.649 MB / 469.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.379, allocations: 0.8066 MB / 470.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.3792, allocations: 29.98 kB / 470.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.3792, allocations: 56.56 kB / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=194): time 5.421e-06/0.3792, allocations: 0 / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=195): time 0.014/0.3932, allocations: 5.511 MB / 476.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.3934, allocations: 176.2 kB / 476.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002842/0.3962, allocations: 1.872 MB / 478.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/0.3964, allocations: 69.7 kB / 478.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008968/0.3973, allocations: 1.1 MB / 479.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/0.398, allocations: 0.6931 MB / 480.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006688/0.3987, allocations: 481.5 kB / 480.7 MB, free: 404 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.3988, allocations: 305.1 kB / 481 MB, free: 96 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/0.4004, allocations: 0.8447 MB / 481.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.4023, allocations: 1.467 MB / 483.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003325/0.4057, allocations: 2.216 MB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4057, allocations: 4 kB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.008935/0.4146, allocations: 3.782 MB / 489.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.4147, allocations: 12 kB / 489.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.4147, allocations: 16 kB / 489.3 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008547/0.4233, allocations: 1.793 MB / 491.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/0.4255, allocations: 0.5344 MB / 491.7 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02516/0.4507, allocations: 21.35 MB / 0.501 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002696/0.4534, allocations: 147.6 kB / 0.5011 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.4536, allocations: 104 kB / 0.5012 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002022/0.4556, allocations: 1.079 MB / 0.5023 GB, free: 12.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001639/0.4573, allocations: 1.357 MB / 0.5036 GB, free: 10.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002724/0.46, allocations: 2.06 MB / 0.5056 GB, free: 8.633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.255e-06/0.46, allocations: 4 kB / 0.5056 GB, free: 8.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=344) (initialization_lambda0): time 0.006384/0.4664, allocations: 2.974 MB / 0.5085 GB, free: 5.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4665, allocations: 12.16 kB / 0.5085 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.4665, allocations: 20 kB / 0.5085 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/0.4729, allocations: 1.273 MB / 0.5098 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/0.4755, allocations: 0.6165 MB / 0.5104 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/0.4913, allocations: 16.54 MB / 0.5265 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/0.494, allocations: 107.8 kB / 0.5266 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002207/0.4942, allocations: 104 kB / 0.5267 GB, free: 1.445 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 (287): * Single equations (assignments): 276 * 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.0006691/0.4949, allocations: 343.5 kB / 0.5271 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005138/0.4954, allocations: 245 kB / 0.5273 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2075/0.7029, allocations: 2.125 MB / 0.5294 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.703, allocations: 11.2 kB / 0.5294 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.703, allocations: 0 / 0.5294 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.7043, allocations: 484.8 kB / 0.5299 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003164/0.7047, allocations: 38.22 kB / 0.5299 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.7059, allocations: 75.16 kB / 0.53 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.7062, allocations: 154.8 kB / 0.5301 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004381/0.7106, allocations: 2.086 MB / 0.5321 GB, free: 121.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02322/0.7338, allocations: 12.83 MB / 0.5447 GB, free: 116.3 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001139/0.735, allocations: 0.7062 MB / 0.5454 GB, free: 116 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001415/0.7364, allocations: 1.21 MB / 0.5466 GB, free: 115.5 MB / 414.1 MB Notification: Performance of Backend: time 5.11e-07/0.7364, allocations: 6.875 kB / 0.5466 GB, free: 115.5 MB / 414.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.0112/0.7476, allocations: 7.02 MB / 0.5534 GB, free: 110.1 MB / 414.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.01183/0.7595, allocations: 8.703 MB / 0.5619 GB, free: 101.6 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