Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF.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.001093/0.001093, 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.001101/0.001101, allocations: 215.3 kB / 23 MB, free: 2.953 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.09/1.09, allocations: 230.6 MB / 256.8 MB, free: 9.602 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.06151/0.06151, allocations: 17.46 MB / 330.6 MB, free: 0.8867 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.TestPropControlledSynchronousMachine4WindingsPF,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF") translateModel(PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF") [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.001419/0.001419, allocations: 67.89 kB / 461.2 MB, free: 27.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 57.87 MB / 0.5069 GB, free: 1.516 MB / 362.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF): time 0.01284/0.1146, allocations: 18.65 MB / 0.5251 GB, free: 14.79 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.1246, allocations: 6.722 MB / 0.5317 GB, free: 8.035 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.1264, allocations: 71.38 kB / 0.5317 GB, free: 7.965 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.1282, allocations: 0.8419 MB / 0.5326 GB, free: 7.117 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004577/0.1328, allocations: 2.941 MB / 0.5354 GB, free: 4.191 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.1354, allocations: 1.641 MB / 0.537 GB, free: 2.586 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005307/0.1407, allocations: 5.613 MB / 0.5425 GB, free: 12.96 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.1423, allocations: 1.415 MB / 0.5439 GB, free: 11.51 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002135/0.1444, allocations: 2 MB / 0.5458 GB, free: 9.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.1463, allocations: 1.793 MB / 0.5476 GB, free: 7.699 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.1466, allocations: 280 kB / 0.5479 GB, free: 7.426 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.1478, allocations: 0.6559 MB / 0.5485 GB, free: 6.77 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003731/0.1482, allocations: 0.6534 MB / 0.5491 GB, free: 6.113 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.1494, allocations: 1.501 MB / 0.5506 GB, free: 4.605 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003886/0.1532, allocations: 4.335 MB / 0.5548 GB, free: 260 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1532, allocations: 0 / 0.5548 GB, free: 260 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1533, allocations: 0 / 0.5548 GB, free: 260 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.408e-05/0.1533, allocations: 0 / 0.5548 GB, free: 260 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 505 * Number of variables: 505 Notification: Performance of Generate backend data structure: time 0.2355/0.3888, allocations: 4.607 MB / 0.5593 GB, free: 46.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.3888, allocations: 13.7 kB / 0.5594 GB, free: 46.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002456/0.3913, allocations: 0.6613 MB / 0.56 GB, free: 46.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004094/0.3954, allocations: 1.969 MB / 0.5619 GB, free: 45.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.3955, allocations: 228 kB / 0.5621 GB, free: 45.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003227/0.3959, allocations: 232.9 kB / 0.5624 GB, free: 45.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003108/0.399, allocations: 3.176 MB / 0.5655 GB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.266e-05/0.399, allocations: 17.92 kB / 0.5655 GB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/0.3992, allocations: 97.91 kB / 0.5656 GB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.172e-05/0.3992, allocations: 53 kB / 0.5656 GB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.402, allocations: 1.827 MB / 0.5674 GB, free: 41.99 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.01543/0.4174, allocations: 13.53 MB / 0.5806 GB, free: 31.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.4195, allocations: 1.312 MB / 0.5819 GB, free: 30.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006294/0.4202, allocations: 0.5225 MB / 0.5824 GB, free: 30.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.099e-05/0.4202, allocations: 22.8 kB / 0.5824 GB, free: 30.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001158/0.4214, allocations: 1.851 MB / 0.5842 GB, free: 28.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=157): time 4.027e-06/0.4214, allocations: 0 / 0.5842 GB, free: 28.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=157): time 0.005424/0.4268, allocations: 2.847 MB / 0.587 GB, free: 26.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.4269, allocations: 0.7463 MB / 0.5877 GB, free: 25.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.4294, allocations: 2.489 MB / 0.5902 GB, free: 23.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/0.4296, allocations: 73.7 kB / 0.5903 GB, free: 23.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006894/0.4303, allocations: 1.344 MB / 0.5916 GB, free: 21.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/0.4308, allocations: 0.6504 MB / 0.5922 GB, free: 21.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009417/0.4317, allocations: 1.078 MB / 0.5933 GB, free: 19.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.254e-05/0.4318, allocations: 305.1 kB / 0.5935 GB, free: 19.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.4333, allocations: 1.549 MB / 0.5951 GB, free: 18.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.4351, allocations: 2.409 MB / 0.5974 GB, free: 15.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002576/0.4377, allocations: 2.966 MB / 0.6003 GB, free: 12.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.4377, allocations: 7.625 kB / 0.6003 GB, free: 12.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.005807/0.4435, allocations: 5.196 MB / 0.6054 GB, free: 7.129 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.4436, allocations: 39.72 kB / 0.6054 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.4436, allocations: 16 kB / 0.6054 GB, free: 7.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003592/0.4472, allocations: 1.15 MB / 0.6066 GB, free: 5.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.4499, allocations: 1.198 MB / 0.6077 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007718/0.4577, allocations: 14.44 MB / 0.6218 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004364/0.462, allocations: 441.4 kB / 0.6223 GB, free: 4.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004098/0.4624, allocations: 188 kB / 0.6224 GB, free: 4.578 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003286/0.4657, allocations: 1.958 MB / 0.6243 GB, free: 2.605 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002641/0.4684, allocations: 2.402 MB / 0.6267 GB, free: 16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003513/0.4719, allocations: 2.961 MB / 0.6296 GB, free: 12.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.688e-05/0.4719, allocations: 0 / 0.6296 GB, free: 12.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=750) (initialization_lambda0): time 0.008654/0.4805, allocations: 5.119 MB / 0.6346 GB, free: 7.734 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.4806, allocations: 45.62 kB / 0.6346 GB, free: 7.684 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.4806, allocations: 8 kB / 0.6346 GB, free: 7.676 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004623/0.4852, allocations: 1.096 MB / 0.6357 GB, free: 6.555 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/0.4889, allocations: 1.194 MB / 0.6369 GB, free: 5.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009193/0.4981, allocations: 13.67 MB / 0.6502 GB, free: 6.664 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003819/0.5019, allocations: 362.2 kB / 0.6506 GB, free: 6.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/0.5022, allocations: 196 kB / 0.6507 GB, free: 6.117 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 20 (loadPQ11.isSlackBus,loadPQ12.componentPF.isSlackBus,slackBus1.isSlackBus,bus1.isSlackBus,busGen12.componentPF.isSlackBus,GEN12.componentPF.isSlackBus,AVR.limiterWithLag.satON,$PRE.AVR.limiterWithLag.satON,AVR.limiterWithLag.saturationLimitReached,$PRE.AVR.limiterWithLag.saturationLimitReached,AVR.limiterWithLag.state,$PRE.AVR.limiterWithLag.state,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,GEN12.isSlackBus,GEN12.isReferenceBus) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 718 * 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%), (2,0,100.0%), (2,0,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,1), (6,0), (2,0), (2,0), (2,0), (2,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0008657/0.5031, allocations: 474.7 kB / 0.6512 GB, free: 5.641 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004854/0.5036, allocations: 294.2 kB / 0.6515 GB, free: 5.352 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.5064, allocations: 1.783 MB / 0.6532 GB, free: 3.539 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.5064, allocations: 11.97 kB / 0.6532 GB, free: 3.527 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.5064, allocations: 4 kB / 0.6532 GB, free: 3.523 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.5075, allocations: 0.4977 MB / 0.6537 GB, free: 3.023 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.5078, allocations: 43.98 kB / 0.6538 GB, free: 2.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.509, allocations: 116.1 kB / 0.6539 GB, free: 2.867 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.5092, allocations: 145.9 kB / 0.654 GB, free: 2.727 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003369/0.5126, allocations: 2.769 MB / 0.6567 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003188/0.5158, allocations: 3.292 MB / 0.6599 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007802/0.5166, allocations: 0.5931 MB / 0.6605 GB, free: 12.01 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001823/0.5184, allocations: 1.486 MB / 0.662 GB, free: 10.52 MB / 474.7 MB Notification: Performance of Backend: time 5.81e-07/0.5184, allocations: 0 / 0.662 GB, free: 10.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02214/0.5405, allocations: 7.772 MB / 0.6696 GB, free: 2.48 MB / 474.7 MB Notification: Performance of SimCode: time 0.007999/0.5485, allocations: 5.711 MB / 0.6751 GB, free: 12.72 MB / 490.7 MB [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 2: AVR.gain.y < AVR.limiterWithLag.uMax and AVR.gain.y > AVR.limiterWithLag.uMin. [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 3: AVR.limiterWithLag.useLag and AVR.limiterWithLag.state == AVR.limiterWithLag.State.upperSat and time - AVR.limiterWithLag.saturationLimitReached > AVR.limiterWithLag.LagMax. [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 4: AVR.limiterWithLag.useLag and AVR.limiterWithLag.state == AVR.limiterWithLag.State.lowerSat and time - AVR.limiterWithLag.saturationLimitReached > AVR.limiterWithLag.LagMin. Error: Internal error SimCode DAEmode: The model PowerGrids.Electrical.Test.TestPropControlledSynchronousMachine4WindingsPF could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.920522046973929]