Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06161/0.06161, allocations: 14.17 MB / 284.5 MB, free: 7.141 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005806/0.0005807, allocations: 12 kB / 348.8 MB, free: 17.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.09385, allocations: 51.11 MB / 399.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen): time 0.01298/0.1069, allocations: 13.79 MB / 413.7 MB, free: 220 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.1189, allocations: 6.778 MB / 420.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.1218, allocations: 67.56 kB / 420.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002065/0.1238, allocations: 0.5667 MB / 421.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006884/0.1307, allocations: 2.289 MB / 423.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002886/0.1336, allocations: 1.151 MB / 424.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007143/0.1408, allocations: 3.523 MB / 428.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001491/0.1423, allocations: 0.6717 MB / 428.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1885/0.3308, allocations: 1.342 MB / 430.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.3344, allocations: 1.389 MB / 431.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007388/0.3352, allocations: 96.25 kB / 431.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002359/0.3376, allocations: 451.4 kB / 432 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004634/0.338, allocations: 398.5 kB / 432.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3392, allocations: 0.5839 MB / 433 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005112/0.3444, allocations: 3.585 MB / 436.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3444, allocations: 0 / 436.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.3444, allocations: 0 / 436.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001306/0.3445, allocations: 0 / 436.6 MB, free: 13.81 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01292/0.3575, allocations: 3.737 MB / 440.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.3575, allocations: 12.52 kB / 440.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002428/0.36, allocations: 430.9 kB / 440.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004353/0.3643, allocations: 1.947 MB / 442.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.3645, allocations: 164.4 kB / 442.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003926/0.3649, allocations: 231 kB / 443.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004217/0.3691, allocations: 2.197 MB / 445.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.05e-05/0.3692, allocations: 5.312 kB / 445.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.3694, allocations: 85.97 kB / 445.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.967e-05/0.3695, allocations: 52.22 kB / 445.4 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004062/0.3735, allocations: 2.093 MB / 447.5 MB, free: 10.89 MB / 318.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.01629/0.3899, allocations: 12.58 MB / 460.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/0.3941, allocations: 2.862 MB / 463 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.3943, allocations: 33.58 kB / 463 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.396, allocations: 1.16 MB / 464.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=209): time 4.488e-06/0.3961, allocations: 0 / 464.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of matching and sorting (n=210): time 0.01663/0.4127, allocations: 6.606 MB / 470.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002741/0.413, allocations: 368.1 kB / 471.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003518/0.4166, allocations: 1.787 MB / 472.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003202/0.4169, allocations: 69.7 kB / 473 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.418, allocations: 1.067 MB / 474.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008868/0.4189, allocations: 0.7292 MB / 474.8 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.419, allocations: 52 kB / 474.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.4192, allocations: 410.3 kB / 475.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00193/0.4212, allocations: 0.9385 MB / 476.2 MB, free: 8.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002332/0.4235, allocations: 1.484 MB / 477.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.4258, allocations: 1.179 MB / 478.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-06/0.4258, allocations: 4 kB / 478.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=345) (initialization): time 0.01026/0.436, allocations: 4.234 MB / 483.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002073/0.4382, allocations: 4.874 MB / 488 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/0.4382, allocations: 12 kB / 488 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008759/0.447, allocations: 1.739 MB / 489.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002603/0.4496, allocations: 0.5322 MB / 490.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02784/0.4774, allocations: 21.49 MB / 0.4997 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.4811, allocations: 182.3 kB / 0.4999 GB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004755/0.4816, allocations: 99.98 kB / 0.5 GB, free: 2.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4817, allocations: 8 kB / 0.5 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006131/0.4878, allocations: 2.917 MB / 0.5029 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.4879, allocations: 12 kB / 0.5029 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006698/0.4946, allocations: 1.281 MB / 0.5041 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/0.4975, allocations: 0.6038 MB / 0.5047 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01611/0.5136, allocations: 15.89 MB / 0.5202 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002987/0.5166, allocations: 123.6 kB / 0.5204 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/0.5169, allocations: 95.98 kB / 0.5204 GB, free: 12.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,ctrlGEN.PSS.firstWashoutVsi2.integrator.local_reset,ctrlGEN.PSS.secondWashoutVsi1.integrator.local_reset,ctrlGEN.PSS.firstWashoutVsi1.integrator.local_reset,ctrlGEN.AVR.firstOrderLim.I.local_reset,ctrlGEN.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 (286): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(3,66.7%) 0,(3,66.7%) 0} * Non-linear torn systems: 6 {38 0,2 0,2 0,2 0,2 0,10 0} Notification: Performance of prepare postOptimizeDAE: time 0.001755/0.5187, allocations: 0.6731 MB / 0.5211 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006763/0.5194, allocations: 257 kB / 0.5213 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005006/0.5244, allocations: 2.483 MB / 0.5238 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.5244, allocations: 11.95 kB / 0.5238 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5244, allocations: 0 / 0.5238 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.5258, allocations: 0.5057 MB / 0.5243 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003731/0.5262, allocations: 44 kB / 0.5243 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.5275, allocations: 115.6 kB / 0.5244 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.5278, allocations: 161.7 kB / 0.5246 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006051/0.5339, allocations: 2.616 MB / 0.5271 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005182/0.5391, allocations: 3.133 MB / 0.5302 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001475/0.5406, allocations: 0.8434 MB / 0.531 GB, free: 1.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001936/0.5425, allocations: 1.159 MB / 0.5322 GB, free: 244 kB / 398.1 MB Notification: Performance of Backend: time 1.272e-06/0.5426, allocations: 0 / 0.5322 GB, free: 244 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01439/0.557, allocations: 7.398 MB / 0.5394 GB, free: 8.656 MB / 414.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of SimCode: time 0.009578/0.5666, allocations: 6.349 MB / 0.5456 GB, free: 2.262 MB / 414.1 MB Notification: Performance of Templates: time 0.07928/0.6459, allocations: 46.39 MB / 0.5909 GB, free: 3.996 MB / 462.1 MB make -j1 -f PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.makefile Environment - environmentSimulation: (rm -f PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.pipe ; mkfifo PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.pipe >> ../files/PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.sim & ./PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen -nls=kinsol -lv=LOG_INIT_HOMOTOPY -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.pipe 2>&1) Environment - environmentSimulation: