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.001523/0.001523, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001641/0.001642, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.337/1.337, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0641/0.0641, allocations: 14.17 MB / 284.6 MB, free: 13.93 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.002742/0.002742, allocations: 71.89 kB / 347.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2188, allocations: 50.11 MB / 398 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01152/0.2304, allocations: 15.96 MB / 413.9 MB, free: 35.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009309/0.2397, allocations: 6.85 MB / 420.8 MB, free: 28.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002928/0.2427, allocations: 67.62 kB / 420.9 MB, free: 28.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.2448, allocations: 0.8299 MB / 421.7 MB, free: 27.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006144/0.251, allocations: 2.539 MB / 424.2 MB, free: 25.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.2537, allocations: 1.534 MB / 425.8 MB, free: 23.61 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.004996/0.2588, allocations: 5.064 MB / 430.8 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009943/0.2598, allocations: 0.7528 MB / 431.6 MB, free: 17.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.262, allocations: 1.74 MB / 433.3 MB, free: 16.01 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.2641, allocations: 1.836 MB / 435.2 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004906/0.2646, allocations: 291.9 kB / 435.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.2662, allocations: 0.7028 MB / 436.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003768/0.2666, allocations: 0.6264 MB / 436.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.2679, allocations: 1.648 MB / 438.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003617/0.2716, allocations: 4.042 MB / 442.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2716, allocations: 4 kB / 442.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2716, allocations: 0 / 442.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.594e-05/0.2717, allocations: 0 / 442.5 MB, free: 6.832 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.01189/0.2836, allocations: 4.211 MB / 446.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2836, allocations: 8.031 kB / 446.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.285, allocations: 413 kB / 447.1 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.2879, allocations: 1.868 MB / 449 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.052e-05/0.288, allocations: 168.3 kB / 449.1 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003189/0.2883, allocations: 227.9 kB / 449.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003527/0.2918, allocations: 2.072 MB / 451.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/0.2919, allocations: 4 kB / 451.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/0.2921, allocations: 83.94 kB / 451.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.876e-05/0.2921, allocations: 51.98 kB / 451.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003592/0.2957, allocations: 1.908 MB / 453.5 MB, free: 11.62 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.02088/0.3166, allocations: 12.3 MB / 465.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004486/0.3211, allocations: 2.638 MB / 468.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.3228, allocations: 0.8144 MB / 469.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.3229, allocations: 25.98 kB / 469.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.323, allocations: 52.56 kB / 469.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=194): time 4.369e-06/0.323, allocations: 0 / 469.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.01039/0.3334, allocations: 3.406 MB / 472.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3335, allocations: 184.2 kB / 472.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/0.3369, allocations: 1.872 MB / 474.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003225/0.3372, allocations: 69.7 kB / 474.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009644/0.3382, allocations: 1.1 MB / 475.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008885/0.3391, allocations: 0.6931 MB / 476.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009212/0.3401, allocations: 477.5 kB / 477.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3402, allocations: 305.1 kB / 477.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.342, allocations: 0.8407 MB / 478.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002316/0.3444, allocations: 1.467 MB / 479.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003846/0.3482, allocations: 2.209 MB / 481.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/0.3483, allocations: 8 kB / 481.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.01016/0.3584, allocations: 3.782 MB / 485.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.3585, allocations: 12.97 kB / 485.7 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.3585, allocations: 16 kB / 485.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009731/0.3683, allocations: 1.792 MB / 487.5 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.3713, allocations: 0.5305 MB / 488 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04013/0.4115, allocations: 21.39 MB / 0.4975 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.4154, allocations: 269.7 kB / 0.4977 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004887/0.4159, allocations: 108 kB / 0.4978 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003445/0.4193, allocations: 1.075 MB / 0.4989 GB, free: 14.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002895/0.4223, allocations: 1.354 MB / 0.5002 GB, free: 13.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004854/0.4271, allocations: 2.06 MB / 0.5022 GB, free: 10.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.965e-05/0.4272, allocations: 4 kB / 0.5022 GB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.01031/0.4375, allocations: 2.966 MB / 0.5051 GB, free: 7.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.4376, allocations: 12 kB / 0.5051 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/0.4376, allocations: 16 kB / 0.5052 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008087/0.4457, allocations: 1.272 MB / 0.5064 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.4484, allocations: 0.6085 MB / 0.507 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01596/0.4644, allocations: 16.57 MB / 0.5232 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.4672, allocations: 194.4 kB / 0.5234 GB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003758/0.4676, allocations: 104 kB / 0.5235 GB, free: 3.473 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.0007422/0.4684, allocations: 339.5 kB / 0.5238 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008418/0.4692, allocations: 245 kB / 0.524 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/0.474, allocations: 2.116 MB / 0.5261 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.474, allocations: 7.969 kB / 0.5261 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.474, allocations: 0 / 0.5261 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.4753, allocations: 0.5054 MB / 0.5266 GB, free: 228 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/0.4758, allocations: 36 kB / 0.5266 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/0.4775, allocations: 79.95 kB / 0.5267 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.16/0.6375, allocations: 143.3 kB / 0.5268 GB, free: 122.1 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005974/0.6436, allocations: 2.098 MB / 0.5289 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00469/0.6483, allocations: 2.647 MB / 0.5315 GB, free: 121.7 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001455/0.6498, allocations: 0.699 MB / 0.5321 GB, free: 121.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002061/0.6518, allocations: 1.214 MB / 0.5333 GB, free: 121.2 MB / 414.1 MB Notification: Performance of Backend: time 4.61e-07/0.6518, allocations: 0 / 0.5333 GB, free: 121.2 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.0136/0.6655, allocations: 7.011 MB / 0.5402 GB, free: 117.4 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.008442/0.6739, allocations: 6.506 MB / 0.5465 GB, free: 114.1 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