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.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_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.001226/0.001226, allocations: 102.9 kB / 16.95 MB, free: 5.727 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.001219/0.001219, allocations: 192.1 kB / 17.87 MB, free: 5.18 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.37/1.37, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06161/0.06161, allocations: 14.18 MB / 285.3 MB, free: 13.94 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.001519/0.001519, allocations: 71.81 kB / 348.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2789, allocations: 50.13 MB / 398.7 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.02136/0.3003, allocations: 15.95 MB / 414.6 MB, free: 35.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.319, allocations: 6.839 MB / 421.5 MB, free: 28.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006911/0.3259, allocations: 67.62 kB / 421.5 MB, free: 28.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004316/0.3303, allocations: 0.8299 MB / 422.4 MB, free: 27.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01227/0.3426, allocations: 2.536 MB / 424.9 MB, free: 25.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005078/0.3477, allocations: 1.548 MB / 426.4 MB, free: 23.63 MB / 318.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.009396/0.3572, allocations: 5.057 MB / 431.5 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001699/0.3589, allocations: 0.7451 MB / 432.2 MB, free: 17.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.3618, allocations: 1.736 MB / 434 MB, free: 16.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00246/0.3643, allocations: 1.852 MB / 435.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000684/0.365, allocations: 284 kB / 436.1 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002055/0.3671, allocations: 0.7028 MB / 436.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004273/0.3675, allocations: 0.6264 MB / 437.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.3691, allocations: 1.648 MB / 439.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004/0.3731, allocations: 4.042 MB / 443.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3731, allocations: 0 / 443.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3731, allocations: 0 / 443.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.562e-05/0.3732, allocations: 0 / 443.1 MB, free: 6.859 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.01216/0.3854, allocations: 4.211 MB / 447.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3854, allocations: 8.031 kB / 447.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.3867, allocations: 409 kB / 447.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.3896, allocations: 1.879 MB / 449.6 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.665e-05/0.3897, allocations: 160.4 kB / 449.8 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003537/0.3901, allocations: 227.9 kB / 450 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003821/0.3939, allocations: 2.08 MB / 452.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.394, allocations: 15.91 kB / 452.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.3942, allocations: 80 kB / 452.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.436e-05/0.3942, allocations: 52 kB / 452.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003546/0.3978, allocations: 1.904 MB / 454.1 MB, free: 11.64 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.021/0.4188, allocations: 12.3 MB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/0.4232, allocations: 2.634 MB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.4247, allocations: 0.8144 MB / 469.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.4249, allocations: 26 kB / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.4249, allocations: 48.56 kB / 470 MB, free: 10.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=194): time 4.789e-06/0.4249, allocations: 4 kB / 470 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.01072/0.4357, allocations: 3.414 MB / 473.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.4358, allocations: 180.2 kB / 473.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/0.4399, allocations: 1.876 MB / 475.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003906/0.4403, allocations: 69.7 kB / 475.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.4416, allocations: 1.092 MB / 476.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.4426, allocations: 0.6892 MB / 477.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009232/0.4436, allocations: 481.5 kB / 477.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003156/0.4439, allocations: 309.1 kB / 478 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.4457, allocations: 0.8368 MB / 478.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.4479, allocations: 1.474 MB / 480.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00394/0.4519, allocations: 2.205 MB / 482.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.4519, allocations: 7.984 kB / 482.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.0102/0.4621, allocations: 3.779 MB / 486.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.4622, allocations: 12 kB / 486.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.811e-05/0.4622, allocations: 20 kB / 486.4 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009573/0.4718, allocations: 1.789 MB / 488.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.4742, allocations: 0.5382 MB / 488.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03088/0.5051, allocations: 21.39 MB / 0.4981 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/0.5086, allocations: 261.8 kB / 0.4984 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004927/0.5091, allocations: 108 kB / 0.4985 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002857/0.512, allocations: 1.075 MB / 0.4995 GB, free: 14.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002109/0.5141, allocations: 1.354 MB / 0.5009 GB, free: 13.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003216/0.5173, allocations: 2.056 MB / 0.5029 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.057e-05/0.5174, allocations: 4 kB / 0.5029 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.007077/0.5245, allocations: 2.97 MB / 0.5058 GB, free: 7.723 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.5245, allocations: 12 kB / 0.5058 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/0.5245, allocations: 16.84 kB / 0.5058 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007209/0.5318, allocations: 1.272 MB / 0.507 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/0.5345, allocations: 0.6085 MB / 0.5076 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.5531, allocations: 16.58 MB / 0.5238 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00332/0.5565, allocations: 198.4 kB / 0.524 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005121/0.557, allocations: 96 kB / 0.5241 GB, free: 3.5 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.001167/0.5582, allocations: 339.6 kB / 0.5244 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/0.5594, allocations: 248.9 kB / 0.5247 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00527/0.5646, allocations: 2.112 MB / 0.5267 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.88e-05/0.5647, allocations: 11.97 kB / 0.5267 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.5647, allocations: 0 / 0.5267 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.5663, allocations: 0.5015 MB / 0.5272 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008106/0.5671, allocations: 40 kB / 0.5273 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/0.5691, allocations: 71.95 kB / 0.5273 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2362/0.8053, allocations: 149 kB / 0.5275 GB, free: 122.1 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005497/0.8108, allocations: 2.101 MB / 0.5295 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0256/0.8365, allocations: 12.83 MB / 0.5421 GB, free: 116.9 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001276/0.8378, allocations: 0.6954 MB / 0.5427 GB, free: 116.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001627/0.8394, allocations: 1.214 MB / 0.5439 GB, free: 116.1 MB / 414.1 MB Notification: Performance of Backend: time 1.763e-06/0.8395, allocations: 2.781 kB / 0.5439 GB, free: 116.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: created initialization part: time 0.01295/0.8524, allocations: 7.006 MB / 0.5508 GB, free: 112.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.01191/0.8643, allocations: 8.756 MB / 0.5593 GB, free: 103.5 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