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.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.001866/0.001866, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002401/0.002401, allocations: 218.8 kB / 23.01 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 207.6 MB / 233.8 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0728/0.0728, allocations: 14.39 MB / 300.4 MB, free: 7.434 MB / 238.1 MB " [Timeout remaining time 180] 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.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_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 71.91 kB / 424.3 MB, free: 36.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09588, allocations: 52.9 MB / 477.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01807/0.114, allocations: 16.04 MB / 493.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.1273, allocations: 6.881 MB / 0.4884 GB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003283/0.1306, allocations: 95.19 kB / 0.4885 GB, free: 8.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002766/0.1334, allocations: 0.826 MB / 0.4893 GB, free: 7.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007793/0.1412, allocations: 2.637 MB / 0.4919 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003758/0.1449, allocations: 1.589 MB / 0.4934 GB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007426/0.1524, allocations: 5.076 MB / 0.4984 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.1534, allocations: 0.4957 MB / 0.4988 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002956/0.1564, allocations: 1.814 MB / 0.5006 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002854/0.1592, allocations: 1.856 MB / 0.5024 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004776/0.1597, allocations: 288 kB / 0.5027 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.1613, allocations: 0.7028 MB / 0.5034 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005344/0.1618, allocations: 0.6303 MB / 0.504 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001785/0.1636, allocations: 1.652 MB / 0.5056 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005902/0.1695, allocations: 4.254 MB / 0.5098 GB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1695, allocations: 0 / 0.5098 GB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1695, allocations: 0 / 0.5098 GB, free: 2.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.679e-05/0.1696, allocations: 0 / 0.5098 GB, free: 2.387 MB / 382.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.01345/0.1831, allocations: 4.208 MB / 0.5139 GB, free: 14.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.1831, allocations: 12.02 kB / 0.5139 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.1846, allocations: 418.8 kB / 0.5143 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004084/0.1887, allocations: 1.848 MB / 0.5161 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.1889, allocations: 172.3 kB / 0.5163 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.1892, allocations: 223.9 kB / 0.5165 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003691/0.1929, allocations: 2.08 MB / 0.5185 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.745e-05/0.1929, allocations: 7.938 kB / 0.5185 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.1931, allocations: 80 kB / 0.5186 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.423e-05/0.1932, allocations: 52 kB / 0.5186 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003705/0.1969, allocations: 1.904 MB / 0.5205 GB, free: 7.211 MB / 398.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.2421/0.4389, allocations: 12.13 MB / 0.5323 GB, free: 54.51 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003669/0.4426, allocations: 1.773 MB / 0.5341 GB, free: 53.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.4439, allocations: 0.7481 MB / 0.5348 GB, free: 53.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.444, allocations: 29.83 kB / 0.5348 GB, free: 53.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.4441, allocations: 62.55 kB / 0.5349 GB, free: 53.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 4.97e-06/0.4441, allocations: 3.969 kB / 0.5349 GB, free: 53.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.0103/0.4544, allocations: 3.333 MB / 0.5382 GB, free: 52.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.539e-05/0.4545, allocations: 178 kB / 0.5383 GB, free: 52.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003166/0.4576, allocations: 1.893 MB / 0.5402 GB, free: 51.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.4579, allocations: 66.8 kB / 0.5402 GB, free: 51.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007091/0.4586, allocations: 1.116 MB / 0.5413 GB, free: 50.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000644/0.4593, allocations: 0.7182 MB / 0.542 GB, free: 50.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006191/0.4599, allocations: 483.2 kB / 0.5425 GB, free: 50.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 4.374e-05/0.4599, allocations: 304.1 kB / 0.5428 GB, free: 49.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.4614, allocations: 0.8356 MB / 0.5436 GB, free: 49.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.4632, allocations: 1.459 MB / 0.545 GB, free: 48.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/0.466, allocations: 2.199 MB / 0.5472 GB, free: 47.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.466, allocations: 3.938 kB / 0.5472 GB, free: 47.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=341) (initialization): time 0.008325/0.4743, allocations: 3.753 MB / 0.5508 GB, free: 45.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.4744, allocations: 15.62 kB / 0.5509 GB, free: 45.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-05/0.4744, allocations: 15.81 kB / 0.5509 GB, free: 45.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008679/0.4831, allocations: 1.796 MB / 0.5526 GB, free: 44.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00211/0.4852, allocations: 0.5315 MB / 0.5531 GB, free: 44.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02021/0.5054, allocations: 20.26 MB / 0.5729 GB, free: 23.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/0.5084, allocations: 284 kB / 0.5732 GB, free: 23.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002541/0.5086, allocations: 96 kB / 0.5733 GB, free: 23.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001853/0.5105, allocations: 1.079 MB / 0.5743 GB, free: 22.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00122/0.5117, allocations: 1.344 MB / 0.5757 GB, free: 20.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002141/0.5139, allocations: 2.039 MB / 0.5776 GB, free: 18.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/0.5139, allocations: 7.938 kB / 0.5777 GB, free: 18.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=341) (initialization_lambda0): time 0.005418/0.5193, allocations: 2.948 MB / 0.5805 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.5193, allocations: 12.12 kB / 0.5805 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.5193, allocations: 16 kB / 0.5806 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006344/0.5257, allocations: 1.268 MB / 0.5818 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/0.5281, allocations: 0.6046 MB / 0.5824 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/0.5408, allocations: 15.55 MB / 0.5976 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/0.5437, allocations: 199.5 kB / 0.5978 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/0.544, allocations: 99.94 kB / 0.5979 GB, free: 12.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * 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 (284): * Single equations (assignments): 273 * 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.0006781/0.5446, allocations: 335.8 kB / 0.5982 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/0.5453, allocations: 258.4 kB / 0.5984 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004713/0.55, allocations: 2.096 MB / 0.6005 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/0.5501, allocations: 7.969 kB / 0.6005 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.5501, allocations: 0 / 0.6005 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/0.5516, allocations: 456.8 kB / 0.6009 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/0.5519, allocations: 36 kB / 0.601 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.5533, allocations: 81.59 kB / 0.601 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.5536, allocations: 161.6 kB / 0.6012 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005546/0.5592, allocations: 2.078 MB / 0.6032 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00509/0.5643, allocations: 2.67 MB / 0.6058 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001222/0.5655, allocations: 0.6636 MB / 0.6065 GB, free: 3.902 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.5677, allocations: 1.23 MB / 0.6077 GB, free: 2.656 MB / 414.1 MB Notification: Performance of Backend: time 8.42e-07/0.5677, allocations: 0 / 0.6077 GB, free: 2.656 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01502/0.5827, allocations: 6.752 MB / 0.6143 GB, free: 11.68 MB / 430.1 MB Notification: Performance of SimCode: time 0.01098/0.5937, allocations: 6.551 MB / 0.6207 GB, free: 5.121 MB / 430.1 MB [CodegenCpp.tpl:12297:11-12297: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:12297:11-12297: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 659] [Calling sys.exit(0), Time elapsed: 3.3659430088009685] Failed to read output from testmodel.py, exit status != 0: 0.7157001071609557 0.910341866 0.737878376 Calling exit ...