Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS.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.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",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.0008007/0.0008009, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.000995/0.000995, allocations: 172.7 kB / 15.95 MB, free: 208 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.415/1.415, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05916/0.05916, allocations: 14.18 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.0004847/0.0004849, allocations: 18.81 kB / 349 MB, free: 17.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.08686, allocations: 51.12 MB / 400.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS): time 0.01146/0.09837, allocations: 12.81 MB / 412.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008858/0.1073, allocations: 5.704 MB / 418.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.1083, allocations: 47.75 kB / 418.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.1095, allocations: 0.5204 MB / 419.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00402/0.1135, allocations: 1.923 MB / 421.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.1153, allocations: 0.9421 MB / 422 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.1196, allocations: 4.123 MB / 426.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006026/0.1202, allocations: 399.1 kB / 426.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.1217, allocations: 1.096 MB / 427.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.1229, allocations: 1.229 MB / 428.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.1231, allocations: 84 kB / 429 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009941/0.1241, allocations: 451.6 kB / 429.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002646/0.1244, allocations: 326.2 kB / 429.7 MB, free: 176 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1959/0.3203, allocations: 465.6 kB / 430.2 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004505/0.3249, allocations: 2.405 MB / 432.6 MB, free: 16.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3249, allocations: 0 / 432.6 MB, free: 16.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3249, allocations: 1.375 kB / 432.6 MB, free: 16.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.439e-05/0.325, allocations: 0 / 432.6 MB, free: 16.08 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: 418 * Number of variables: 418 Notification: Performance of Generate backend data structure: time 0.01032/0.3353, allocations: 3.213 MB / 435.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.3354, allocations: 13.27 kB / 435.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000583/0.336, allocations: 232 kB / 436 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001725/0.3377, allocations: 360.5 kB / 436.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.3405, allocations: 1.391 MB / 437.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.209e-05/0.3406, allocations: 138.8 kB / 437.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.3409, allocations: 187.1 kB / 438.1 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.3438, allocations: 1.753 MB / 439.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.3438, allocations: 1.219 kB / 439.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.344, allocations: 65.31 kB / 439.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-05/0.344, allocations: 39.44 kB / 440 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.3471, allocations: 1.735 MB / 441.7 MB, free: 14.02 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.01208/0.3592, allocations: 9.977 MB / 451.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003214/0.3624, allocations: 2.537 MB / 454.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.3637, allocations: 0.7592 MB / 455 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.3638, allocations: 29.12 kB / 455 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001457/0.3652, allocations: 1.013 MB / 456 MB, free: 5.898 MB / 318.1 MB Notification: Performance of pre-optimization done (n=184): time 3.346e-06/0.3653, allocations: 4 kB / 456 MB, free: 5.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01333/0.3786, allocations: 5.751 MB / 461.8 MB, free: 3.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3787, allocations: 339.6 kB / 462.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.3805, allocations: 1.353 MB / 463.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.3806, allocations: 72.95 kB / 463.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006116/0.3813, allocations: 0.8206 MB / 464.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000508/0.3818, allocations: 0.6436 MB / 465 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.3819, allocations: 46.25 kB / 465 MB, free: 2.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.382, allocations: 393.9 kB / 465.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.3832, allocations: 0.7307 MB / 466.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.3845, allocations: 1.197 MB / 467.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.386, allocations: 0.9446 MB / 468.3 MB, free: 108 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.386, allocations: 2.625 kB / 468.3 MB, free: 108 kB / 318.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007241/0.3932, allocations: 3.362 MB / 471.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003602/0.3936, allocations: 460.7 kB / 472.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.3937, allocations: 8 kB / 472.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007084/0.4007, allocations: 1.526 MB / 473.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/0.4029, allocations: 466.6 kB / 474.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02231/0.4252, allocations: 18.04 MB / 492.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/0.4278, allocations: 159.4 kB / 492.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001821/0.428, allocations: 83.98 kB / 492.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/0.428, allocations: 4 kB / 492.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005233/0.4332, allocations: 2.551 MB / 494.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.4333, allocations: 11.95 kB / 494.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006402/0.4397, allocations: 1.344 MB / 496.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/0.4416, allocations: 482.3 kB / 496.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.4567, allocations: 14.77 MB / 0.4995 GB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/0.4595, allocations: 103.6 kB / 0.4996 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/0.4597, allocations: 91.98 kB / 0.4997 GB, free: 2.359 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,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 (248): * Single equations (assignments): 236 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,66.7%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 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.001594/0.4613, allocations: 0.5437 MB / 0.5002 GB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005311/0.4619, allocations: 197.7 kB / 0.5004 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.4661, allocations: 2.151 MB / 0.5025 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.4661, allocations: 23.98 kB / 0.5026 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.4662, allocations: 4 kB / 0.5026 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.4662, allocations: 7.969 kB / 0.5026 GB, free: 15.43 MB / 382.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.007152/0.4733, allocations: 4.274 MB / 0.5067 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.4734, allocations: 4 kB / 0.5068 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.4747, allocations: 314.9 kB / 0.5071 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.4758, allocations: 308.5 kB / 0.5073 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-05/0.4759, allocations: 39.95 kB / 0.5074 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006473/0.4824, allocations: 4.012 MB / 0.5113 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4824, allocations: 3.938 kB / 0.5113 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00571/0.4881, allocations: 3.032 MB / 0.5143 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.4893, allocations: 410.5 kB / 0.5147 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.4896, allocations: 32 kB / 0.5147 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4906, allocations: 111.6 kB / 0.5148 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.4909, allocations: 129.8 kB / 0.5149 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.734e-05/0.491, allocations: 51.98 kB / 0.515 GB, free: 2.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001306/0.4923, allocations: 0.8649 MB / 0.5158 GB, free: 1.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4923, allocations: 0.6562 kB / 0.5158 GB, free: 1.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003379/0.4957, allocations: 1.035 MB / 0.5168 GB, free: 0.625 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (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) * 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 (145): * Single equations (assignments): 142 * 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.00603/0.5017, allocations: 3.735 MB / 0.5205 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01192/0.5137, allocations: 6.994 MB / 0.5273 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5137, allocations: 0 / 0.5273 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003159/0.5169, allocations: 1.638 MB / 0.5289 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.5189, allocations: 290.6 kB / 0.5292 GB, free: 3.789 MB / 398.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.02554/0.5445, allocations: 13.08 MB / 0.542 GB, free: 5.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.5457, allocations: 1.438 MB / 0.5434 GB, free: 4.441 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001606/0.5473, allocations: 282 kB / 0.5436 GB, free: 4.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/0.5484, allocations: 0.7648 MB / 0.5444 GB, free: 3.395 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5484, allocations: 0 / 0.5444 GB, free: 3.395 MB / 414.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).