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.000967/0.000967, allocations: 100.3 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.0008672/0.0008672, allocations: 177.3 kB / 15.95 MB, free: 216 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.651/1.651, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06031/0.06031, allocations: 14.16 MB / 284.5 MB, free: 7.137 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.0005978/0.0005981, allocations: 12 kB / 348.9 MB, free: 17.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1095, allocations: 51.12 MB / 400 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.01509/0.1246, allocations: 15.35 MB / 415.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.1379, allocations: 7.101 MB / 422.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.1414, allocations: 47.81 kB / 422.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003297/0.1447, allocations: 0.7304 MB / 423.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009543/0.1543, allocations: 2.85 MB / 426.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002147/0.1565, allocations: 0.6575 MB / 426.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2342/0.3906, allocations: 4.074 MB / 430.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009822/0.3917, allocations: 337.3 kB / 431.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003862/0.3956, allocations: 1.527 MB / 432.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.3993, allocations: 1.497 MB / 434.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003579/0.3997, allocations: 78.84 kB / 434.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.4022, allocations: 0.5154 MB / 434.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003645/0.4026, allocations: 328.6 kB / 435.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.4039, allocations: 0.5649 MB / 435.7 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005131/0.409, allocations: 2.766 MB / 438.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.409, allocations: 0 / 438.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.4091, allocations: 0 / 438.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.563e-05/0.4091, allocations: 2.953 kB / 438.4 MB, free: 13.2 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.01415/0.4233, allocations: 3.792 MB / 442.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.4234, allocations: 20.86 kB / 442.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007562/0.4241, allocations: 300.2 kB / 442.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/0.4265, allocations: 456.1 kB / 443 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004124/0.4306, allocations: 1.602 MB / 444.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.4308, allocations: 163.7 kB / 444.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003551/0.4312, allocations: 209.2 kB / 444.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004759/0.436, allocations: 2.113 MB / 447.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/0.436, allocations: 3.562 kB / 447.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001886/0.4362, allocations: 89.12 kB / 447.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.849e-05/0.4363, allocations: 54.31 kB / 447.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003937/0.4403, allocations: 2.158 MB / 449.4 MB, free: 10.87 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.01372/0.454, allocations: 14.07 MB / 463.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004205/0.4582, allocations: 3.104 MB / 466.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.4584, allocations: 30.67 kB / 466.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.4584, allocations: 56.06 kB / 466.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=217): time 4.529e-06/0.4584, allocations: 0 / 466.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=217): time 0.00856/0.467, allocations: 3.415 MB / 470 MB, free: 13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.4671, allocations: 73.41 kB / 470.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.4694, allocations: 1.517 MB / 471.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.22e-05/0.4695, allocations: 54.95 kB / 471.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000818/0.4704, allocations: 1.07 MB / 472.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009142/0.4713, allocations: 0.7475 MB / 473.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.4714, allocations: 49.66 kB / 473.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.4716, allocations: 407.1 kB / 473.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.4726, allocations: 0.6475 MB / 474.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.4741, allocations: 1.194 MB / 475.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.4755, allocations: 0.855 MB / 476.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.4755, allocations: 4 kB / 476.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.005082/0.4806, allocations: 2.661 MB / 479.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.4807, allocations: 12.41 kB / 479.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.4807, allocations: 20 kB / 479.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.4825, allocations: 0.5332 MB / 479.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/0.4847, allocations: 0.5748 MB / 480.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008855/0.4935, allocations: 7.105 MB / 487.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003134/0.4967, allocations: 202.2 kB / 487.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.4969, allocations: 95.98 kB / 487.8 MB, free: 11.94 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.001279/0.4981, allocations: 487.6 kB / 488.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004121/0.4986, allocations: 233.2 kB / 488.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.5023, allocations: 2.139 MB / 490.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.5024, allocations: 23.95 kB / 490.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.5024, allocations: 0 / 490.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.844e-05/0.5024, allocations: 15.95 kB / 490.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007582/0.51, allocations: 4.873 MB / 495.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.5101, allocations: 4 kB / 495.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/0.5116, allocations: 398.3 kB / 496 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.5132, allocations: 0.5055 MB / 496.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.665e-05/0.5133, allocations: 36 kB / 496.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008307/0.5217, allocations: 6.994 MB / 0.4917 GB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.5217, allocations: 4 kB / 0.4917 GB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004578/0.5263, allocations: 2.567 MB / 0.4942 GB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.5277, allocations: 465.9 kB / 0.4947 GB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.5279, allocations: 40 kB / 0.4947 GB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.5291, allocations: 79.53 kB / 0.4948 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.5295, allocations: 148.5 kB / 0.4949 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.56e-05/0.5296, allocations: 56 kB / 0.495 GB, free: 8.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001581/0.5312, allocations: 0.9725 MB / 0.4959 GB, free: 7.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.094e-06/0.5312, allocations: 0 / 0.4959 GB, free: 7.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00343/0.5346, allocations: 0.8027 MB / 0.4967 GB, free: 6.441 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.005536/0.5402, allocations: 4.399 MB / 0.501 GB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004157/0.5443, allocations: 2.352 MB / 0.5033 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5444, allocations: 0 / 0.5033 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.5465, allocations: 1.384 MB / 0.5047 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.5483, allocations: 218.3 kB / 0.5049 GB, free: 13.99 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.02901/0.5774, allocations: 22.98 MB / 0.5273 GB, free: 5.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.5787, allocations: 1.544 MB / 0.5288 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001433/0.5801, allocations: 294.9 kB / 0.5291 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.5812, allocations: 0.8664 MB / 0.5299 GB, free: 3.07 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5813, allocations: 0 / 0.5299 GB, free: 3.07 MB / 398.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).