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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00206/0.00206, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002323/0.002323, allocations: 223.6 kB / 23 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08279/0.08279, allocations: 16.94 MB / 330.1 MB, free: 2.395 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") [Timeout 660] "Notification: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 71.89 kB / 461.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.109, allocations: 57.73 MB / 0.5068 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.2512/0.3602, allocations: 35.14 MB / 0.5411 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02233/0.3825, allocations: 9.934 MB / 0.5508 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006808/0.3893, allocations: 147.2 kB / 0.5509 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006227/0.3956, allocations: 1.343 MB / 0.5522 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01404/0.4096, allocations: 4.105 MB / 0.5562 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007574/0.4172, allocations: 2.602 MB / 0.5588 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01532/0.4325, allocations: 8.621 MB / 0.5672 GB, free: 9.742 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005996/0.4385, allocations: 2.553 MB / 0.5697 GB, free: 7.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007596/0.4461, allocations: 3.041 MB / 0.5726 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007486/0.4536, allocations: 2.785 MB / 0.5754 GB, free: 3.984 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002296/0.4559, allocations: 477.2 kB / 0.5758 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005279/0.4612, allocations: 1.011 MB / 0.5768 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002136/0.4633, allocations: 1.058 MB / 0.5778 GB, free: 1.613 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006917/0.4702, allocations: 2.333 MB / 0.5801 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01471/0.4849, allocations: 7.218 MB / 0.5872 GB, free: 8.031 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.4849, allocations: 0 / 0.5872 GB, free: 8.031 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4849, allocations: 4 kB / 0.5872 GB, free: 8.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002642/0.4852, allocations: 0 / 0.5872 GB, free: 8.027 MB / 430.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.02572/0.5109, allocations: 7.066 MB / 0.5941 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.511, allocations: 8.031 kB / 0.5941 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007169/0.5181, allocations: 1.102 MB / 0.5952 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009063/0.5272, allocations: 3.115 MB / 0.5982 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003719/0.5276, allocations: 283.1 kB / 0.5985 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/0.5288, allocations: 371.9 kB / 0.5988 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009486/0.5383, allocations: 4.781 MB / 0.6035 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.199e-05/0.5384, allocations: 19.81 kB / 0.6035 GB, free: 6.555 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/0.5388, allocations: 152 kB / 0.6037 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.644e-05/0.5389, allocations: 88 kB / 0.6037 GB, free: 6.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006781/0.5457, allocations: 3.148 MB / 0.6068 GB, free: 3.16 MB / 446.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.03895/0.5846, allocations: 19.95 MB / 0.6263 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006608/0.5913, allocations: 2.697 MB / 0.6289 GB, free: 11.93 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00229/0.5935, allocations: 1.112 MB / 0.63 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.5937, allocations: 46.97 kB / 0.6301 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.494e-05/0.5938, allocations: 73.56 kB / 0.6301 GB, free: 10.69 MB / 478.1 MB Notification: Performance of pre-optimization done (n=297): time 6.282e-06/0.5938, allocations: 0 / 0.6301 GB, free: 10.69 MB / 478.1 MB Notification: Performance of matching and sorting (n=297): time 0.01714/0.611, allocations: 5.137 MB / 0.6351 GB, free: 5.539 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.6111, allocations: 210.9 kB / 0.6354 GB, free: 5.293 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007801/0.6189, allocations: 3.554 MB / 0.6388 GB, free: 1.711 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009924/0.6199, allocations: 97.7 kB / 0.6389 GB, free: 1.609 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.6223, allocations: 1.976 MB / 0.6408 GB, free: 15.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002161/0.6245, allocations: 1.213 MB / 0.642 GB, free: 14.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003377/0.6278, allocations: 1.489 MB / 0.6435 GB, free: 12.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.628, allocations: 305.1 kB / 0.6438 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005251/0.6332, allocations: 2.352 MB / 0.6461 GB, free: 10.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006886/0.6401, allocations: 3.518 MB / 0.6495 GB, free: 6.414 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009507/0.6496, allocations: 4.614 MB / 0.654 GB, free: 1.617 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.17e-05/0.6497, allocations: 4 kB / 0.654 GB, free: 1.613 MB / 494.1 MB Notification: Performance of matching and sorting (n=1060) (initialization): time 0.02125/0.6709, allocations: 8.283 MB / 0.6621 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.671, allocations: 10.66 kB / 0.6621 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-05/0.671, allocations: 16 kB / 0.6621 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/0.6839, allocations: 2.129 MB / 0.6642 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007631/0.6915, allocations: 1.584 MB / 0.6658 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03613/0.7276, allocations: 24.05 MB / 0.6892 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008614/0.7362, allocations: 0.5707 MB / 0.6898 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/0.7377, allocations: 268 kB / 0.6901 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007161/0.7449, allocations: 2.859 MB / 0.6928 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00564/0.7505, allocations: 3.416 MB / 0.6962 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00828/0.7588, allocations: 4.457 MB / 0.7005 GB, free: 76 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.475e-05/0.7589, allocations: 7.984 kB / 0.7005 GB, free: 68 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1060) (initialization_lambda0): time 0.01752/0.7764, allocations: 7.467 MB / 0.7078 GB, free: 8.555 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.7764, allocations: 12 kB / 0.7078 GB, free: 8.543 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/0.7765, allocations: 12 kB / 0.7079 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01016/0.7866, allocations: 1.616 MB / 0.7094 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007847/0.7945, allocations: 1.666 MB / 0.7111 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02438/0.8188, allocations: 19.41 MB / 0.73 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00768/0.8265, allocations: 473.3 kB / 0.7305 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2796/1.106, allocations: 264 kB / 0.7307 GB, free: 175.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (984): * Single equations (assignments): 971 * 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.001712/1.108, allocations: 0.52 MB / 0.7312 GB, free: 175.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001448/1.109, allocations: 431.9 kB / 0.7316 GB, free: 175.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0067/1.116, allocations: 3.156 MB / 0.7347 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.262e-05/1.116, allocations: 16.84 kB / 0.7347 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/1.116, allocations: 0 / 0.7347 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/1.119, allocations: 0.7886 MB / 0.7355 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/1.12, allocations: 59.17 kB / 0.7356 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003341/1.123, allocations: 151.2 kB / 0.7357 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004588/1.124, allocations: 238.5 kB / 0.7359 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00782/1.132, allocations: 3.202 MB / 0.7391 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007739/1.139, allocations: 4.056 MB / 0.743 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001848/1.141, allocations: 0.9947 MB / 0.744 GB, free: 174 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004204/1.145, allocations: 2.136 MB / 0.7461 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of Backend: time 6.51e-07/1.145, allocations: 1.094 kB / 0.7461 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02826/1.174, allocations: 12.22 MB / 0.758 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01532/1.189, allocations: 9.151 MB / 0.767 GB, free: 163.1 MB / 0.5606 GB [CodegenCpp.tpl:12296:11-12296: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:12296:11-12296: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 " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 4.03523444198072] Failed to read output from testmodel.py, exit status != 0: 1.5731353862211108 1.586146855 1.098006225 Calling exit ...