Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS.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: "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithPSS",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000816/0.0008159, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0008229/0.0008229, allocations: 168.7 kB / 15.95 MB, free: 204 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.411/1.411, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05944/0.05944, allocations: 14.17 MB / 284.6 MB, free: 7.121 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.0005236/0.0005238, allocations: 20 kB / 349 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09826, allocations: 51.11 MB / 400.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS): time 0.01464/0.113, allocations: 14.61 MB / 414.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.1254, allocations: 6.448 MB / 421.2 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003357/0.1288, allocations: 71.56 kB / 421.2 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.1316, allocations: 0.5977 MB / 421.8 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006749/0.1383, allocations: 2.013 MB / 423.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003441/0.1418, allocations: 1.111 MB / 424.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008041/0.1498, allocations: 4.704 MB / 429.7 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2305/0.3803, allocations: 0.5728 MB / 430.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003584/0.384, allocations: 1.255 MB / 431.5 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003262/0.3873, allocations: 1.382 MB / 432.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000514/0.3878, allocations: 91.34 kB / 433 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.39, allocations: 453.1 kB / 433.4 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005104/0.3905, allocations: 393.6 kB / 433.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.3917, allocations: 0.5417 MB / 434.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004844/0.3966, allocations: 2.91 MB / 437.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3966, allocations: 0 / 437.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3966, allocations: 0 / 437.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001409/0.3967, allocations: 1.031 kB / 437.2 MB, free: 14.1 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01201/0.4088, allocations: 3.666 MB / 440.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.4088, allocations: 13.77 kB / 440.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009898/0.4098, allocations: 276.9 kB / 441.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002414/0.4123, allocations: 433.4 kB / 441.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004225/0.4165, allocations: 1.71 MB / 443.3 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.4167, allocations: 169.7 kB / 443.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000551/0.4173, allocations: 228.9 kB / 443.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005266/0.4226, allocations: 2.112 MB / 445.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.4227, allocations: 7.938 kB / 445.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.4229, allocations: 84.81 kB / 445.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-05/0.423, allocations: 47.97 kB / 446 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004467/0.4275, allocations: 1.983 MB / 447.9 MB, free: 11.64 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.01691/0.4444, allocations: 11.59 MB / 459.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004497/0.4489, allocations: 2.774 MB / 462.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.4504, allocations: 0.8861 MB / 463.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000124/0.4505, allocations: 31.78 kB / 463.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001827/0.4524, allocations: 1.113 MB / 464.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=209): time 7.003e-06/0.4524, allocations: 0 / 464.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=210): time 0.01658/0.469, allocations: 6.318 MB / 470.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002063/0.4692, allocations: 368.1 kB / 471 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003363/0.4726, allocations: 1.698 MB / 472.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.4729, allocations: 69.7 kB / 472.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/0.4741, allocations: 1.051 MB / 473.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/0.4751, allocations: 0.7279 MB / 474.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/0.4754, allocations: 52 kB / 474.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002875/0.4757, allocations: 407.4 kB / 475 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/0.4776, allocations: 0.8251 MB / 475.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002257/0.4799, allocations: 1.38 MB / 477.2 MB, free: 7.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002189/0.4821, allocations: 1.055 MB / 478.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/0.4822, allocations: 4 kB / 478.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.009296/0.4915, allocations: 3.735 MB / 482 MB, free: 2.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004541/0.4919, allocations: 0.497 MB / 482.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.862e-05/0.492, allocations: 12 kB / 482.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007609/0.4996, allocations: 1.628 MB / 484.1 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/0.502, allocations: 0.5265 MB / 484.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02619/0.5282, allocations: 20.84 MB / 0.4937 GB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/0.5311, allocations: 171.5 kB / 0.4938 GB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004731/0.5316, allocations: 95.98 kB / 0.4939 GB, free: 8.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.5316, allocations: 4 kB / 0.4939 GB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006797/0.5384, allocations: 2.851 MB / 0.4967 GB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.283e-05/0.5385, allocations: 12 kB / 0.4967 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006939/0.5454, allocations: 1.452 MB / 0.4981 GB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002305/0.5478, allocations: 0.5269 MB / 0.4986 GB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/0.5662, allocations: 17.57 MB / 0.5158 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002588/0.5688, allocations: 118.2 kB / 0.5159 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004399/0.5692, allocations: 95.98 kB / 0.516 GB, free: 0.9922 MB / 382.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,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 (282): * Single equations (assignments): 268 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,66.7%) 0,(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,4 0} Notification: Performance of prepare postOptimizeDAE: time 0.001732/0.571, allocations: 0.6233 MB / 0.5166 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008544/0.5719, allocations: 257 kB / 0.5169 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005259/0.5771, allocations: 2.382 MB / 0.5192 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.5772, allocations: 27.94 kB / 0.5192 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.5772, allocations: 4 kB / 0.5192 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.417e-05/0.5772, allocations: 11.95 kB / 0.5192 GB, free: 13.7 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 postOpt removeSimpleEquations (simulation): time 0.009094/0.5863, allocations: 4.843 MB / 0.524 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.5864, allocations: 4 kB / 0.524 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.588, allocations: 363.5 kB / 0.5243 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.5892, allocations: 304.5 kB / 0.5246 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/0.5894, allocations: 43.98 kB / 0.5246 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006843/0.5962, allocations: 4.005 MB / 0.5285 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5962, allocations: 0 / 0.5285 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007085/0.6033, allocations: 3.412 MB / 0.5319 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.605, allocations: 469.9 kB / 0.5323 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007326/0.6057, allocations: 43.98 kB / 0.5324 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/0.6076, allocations: 108 kB / 0.5325 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003745/0.608, allocations: 145.8 kB / 0.5326 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.6081, allocations: 51.98 kB / 0.5327 GB, free: 15.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00256/0.6107, allocations: 1.087 MB / 0.5337 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6107, allocations: 0 / 0.5337 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005359/0.6161, allocations: 1.16 MB / 0.5349 GB, free: 13.45 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu,TGOV.firstOrderLim.I.y,TGOV.leadLag.firstOrder.y,AVR.leadLag.firstOrder.y,AVR.firstOrderLim.I.y,PSS.firstWashoutVsi1.integrator.y,PSS.secondWashoutVsi1.integrator.y,PSS.firstWashoutVsi2.integrator.y,PSS.leadLag1.firstOrder.y,PSS.leadLag2.firstOrder.y,PSS.firstOrderVsi2.firstOrder1.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,NTHV.Y.re,NTHV.Y.im,NTHV.fault) * Number of discrete states: 7 ($whenCondition4,NTHV.Y.im,NTHV.Y.re,$whenCondition3,NTHV.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 167 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(38,7.8%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007254/0.6233, allocations: 4.104 MB / 0.5389 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01474/0.6381, allocations: 7.924 MB / 0.5466 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/0.6381, allocations: 4 kB / 0.5466 GB, free: 1.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00374/0.6419, allocations: 1.752 MB / 0.5483 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00348/0.6454, allocations: 394.8 kB / 0.5487 GB, free: 15.01 MB / 430.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: created linear, non-linear and system jacobian parts: time 0.03765/0.6831, allocations: 16.32 MB / 0.5646 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001897/0.685, allocations: 1.629 MB / 0.5662 GB, free: 11.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002159/0.6872, allocations: 328.8 kB / 0.5665 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001593/0.6888, allocations: 0.9679 MB / 0.5675 GB, free: 10.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6888, allocations: 0 / 0.5675 GB, free: 10.54 MB / 446.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).