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.0009406/0.0009405, allocations: 92.7 kB / 15.71 MB, free: 464 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.001365/0.001365, allocations: 176.1 kB / 16.59 MB, free: 6.398 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.735/1.735, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0644/0.0644, allocations: 14.17 MB / 285.2 MB, free: 7.129 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.0005483/0.0005485, allocations: 12 kB / 349.6 MB, free: 17.11 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1282, allocations: 51.12 MB / 400.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.01748/0.1458, allocations: 17.07 MB / 417.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.1604, allocations: 7.13 MB / 424.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004112/0.1645, allocations: 59.75 kB / 425 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003693/0.1682, allocations: 0.7343 MB / 425.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01113/0.1794, allocations: 2.615 MB / 428.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.1821, allocations: 0.639 MB / 429 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2761/0.4582, allocations: 5.49 MB / 434.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.4596, allocations: 338.1 kB / 434.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004461/0.4641, allocations: 1.429 MB / 436.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.4683, allocations: 1.54 MB / 437.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005565/0.4688, allocations: 83.66 kB / 437.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.472, allocations: 0.5105 MB / 438.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004204/0.4725, allocations: 337.4 kB / 438.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.4743, allocations: 0.564 MB / 439.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005565/0.4798, allocations: 2.804 MB / 442 MB, free: 13.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4799, allocations: 0.7812 kB / 442 MB, free: 13.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4799, allocations: 0 / 442 MB, free: 13.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001109/0.48, allocations: 4.312 kB / 442 MB, free: 13.9 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.01435/0.4944, allocations: 3.787 MB / 445.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/0.4944, allocations: 17.61 kB / 445.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007483/0.4952, allocations: 300.3 kB / 446.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002476/0.4977, allocations: 455.9 kB / 446.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003655/0.5014, allocations: 1.603 MB / 448.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.5016, allocations: 162.6 kB / 448.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.5019, allocations: 210.6 kB / 448.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003702/0.5056, allocations: 2.127 MB / 450.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/0.5057, allocations: 3.938 kB / 450.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.5058, allocations: 89.19 kB / 450.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.045e-05/0.5059, allocations: 52.62 kB / 450.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003185/0.509, allocations: 2.156 MB / 453 MB, free: 11.24 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.01353/0.5226, allocations: 13.97 MB / 466.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004244/0.5269, allocations: 3.104 MB / 470.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.528, allocations: 0.7864 MB / 470.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.5281, allocations: 29.98 kB / 470.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.5281, allocations: 58.56 kB / 470.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=217): time 3.757e-06/0.5281, allocations: 0 / 470.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=217): time 0.008329/0.5365, allocations: 3.475 MB / 474.4 MB, free: 11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.5365, allocations: 81.3 kB / 474.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/0.5389, allocations: 1.513 MB / 476 MB, free: 9.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.139e-05/0.539, allocations: 57.7 kB / 476 MB, free: 9.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009559/0.54, allocations: 1.068 MB / 477.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008324/0.5408, allocations: 0.7466 MB / 477.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.5409, allocations: 52 kB / 477.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.5412, allocations: 399.1 kB / 478.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.5424, allocations: 0.6532 MB / 479 MB, free: 6.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.544, allocations: 1.208 MB / 480.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.5456, allocations: 0.8496 MB / 481 MB, free: 4.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/0.5456, allocations: 8 kB / 481 MB, free: 4.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.004734/0.5504, allocations: 2.661 MB / 483.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.5504, allocations: 12.41 kB / 483.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.5504, allocations: 20 kB / 483.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/0.5522, allocations: 0.5308 MB / 484.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001998/0.5542, allocations: 0.5773 MB / 484.8 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/0.563, allocations: 6.958 MB / 491.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.5654, allocations: 214.2 kB / 492 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002613/0.5657, allocations: 96 kB / 492.1 MB, free: 8.551 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.001288/0.567, allocations: 486.1 kB / 492.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006401/0.5676, allocations: 233.2 kB / 492.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.5721, allocations: 2.143 MB / 494.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.854e-05/0.5722, allocations: 20 kB / 494.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.5722, allocations: 0 / 494.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.897e-05/0.5722, allocations: 11.95 kB / 495 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009106/0.5813, allocations: 4.879 MB / 499.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.5814, allocations: 4 kB / 499.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.583, allocations: 388.1 kB / 0.4885 GB, free: 204 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.5847, allocations: 0.5093 MB / 0.489 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.5849, allocations: 40 kB / 0.489 GB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008728/0.5936, allocations: 6.844 MB / 0.4957 GB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.5936, allocations: 11.94 kB / 0.4957 GB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007278/0.6009, allocations: 3.926 MB / 0.4996 GB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/0.6026, allocations: 458 kB / 0.5 GB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007401/0.6034, allocations: 44 kB / 0.5 GB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.6052, allocations: 79.52 kB / 0.5001 GB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.6055, allocations: 149.7 kB / 0.5003 GB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.6056, allocations: 55.98 kB / 0.5003 GB, free: 3.562 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001917/0.6075, allocations: 0.9686 MB / 0.5013 GB, free: 2.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6075, allocations: 3.938 kB / 0.5013 GB, free: 2.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003986/0.6115, allocations: 0.8083 MB / 0.5021 GB, free: 1.758 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.004421/0.616, allocations: 3.038 MB / 0.505 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004416/0.6204, allocations: 2.345 MB / 0.5073 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.6204, allocations: 0 / 0.5073 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002613/0.623, allocations: 1.384 MB / 0.5087 GB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/0.6261, allocations: 256.3 kB / 0.5089 GB, free: 10.59 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.02789/0.654, allocations: 13.58 MB / 0.5222 GB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/0.6556, allocations: 1.545 MB / 0.5237 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001491/0.6571, allocations: 292.9 kB / 0.524 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.6583, allocations: 0.8625 MB / 0.5248 GB, free: 9.184 MB / 398.1 MB Notification: Performance of SimCode: time 2.555e-06/0.6583, allocations: 4 kB / 0.5248 GB, free: 9.18 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).