Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.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) Running command: "" <> buildModelFMU(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow",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.0008032/0.0008031, allocations: 91.69 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.0008938/0.0008938, 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.505/1.505, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06182/0.06182, allocations: 14.17 MB / 284.6 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.00053/0.00053, allocations: 12 kB / 348.9 MB, free: 17.11 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09129/0.09183, allocations: 51.11 MB / 400.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.0176/0.1095, allocations: 17.09 MB / 417.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01829/0.1278, allocations: 7.13 MB / 424.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004277/0.1322, allocations: 55.75 kB / 424.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004246/0.1364, allocations: 0.7343 MB / 425.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01291/0.1494, allocations: 2.605 MB / 427.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.1519, allocations: 0.6498 MB / 428.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2166/0.3685, allocations: 5.488 MB / 433.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.3697, allocations: 339.6 kB / 434.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.3735, allocations: 1.426 MB / 435.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003752/0.3773, allocations: 1.549 MB / 437.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004174/0.3777, allocations: 79.97 kB / 437.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002631/0.3804, allocations: 0.5096 MB / 437.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003382/0.3807, allocations: 333.6 kB / 438 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001406/0.3821, allocations: 0.5681 MB / 438.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004456/0.3866, allocations: 2.803 MB / 441.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3866, allocations: 2.812 kB / 441.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3866, allocations: 1.219 kB / 441.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.841e-05/0.3867, allocations: 0 / 441.4 MB, free: 13.31 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: 560 * Number of variables: 560 Notification: Performance of Generate backend data structure: time 0.01332/0.4, allocations: 3.792 MB / 445.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4001, allocations: 13.61 kB / 445.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006268/0.4007, allocations: 304 kB / 445.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002077/0.4028, allocations: 456.7 kB / 445.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003355/0.4062, allocations: 1.601 MB / 447.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.4063, allocations: 163.8 kB / 447.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002657/0.4066, allocations: 211.7 kB / 447.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003227/0.4098, allocations: 2.129 MB / 450 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.912e-05/0.4099, allocations: 0 / 450 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.41, allocations: 90.62 kB / 450.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.4101, allocations: 59.38 kB / 450.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/0.413, allocations: 2.154 MB / 452.3 MB, free: 10.7 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.01229/0.4253, allocations: 13.96 MB / 466.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003846/0.4292, allocations: 3.107 MB / 469.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.4302, allocations: 0.787 MB / 470.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.4304, allocations: 33.42 kB / 470.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.4304, allocations: 55 kB / 470.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=217): time 4.158e-06/0.4304, allocations: 0 / 470.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=217): time 0.008398/0.4388, allocations: 3.466 MB / 473.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.4389, allocations: 84.31 kB / 473.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.4411, allocations: 1.509 MB / 475.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.4413, allocations: 61.7 kB / 475.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008659/0.4422, allocations: 1.069 MB / 476.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007727/0.443, allocations: 0.7514 MB / 477.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.4431, allocations: 52 kB / 477.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.4434, allocations: 395.2 kB / 477.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.4444, allocations: 0.6493 MB / 478.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.4457, allocations: 1.211 MB / 479.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.4471, allocations: 0.8567 MB / 480.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.4471, allocations: 4 kB / 480.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.004706/0.4518, allocations: 2.657 MB / 483 MB, free: 1.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.4519, allocations: 12 kB / 483.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/0.4519, allocations: 16 kB / 483.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/0.4536, allocations: 0.5456 MB / 483.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/0.4557, allocations: 0.5734 MB / 484.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008669/0.4644, allocations: 6.955 MB / 491.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/0.4673, allocations: 202.3 kB / 491.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/0.4675, allocations: 99.98 kB / 491.4 MB, free: 8.309 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 282 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {4 26,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001238/0.4687, allocations: 482.2 kB / 491.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004897/0.4692, allocations: 237.2 kB / 492.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/0.4732, allocations: 2.132 MB / 494.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/0.4733, allocations: 24 kB / 494.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4733, allocations: 3.984 kB / 494.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/0.4733, allocations: 11.91 kB / 494.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007697/0.481, allocations: 4.879 MB / 499.2 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.481, allocations: 4 kB / 499.2 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/0.4826, allocations: 400 kB / 499.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.4841, allocations: 0.4987 MB / 0.4884 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.4842, allocations: 43.98 kB / 0.4884 GB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008488/0.4927, allocations: 6.839 MB / 0.4951 GB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.4927, allocations: 5.25 kB / 0.4951 GB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.4972, allocations: 2.296 MB / 0.4973 GB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/0.4987, allocations: 458 kB / 0.4978 GB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/0.499, allocations: 43.98 kB / 0.4978 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.5002, allocations: 75.53 kB / 0.4979 GB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/0.5005, allocations: 149.7 kB / 0.498 GB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.27e-05/0.5006, allocations: 59.94 kB / 0.4981 GB, free: 4.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.5022, allocations: 0.9725 MB / 0.499 GB, free: 4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5022, allocations: 4 kB / 0.499 GB, free: 3.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002846/0.505, allocations: 0.8082 MB / 0.4998 GB, free: 3.188 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * 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 (176): * Single equations (assignments): 173 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {2 10,4 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.004407/0.5094, allocations: 3.021 MB / 0.5028 GB, free: 92 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004165/0.5136, allocations: 2.349 MB / 0.5051 GB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.5137, allocations: 0 / 0.5051 GB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.5158, allocations: 1.387 MB / 0.5064 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.518, allocations: 253.8 kB / 0.5067 GB, free: 12.03 MB / 382.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.02409/0.5421, allocations: 12.55 MB / 0.5189 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.5434, allocations: 1.486 MB / 0.5204 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001511/0.545, allocations: 294.9 kB / 0.5207 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.5461, allocations: 0.8664 MB / 0.5215 GB, free: 11.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5461, allocations: 0 / 0.5215 GB, free: 11.72 MB / 398.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).