Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow,fileNamePrefix="PowerGrids_symb_jac_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.0009285/0.0009285, allocations: 96.66 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009614/0.0009615, allocations: 177.3 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.4 MB / 222.7 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.05971/0.05971, allocations: 14.16 MB / 285.2 MB, free: 7.16 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.0006074/0.0006078, allocations: 12 kB / 349.5 MB, free: 17.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1105, allocations: 51.12 MB / 400.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.0162/0.1268, allocations: 15.35 MB / 416 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.1384, allocations: 7.105 MB / 423.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.1405, allocations: 47.81 kB / 423.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.1423, allocations: 0.7304 MB / 423.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00771/0.1501, allocations: 2.846 MB / 426.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.1518, allocations: 0.6575 MB / 427.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2401/0.3919, allocations: 4.088 MB / 431.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.393, allocations: 340.3 kB / 431.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003875/0.3969, allocations: 1.532 MB / 433.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003823/0.4008, allocations: 1.497 MB / 434.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.4012, allocations: 82.47 kB / 434.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.4042, allocations: 0.5092 MB / 435.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000349/0.4046, allocations: 333.3 kB / 435.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.4059, allocations: 0.5649 MB / 436.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004345/0.4103, allocations: 2.763 MB / 439.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4103, allocations: 3 kB / 439.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4103, allocations: 0 / 439.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.515e-05/0.4104, allocations: 2.844 kB / 439.1 MB, free: 12.81 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.01437/0.4248, allocations: 3.795 MB / 442.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.4248, allocations: 13.7 kB / 442.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007569/0.4256, allocations: 305.5 kB / 443.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002352/0.4279, allocations: 454 kB / 443.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003638/0.4316, allocations: 1.599 MB / 445.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.4317, allocations: 164.6 kB / 445.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002642/0.432, allocations: 212.2 kB / 445.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003554/0.4356, allocations: 2.116 MB / 447.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.921e-05/0.4356, allocations: 3.562 kB / 447.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001646/0.4358, allocations: 89.91 kB / 447.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.339e-05/0.4359, allocations: 54.09 kB / 447.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003344/0.4392, allocations: 2.148 MB / 450 MB, free: 10.47 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.01273/0.4519, allocations: 14.07 MB / 464.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003934/0.4559, allocations: 3.103 MB / 467.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.456, allocations: 28.45 kB / 467.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.4561, allocations: 56.33 kB / 467.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=217): time 3.636e-06/0.4561, allocations: 0 / 467.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=217): time 0.007783/0.4639, allocations: 3.412 MB / 470.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.4639, allocations: 81.25 kB / 470.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002008/0.4659, allocations: 1.516 MB / 472.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.574e-05/0.4661, allocations: 59.77 kB / 472.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/0.4668, allocations: 1.064 MB / 473.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006966/0.4675, allocations: 0.748 MB / 474.2 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.4676, allocations: 50.41 kB / 474.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.4678, allocations: 398.9 kB / 474.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009779/0.4688, allocations: 0.6523 MB / 475.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.4702, allocations: 1.198 MB / 476.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.4715, allocations: 0.8529 MB / 477.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4715, allocations: 8 kB / 477.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.004669/0.4762, allocations: 2.658 MB / 480 MB, free: 4.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.4763, allocations: 12 kB / 480 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.4763, allocations: 19.98 kB / 480 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.478, allocations: 0.539 MB / 480.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.4802, allocations: 0.5719 MB / 481.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008949/0.4891, allocations: 7.103 MB / 488.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002785/0.4919, allocations: 210.4 kB / 488.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.4921, allocations: 92 kB / 488.5 MB, free: 11.85 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.00114/0.4933, allocations: 482.8 kB / 489 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000424/0.4937, allocations: 237.2 kB / 489.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/0.4975, allocations: 2.143 MB / 491.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.4975, allocations: 23.95 kB / 491.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4975, allocations: 0 / 491.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.4975, allocations: 15.95 kB / 491.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008266/0.5058, allocations: 4.873 MB / 496.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.5059, allocations: 4 kB / 496.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/0.5075, allocations: 390 kB / 496.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.5091, allocations: 0.5092 MB / 497.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.552e-05/0.5092, allocations: 36 kB / 497.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008598/0.5178, allocations: 6.993 MB / 0.4924 GB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.5178, allocations: 4 kB / 0.4924 GB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006483/0.5243, allocations: 4.215 MB / 0.4965 GB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.5255, allocations: 462 kB / 0.4969 GB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/0.5258, allocations: 40 kB / 0.497 GB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.527, allocations: 82.36 kB / 0.497 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.5273, allocations: 149.2 kB / 0.4972 GB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.693e-05/0.5274, allocations: 56 kB / 0.4972 GB, free: 6.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001457/0.5288, allocations: 0.9646 MB / 0.4982 GB, free: 5.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5289, allocations: 4 kB / 0.4982 GB, free: 5.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002694/0.5316, allocations: 0.8121 MB / 0.499 GB, free: 4.664 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.005159/0.5367, allocations: 4.394 MB / 0.5033 GB, free: 180 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004254/0.541, allocations: 2.346 MB / 0.5056 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.541, allocations: 4.062 kB / 0.5056 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/0.5432, allocations: 1.381 MB / 0.5069 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.5448, allocations: 225.9 kB / 0.5071 GB, free: 12.19 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.02938/0.5742, allocations: 24.01 MB / 0.5306 GB, free: 2.961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.5756, allocations: 1.592 MB / 0.5321 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.5771, allocations: 297.7 kB / 0.5324 GB, free: 1.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.5782, allocations: 0.8625 MB / 0.5333 GB, free: 184 kB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5782, allocations: 4 kB / 0.5333 GB, free: 180 kB / 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).