Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.ENTSOE.TestCase3.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.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_PowerGrids_Examples_ENTSOE_TestCase3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_PowerGrids_Examples_ENTSOE_TestCase3",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.0009519/0.0009519, allocations: 98.38 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.0009812/0.0009813, 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.553/1.553, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06339/0.06339, allocations: 14.17 MB / 284.5 MB, free: 7.016 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.0005726/0.0005729, allocations: 12 kB / 348.9 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1079, allocations: 51.13 MB / 400 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase3): time 0.01532/0.1232, allocations: 13.62 MB / 413.6 MB, free: 300 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.1362, allocations: 6.439 MB / 420.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005181/0.1415, allocations: 67.56 kB / 420.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003797/0.1453, allocations: 0.5589 MB / 420.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008657/0.154, allocations: 2.26 MB / 423 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003941/0.158, allocations: 1.14 MB / 424.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007704/0.1657, allocations: 3.406 MB / 427.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.1674, allocations: 0.6047 MB / 428.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.1715, allocations: 1.331 MB / 429.4 MB, free: 444 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.255/0.4265, allocations: 1.362 MB / 430.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007487/0.4273, allocations: 92.78 kB / 430.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002348/0.4297, allocations: 450.3 kB / 431.3 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005117/0.4302, allocations: 389.3 kB / 431.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.4315, allocations: 0.5395 MB / 432.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005383/0.4369, allocations: 2.88 MB / 435.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4369, allocations: 0 / 435.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.949e-06/0.4369, allocations: 3.188 kB / 435.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001344/0.437, allocations: 0 / 435.1 MB, free: 14.24 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01341/0.4505, allocations: 3.677 MB / 438.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.4505, allocations: 15.11 kB / 438.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007462/0.4513, allocations: 285.6 kB / 439.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00205/0.4534, allocations: 427.2 kB / 439.5 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003958/0.4573, allocations: 1.725 MB / 441.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.4575, allocations: 166.3 kB / 441.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004078/0.4579, allocations: 225.9 kB / 441.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004631/0.4625, allocations: 2.127 MB / 443.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.833e-05/0.4626, allocations: 5.5 kB / 443.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002131/0.4628, allocations: 83.28 kB / 443.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.571e-05/0.4629, allocations: 49.84 kB / 443.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004112/0.467, allocations: 2.002 MB / 445.9 MB, free: 11.75 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.01558/0.4826, allocations: 11.74 MB / 457.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004163/0.4868, allocations: 2.81 MB / 460.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.487, allocations: 33.28 kB / 460.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002064/0.4891, allocations: 1.119 MB / 461.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=213): time 4.378e-06/0.4891, allocations: 0 / 461.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=214): time 0.01584/0.5049, allocations: 6.4 MB / 468 MB, free: 15.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002386/0.5052, allocations: 370.9 kB / 468.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/0.5087, allocations: 1.683 MB / 470 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004438/0.5092, allocations: 72.95 kB / 470.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.5103, allocations: 1.066 MB / 471.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001313/0.5116, allocations: 0.7368 MB / 471.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.5119, allocations: 52 kB / 472 MB, free: 12.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003084/0.5122, allocations: 403.5 kB / 472.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002243/0.5145, allocations: 0.8369 MB / 473.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002683/0.5172, allocations: 1.383 MB / 474.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/0.5199, allocations: 1.07 MB / 475.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/0.52, allocations: 4 kB / 475.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.01002/0.53, allocations: 3.767 MB / 479.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002957/0.533, allocations: 5.057 MB / 484.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/0.5331, allocations: 14.52 kB / 484.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004837/0.5379, allocations: 1.231 MB / 485.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/0.5406, allocations: 0.5273 MB / 486.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02891/0.5696, allocations: 21.11 MB / 0.4955 GB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00375/0.5734, allocations: 171.5 kB / 0.4956 GB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006117/0.574, allocations: 95.98 kB / 0.4957 GB, free: 6.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.574, allocations: 4 kB / 0.4957 GB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0083/0.5823, allocations: 2.876 MB / 0.4985 GB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-05/0.5824, allocations: 12 kB / 0.4985 GB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.5859, allocations: 0.8916 MB / 0.4994 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/0.5884, allocations: 0.5415 MB / 0.4999 GB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02036/0.6088, allocations: 16.51 MB / 0.5161 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/0.6117, allocations: 115.6 kB / 0.5162 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004657/0.6122, allocations: 99.98 kB / 0.5163 GB, free: 480 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (288): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 10 * 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: 6 {(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 4 {5 33,1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001994/0.6142, allocations: 0.6193 MB / 0.5169 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008628/0.6151, allocations: 246.9 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005627/0.6207, allocations: 2.423 MB / 0.5195 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.6208, allocations: 24 kB / 0.5195 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6208, allocations: 8 kB / 0.5195 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.7e-05/0.6208, allocations: 15.94 kB / 0.5195 GB, free: 13.14 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.009136/0.63, allocations: 4.852 MB / 0.5243 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.63, allocations: 0 / 0.5243 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.6317, allocations: 369 kB / 0.5246 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/0.6333, allocations: 0.4888 MB / 0.5251 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.6335, allocations: 41.22 kB / 0.5251 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006186/0.6397, allocations: 3.887 MB / 0.5289 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.6397, allocations: 3.953 kB / 0.5289 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007221/0.647, allocations: 3.431 MB / 0.5323 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/0.6486, allocations: 466 kB / 0.5327 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003863/0.649, allocations: 44 kB / 0.5328 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/0.6504, allocations: 115.7 kB / 0.5329 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.6507, allocations: 145.5 kB / 0.533 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.6508, allocations: 52 kB / 0.5331 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00175/0.6525, allocations: 1.081 MB / 0.5341 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6526, allocations: 0 / 0.5341 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005157/0.6577, allocations: 1.199 MB / 0.5353 GB, free: 12.77 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 (174): * Single equations (assignments): 171 * 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 {(9,48.1%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006758/0.6645, allocations: 4.143 MB / 0.5393 GB, free: 8.617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01197/0.6765, allocations: 7 MB / 0.5462 GB, free: 1.359 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.6766, allocations: 0 / 0.5462 GB, free: 1.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/0.6794, allocations: 1.446 MB / 0.5476 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/0.6817, allocations: 363.6 kB / 0.5479 GB, free: 15.55 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.01458/0.6963, allocations: 14.51 MB / 0.5621 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/0.6979, allocations: 1.653 MB / 0.5637 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002044/0.6999, allocations: 341 kB / 0.564 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/0.7013, allocations: 0.9718 MB / 0.565 GB, free: 13.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.7013, allocations: 0 / 0.565 GB, free: 13.76 MB / 446.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).