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.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.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",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.001032/0.001032, allocations: 99.7 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.001028/0.001028, allocations: 177.3 kB / 15.94 MB, free: 228 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.548/1.548, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06021/0.06021, allocations: 14.17 MB / 284.5 MB, free: 7.004 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.0005428/0.0005429, allocations: 12 kB / 348.9 MB, free: 17.11 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1265, allocations: 51.12 MB / 400 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01426/0.1408, allocations: 13.56 MB / 413.6 MB, free: 340 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.1548, allocations: 6.434 MB / 420 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004633/0.1595, allocations: 67.56 kB / 420.1 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003305/0.1628, allocations: 0.555 MB / 420.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008691/0.1715, allocations: 2.275 MB / 422.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003857/0.1754, allocations: 1.132 MB / 424.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008964/0.1844, allocations: 3.41 MB / 427.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.1857, allocations: 0.5816 MB / 428 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003936/0.1896, allocations: 1.331 MB / 429.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2645/0.4541, allocations: 1.365 MB / 430.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001535/0.4557, allocations: 94.31 kB / 430.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003028/0.4587, allocations: 449.4 kB / 431.3 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004986/0.4593, allocations: 392.4 kB / 431.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.4604, allocations: 0.5368 MB / 432.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006974/0.4674, allocations: 2.893 MB / 435.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4674, allocations: 1.094 kB / 435.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.468e-06/0.4674, allocations: 0 / 435.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001865/0.4676, allocations: 3.094 kB / 435.1 MB, free: 14.22 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01498/0.4826, allocations: 3.618 MB / 438.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/0.4827, allocations: 14.05 kB / 438.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001244/0.4839, allocations: 282 kB / 439 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002137/0.4861, allocations: 406.2 kB / 439.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004295/0.4904, allocations: 1.729 MB / 441.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.4906, allocations: 169.7 kB / 441.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003963/0.491, allocations: 221.1 kB / 441.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004548/0.4956, allocations: 2.089 MB / 443.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.4956, allocations: 1.469 kB / 443.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/0.4958, allocations: 88.34 kB / 443.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.404e-05/0.4959, allocations: 49.59 kB / 443.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004248/0.5001, allocations: 1.964 MB / 445.7 MB, free: 11.85 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.01697/0.5171, allocations: 11.77 MB / 457.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00374/0.5209, allocations: 2.692 MB / 460.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.521, allocations: 31.77 kB / 460.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.5211, allocations: 50.34 kB / 460.2 MB, free: 2.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 3.857e-06/0.5211, allocations: 2 kB / 460.2 MB, free: 2.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01485/0.5359, allocations: 5.589 MB / 465.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.5361, allocations: 182.5 kB / 466 MB, free: 412 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.5396, allocations: 1.771 MB / 467.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003561/0.54, allocations: 71.92 kB / 467.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.5411, allocations: 1.09 MB / 468.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009839/0.542, allocations: 0.6846 MB / 469.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.5422, allocations: 55.62 kB / 469.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002755/0.5425, allocations: 409.4 kB / 470.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/0.5444, allocations: 0.8533 MB / 470.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/0.547, allocations: 1.48 MB / 472.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.5492, allocations: 1.041 MB / 473.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.5492, allocations: 8 kB / 473.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.01029/0.5595, allocations: 4.012 MB / 477.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003459/0.563, allocations: 6.464 MB / 483.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/0.563, allocations: 18.52 kB / 483.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005048/0.5681, allocations: 1.328 MB / 485.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/0.5708, allocations: 0.5432 MB / 485.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02832/0.5991, allocations: 20.83 MB / 0.4948 GB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003529/0.6027, allocations: 195.4 kB / 0.495 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005123/0.6032, allocations: 104 kB / 0.4951 GB, free: 7.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.6033, allocations: 4 kB / 0.4951 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006322/0.6096, allocations: 2.712 MB / 0.4977 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.434e-05/0.6097, allocations: 16 kB / 0.4977 GB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003309/0.613, allocations: 0.7761 MB / 0.4985 GB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003103/0.6161, allocations: 0.6225 MB / 0.4991 GB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/0.6322, allocations: 14.28 MB / 0.513 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003686/0.636, allocations: 123.6 kB / 0.5132 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002871/0.6363, allocations: 99.98 kB / 0.5133 GB, free: 3.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (287): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 4 {6 32,1 1,1 1,3 7} Notification: Performance of prepare postOptimizeDAE: time 0.001801/0.6381, allocations: 0.5568 MB / 0.5138 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007783/0.6389, allocations: 255 kB / 0.514 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004529/0.6434, allocations: 2.171 MB / 0.5162 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.6435, allocations: 16 kB / 0.5162 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.6435, allocations: 14.62 kB / 0.5162 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.47e-05/0.6435, allocations: 7.969 kB / 0.5162 GB, free: 0.9805 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.008536/0.652, allocations: 4.513 MB / 0.5206 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.6521, allocations: 0 / 0.5206 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.6537, allocations: 354.4 kB / 0.5209 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.6552, allocations: 467 kB / 0.5214 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.6553, allocations: 43.98 kB / 0.5214 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006158/0.6615, allocations: 3.711 MB / 0.5251 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6615, allocations: 1.969 kB / 0.5251 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006506/0.668, allocations: 3.116 MB / 0.5281 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001798/0.6699, allocations: 453.9 kB / 0.5285 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.6702, allocations: 40 kB / 0.5286 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.6715, allocations: 103.9 kB / 0.5287 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003496/0.6719, allocations: 137.8 kB / 0.5288 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.322e-05/0.672, allocations: 47.98 kB / 0.5288 GB, free: 3.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.6741, allocations: 1.125 MB / 0.5299 GB, free: 2.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6741, allocations: 0 / 0.5299 GB, free: 2.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005136/0.6793, allocations: 1.18 MB / 0.5311 GB, free: 1.516 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * 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 {(9,48.1%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006338/0.6856, allocations: 3.797 MB / 0.5348 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01312/0.6987, allocations: 6.55 MB / 0.5412 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.6988, allocations: 0 / 0.5412 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002636/0.7015, allocations: 1.23 MB / 0.5424 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.7041, allocations: 360.1 kB / 0.5427 GB, free: 5.445 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: created linear, non-linear and system jacobian parts: time 0.01586/0.7199, allocations: 16.87 MB / 0.5592 GB, free: 4.234 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/0.7215, allocations: 1.644 MB / 0.5608 GB, free: 2.547 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002194/0.7237, allocations: 345.4 kB / 0.5612 GB, free: 2.207 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.7252, allocations: 0.9601 MB / 0.5621 GB, free: 1.246 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7252, allocations: 0 / 0.5621 GB, free: 1.246 MB / 430.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).