Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestControlledSynchronousMachine4WindingsPF.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.0009972/0.0009972, allocations: 100.4 kB / 19.7 MB, free: 440 kB / 13.93 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.001006/0.001006, allocations: 211.3 kB / 23 MB, free: 2.969 MB / 13.93 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.063/1.063, allocations: 230.6 MB / 256.8 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 179] 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.05603/0.05603, allocations: 17.45 MB / 330.6 MB, free: 0.8945 MB / 250.7 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.Electrical.Test.TestControlledSynchronousMachine4WindingsPF,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestControlledSynchronousMachine4WindingsPF") translateModel(PowerGrids.Electrical.Test.TestControlledSynchronousMachine4WindingsPF,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestControlledSynchronousMachine4WindingsPF") [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.001587/0.001587, allocations: 71.89 kB / 461.2 MB, free: 27.51 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09876, allocations: 57.86 MB / 0.5069 GB, free: 1.535 MB / 362.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestControlledSynchronousMachine4WindingsPF): time 0.01601/0.1148, allocations: 19.33 MB / 0.5258 GB, free: 14.13 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.1264, allocations: 7.166 MB / 0.5328 GB, free: 6.93 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002886/0.1293, allocations: 87.25 kB / 0.5328 GB, free: 6.844 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002654/0.1319, allocations: 0.8882 MB / 0.5337 GB, free: 5.949 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006691/0.1386, allocations: 3.018 MB / 0.5367 GB, free: 2.949 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003808/0.1424, allocations: 1.906 MB / 0.5385 GB, free: 1.082 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00703/0.1494, allocations: 6.034 MB / 0.5444 GB, free: 11.04 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003067/0.1525, allocations: 1.683 MB / 0.5461 GB, free: 9.301 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003284/0.1558, allocations: 2.148 MB / 0.5482 GB, free: 7.145 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.1604, allocations: 1.932 MB / 0.55 GB, free: 5.203 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002166/0.1626, allocations: 324 kB / 0.5503 GB, free: 4.887 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.1646, allocations: 0.6951 MB / 0.551 GB, free: 4.191 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004888/0.1651, allocations: 0.739 MB / 0.5517 GB, free: 3.449 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002574/0.1676, allocations: 1.629 MB / 0.5533 GB, free: 1.812 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2408/0.4085, allocations: 4.791 MB / 0.558 GB, free: 20.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.4085, allocations: 0 / 0.558 GB, free: 20.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4085, allocations: 0 / 0.558 GB, free: 20.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000266/0.4087, allocations: 0 / 0.558 GB, free: 20.56 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 564 * Number of variables: 564 Notification: Performance of Generate backend data structure: time 0.01592/0.4246, allocations: 4.97 MB / 0.5629 GB, free: 18.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.173e-05/0.4247, allocations: 8.656 kB / 0.5629 GB, free: 18.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003273/0.428, allocations: 0.7037 MB / 0.5636 GB, free: 18.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005871/0.4339, allocations: 2.212 MB / 0.5657 GB, free: 18.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.434, allocations: 185.9 kB / 0.5659 GB, free: 18.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000379/0.4344, allocations: 251.3 kB / 0.5661 GB, free: 18.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004315/0.4387, allocations: 3.552 MB / 0.5696 GB, free: 16.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.371e-05/0.4387, allocations: 16.56 kB / 0.5696 GB, free: 16.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/0.4389, allocations: 107.8 kB / 0.5697 GB, free: 16.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.187e-05/0.439, allocations: 59.31 kB / 0.5698 GB, free: 16.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.4421, allocations: 2.041 MB / 0.5718 GB, free: 16.07 MB / 410.7 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.01694/0.459, allocations: 14.46 MB / 0.5859 GB, free: 6.332 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.4615, allocations: 1.503 MB / 0.5874 GB, free: 5.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007871/0.4623, allocations: 0.5979 MB / 0.588 GB, free: 5.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.954e-05/0.4623, allocations: 26.91 kB / 0.588 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.492e-05/0.4624, allocations: 65.06 kB / 0.588 GB, free: 5.457 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 5.099e-06/0.4624, allocations: 3.562 kB / 0.588 GB, free: 5.457 MB / 410.7 MB Notification: Performance of matching and sorting (n=167): time 0.005985/0.4684, allocations: 2.863 MB / 0.5908 GB, free: 4.191 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.4684, allocations: 202.2 kB / 0.591 GB, free: 3.965 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00419/0.4726, allocations: 2.699 MB / 0.5937 GB, free: 2.434 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006998/0.4733, allocations: 76.14 kB / 0.5937 GB, free: 2.367 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.4748, allocations: 1.49 MB / 0.5952 GB, free: 1.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009939/0.4758, allocations: 0.7007 MB / 0.5959 GB, free: 488 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/0.4776, allocations: 1.095 MB / 0.597 GB, free: 15.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.4777, allocations: 301.1 kB / 0.5972 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002498/0.4802, allocations: 1.621 MB / 0.5988 GB, free: 14.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002877/0.4831, allocations: 2.451 MB / 0.6012 GB, free: 12.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004137/0.4872, allocations: 3.127 MB / 0.6043 GB, free: 8.977 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.753e-05/0.4872, allocations: 4 kB / 0.6043 GB, free: 8.973 MB / 426.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.007914/0.4952, allocations: 5.291 MB / 0.6094 GB, free: 3.715 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.4952, allocations: 8 kB / 0.6094 GB, free: 3.707 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.4952, allocations: 12 kB / 0.6095 GB, free: 3.695 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003715/0.4989, allocations: 1.092 MB / 0.6105 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004929/0.5039, allocations: 1.727 MB / 0.6122 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/0.5188, allocations: 22.31 MB / 0.634 GB, free: 9.129 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/0.5239, allocations: 445.1 kB / 0.6344 GB, free: 8.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004828/0.5244, allocations: 204 kB / 0.6346 GB, free: 8.492 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003078/0.5274, allocations: 1.98 MB / 0.6366 GB, free: 6.504 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003282/0.5307, allocations: 2.377 MB / 0.6389 GB, free: 3.926 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004134/0.5349, allocations: 3.028 MB / 0.6418 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.62e-05/0.5349, allocations: 5.031 kB / 0.6418 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of matching and sorting (n=766) (initialization_lambda0): time 0.008129/0.543, allocations: 5.147 MB / 0.6469 GB, free: 11.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.543, allocations: 11.94 kB / 0.6469 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.5431, allocations: 8 kB / 0.6469 GB, free: 11.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003546/0.5466, allocations: 1.097 MB / 0.648 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/0.5498, allocations: 1.232 MB / 0.6492 GB, free: 9.387 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008674/0.5584, allocations: 13.68 MB / 0.6625 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004733/0.5632, allocations: 346.2 kB / 0.6628 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007854/0.564, allocations: 196.3 kB / 0.663 GB, free: 10.23 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 10 (loadPQ11.isSlackBus,loadPQ12.componentPF.isSlackBus,slackBus1.isSlackBus,bus1.isSlackBus,busGen12.componentPF.isSlackBus,GEN12.componentPF.isSlackBus,GEN12.isSlackBus,GEN12.isReferenceBus,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 (752): * Single equations (assignments): 736 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems 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%), (2,0,100.0%), (2,0,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(6,0), (2,0), (2,0), (2,0), (2,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0009879/0.5649, allocations: 438.9 kB / 0.6635 GB, free: 9.871 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/0.5661, allocations: 322 kB / 0.6638 GB, free: 9.555 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00399/0.5701, allocations: 1.859 MB / 0.6656 GB, free: 7.703 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.5701, allocations: 7.969 kB / 0.6656 GB, free: 7.695 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5701, allocations: 4 kB / 0.6656 GB, free: 7.691 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001879/0.572, allocations: 0.537 MB / 0.6661 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005037/0.5725, allocations: 32 kB / 0.6661 GB, free: 7.121 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.5738, allocations: 127.9 kB / 0.6663 GB, free: 6.996 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.5741, allocations: 139.7 kB / 0.6664 GB, free: 6.863 MB / 490.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002919/0.577, allocations: 1.961 MB / 0.6683 GB, free: 4.922 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003292/0.5803, allocations: 2.583 MB / 0.6708 GB, free: 2.324 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008385/0.5811, allocations: 0.5777 MB / 0.6714 GB, free: 1.746 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00236/0.5835, allocations: 1.625 MB / 0.673 GB, free: 124 kB / 490.7 MB Notification: Performance of Backend: time 6.51e-07/0.5835, allocations: 0 / 0.673 GB, free: 124 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0144/0.5979, allocations: 8.248 MB / 0.681 GB, free: 7.848 MB / 0.4948 GB Notification: Performance of SimCode: time 0.0114/0.6093, allocations: 6.24 MB / 0.6871 GB, free: 1.605 MB / 0.4948 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.Electrical.Test.TestControlledSynchronousMachine4WindingsPF could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.9994764560833573]