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.001587/0.001587, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001676/0.001676, allocations: 215.9 kB / 22.99 MB, free: 4.945 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.389/1.389, allocations: 207.7 MB / 233.8 MB, free: 9.797 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.0735/0.0735, allocations: 14.39 MB / 300.5 MB, free: 7.242 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.002264/0.002264, allocations: 71.91 kB / 424.3 MB, free: 36.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08906, allocations: 52.9 MB / 477.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01606/0.1051, allocations: 13.81 MB / 491 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.1179, allocations: 6.476 MB / 497.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.1211, allocations: 99.12 kB / 497.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003083/0.1242, allocations: 0.8027 MB / 498.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008172/0.1324, allocations: 2.569 MB / 0.4892 GB, free: 7.359 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004069/0.1364, allocations: 1.535 MB / 0.4907 GB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007838/0.1443, allocations: 5.075 MB / 0.4956 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/0.1456, allocations: 479.5 kB / 0.4961 GB, free: 244 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003513/0.1491, allocations: 1.802 MB / 0.4978 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003437/0.1525, allocations: 1.676 MB / 0.4995 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008399/0.1533, allocations: 284 kB / 0.4998 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.1555, allocations: 0.6832 MB / 0.5004 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007501/0.1562, allocations: 0.642 MB / 0.5011 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002337/0.1586, allocations: 1.345 MB / 0.5024 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006672/0.1652, allocations: 4.273 MB / 0.5065 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1652, allocations: 0 / 0.5065 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1652, allocations: 0 / 0.5065 GB, free: 5.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.64e-05/0.1653, allocations: 3.938 kB / 0.5065 GB, free: 5.496 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.0148/0.1801, allocations: 4.204 MB / 0.5106 GB, free: 1.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.92e-05/0.1802, allocations: 11.97 kB / 0.5107 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.1819, allocations: 422.8 kB / 0.5111 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004337/0.1862, allocations: 1.852 MB / 0.5129 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.1864, allocations: 164.4 kB / 0.513 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004001/0.1868, allocations: 223.9 kB / 0.5132 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004262/0.1911, allocations: 2.206 MB / 0.5154 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.1911, allocations: 4 kB / 0.5154 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/0.1913, allocations: 80 kB / 0.5155 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.285e-05/0.1913, allocations: 48 kB / 0.5155 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/0.1952, allocations: 1.897 MB / 0.5174 GB, free: 10.18 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.01827/0.2135, allocations: 7.651 MB / 0.5248 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004297/0.2178, allocations: 1.76 MB / 0.5266 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2419/0.4597, allocations: 0.7455 MB / 0.5273 GB, free: 59.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001858/0.4599, allocations: 23.75 kB / 0.5273 GB, free: 59.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.4599, allocations: 54.89 kB / 0.5274 GB, free: 59.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 5.911e-06/0.4599, allocations: 0 / 0.5274 GB, free: 59.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01144/0.4714, allocations: 3.336 MB / 0.5306 GB, free: 59.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.711e-05/0.4715, allocations: 178 kB / 0.5308 GB, free: 59.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003658/0.4751, allocations: 1.853 MB / 0.5326 GB, free: 58.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003731/0.4755, allocations: 67.58 kB / 0.5327 GB, free: 58.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/0.4766, allocations: 1.128 MB / 0.5338 GB, free: 57.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009853/0.4775, allocations: 0.7146 MB / 0.5345 GB, free: 57.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007924/0.4783, allocations: 475.4 kB / 0.5349 GB, free: 57.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.4784, allocations: 303.4 kB / 0.5352 GB, free: 57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/0.4805, allocations: 0.8309 MB / 0.536 GB, free: 56.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/0.4832, allocations: 1.723 MB / 0.5377 GB, free: 55.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003959/0.4872, allocations: 2.182 MB / 0.5398 GB, free: 53.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.39e-05/0.4872, allocations: 4.25 kB / 0.5398 GB, free: 53.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009658/0.4969, allocations: 3.731 MB / 0.5435 GB, free: 52.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.4969, allocations: 11.91 kB / 0.5435 GB, free: 52.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/0.4969, allocations: 12.78 kB / 0.5435 GB, free: 52.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008544/0.5055, allocations: 1.793 MB / 0.5453 GB, free: 52.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.5078, allocations: 0.5244 MB / 0.5458 GB, free: 52.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02075/0.5285, allocations: 19.83 MB / 0.5651 GB, free: 32.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00286/0.5314, allocations: 268 kB / 0.5654 GB, free: 32.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/0.5317, allocations: 104 kB / 0.5655 GB, free: 32.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001887/0.5335, allocations: 1.073 MB / 0.5665 GB, free: 31.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001438/0.535, allocations: 1.604 MB / 0.5681 GB, free: 29.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002368/0.5374, allocations: 2.034 MB / 0.5701 GB, free: 27.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.111e-05/0.5374, allocations: 8 kB / 0.5701 GB, free: 27.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.005967/0.5433, allocations: 2.921 MB / 0.5729 GB, free: 24.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.5434, allocations: 12 kB / 0.573 GB, free: 24.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.5434, allocations: 16 kB / 0.573 GB, free: 24.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006006/0.5494, allocations: 1.272 MB / 0.5742 GB, free: 22.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/0.5517, allocations: 0.5929 MB / 0.5748 GB, free: 22.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/0.5634, allocations: 15.23 MB / 0.5897 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002947/0.5663, allocations: 193 kB / 0.5899 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003487/0.5667, allocations: 99.98 kB / 0.5899 GB, free: 5.656 MB / 398.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 (279): * Single equations (assignments): 268 * 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.0006787/0.5674, allocations: 328.3 kB / 0.5903 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007371/0.5681, allocations: 254.4 kB / 0.5905 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003727/0.5718, allocations: 2.108 MB / 0.5926 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.5719, allocations: 15.89 kB / 0.5926 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.5719, allocations: 0 / 0.5926 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.5733, allocations: 433.4 kB / 0.593 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/0.5736, allocations: 40 kB / 0.593 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/0.575, allocations: 75.17 kB / 0.5931 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.5753, allocations: 157.7 kB / 0.5933 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004602/0.5799, allocations: 2.067 MB / 0.5953 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005033/0.5849, allocations: 2.668 MB / 0.5979 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001305/0.5862, allocations: 0.6559 MB / 0.5985 GB, free: 12.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.5882, allocations: 1.185 MB / 0.5997 GB, free: 11.7 MB / 414.1 MB Notification: Performance of Backend: time 2.4e-07/0.5882, allocations: 0 / 0.5997 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01606/0.6043, allocations: 6.729 MB / 0.6062 GB, free: 4.746 MB / 414.1 MB Notification: Performance of SimCode: time 0.01176/0.6161, allocations: 5.987 MB / 0.6121 GB, free: 14.74 MB / 430.1 MB [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 659] [Calling sys.exit(0), Time elapsed: 3.1222761049866676] Failed to read output from testmodel.py, exit status != 0: 0.7385977189987898 0.755071109 0.586254317 Calling exit ...