Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Static.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_dev_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_dev_PowerGrids_Examples_Tutorial_GridOperation_Static_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.0008507/0.0008505, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0009336/0.0009338, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.2 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2495/0.2495, allocations: 14.18 MB / 305.3 MB, free: 1.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003444, allocations: 15.98 kB / 371.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3806, allocations: 53.9 MB / 425.7 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.00656/0.3872, allocations: 8.444 MB / 434.2 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006034/0.3933, allocations: 3.919 MB / 438.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.3944, allocations: 25.59 kB / 438.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.3957, allocations: 396.4 kB / 438.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.3996, allocations: 1.511 MB / 440 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007493/0.4004, allocations: 414.7 kB / 440.4 MB, free: 31.92 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1092:9-1092:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘GEN.UStart / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1092:9-1092:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘TGEN.UStartA / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1092:9-1092:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘TGEN.UStartB / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1092:9-1092:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘GRIDL.UStart / 1.732050807568877‘ Notification: Performance of NFFlatten.flatten: time 0.002489/0.4029, allocations: 2.232 MB / 442.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007937/0.4037, allocations: 0.5642 MB / 443.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007989/0.4045, allocations: 0.6649 MB / 443.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007047/0.4052, allocations: 0.7478 MB / 444.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.4053, allocations: 39.38 kB / 444.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009252/0.4062, allocations: 371.2 kB / 445 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.4064, allocations: 172.1 kB / 445.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.4066, allocations: 289.2 kB / 445.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.4078, allocations: 1.406 MB / 446.9 MB, free: 29.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4078, allocations: 4 kB / 446.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4078, allocations: 7.125 kB / 446.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.4078, allocations: 0 / 446.9 MB, free: 29.03 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.006415/0.4142, allocations: 2.158 MB / 449.1 MB, free: 27.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.4143, allocations: 9.625 kB / 449.1 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002042/0.4145, allocations: 159 kB / 449.2 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007716/0.4153, allocations: 211.6 kB / 449.4 MB, free: 27.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.4164, allocations: 0.8327 MB / 450.3 MB, free: 27.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.4164, allocations: 82.56 kB / 450.4 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.4166, allocations: 106.8 kB / 450.5 MB, free: 27.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.4179, allocations: 0.9956 MB / 451.5 MB, free: 26.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.4179, allocations: 15.77 kB / 451.5 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.425e-05/0.418, allocations: 41.47 kB / 451.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.418, allocations: 25.5 kB / 451.5 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.4192, allocations: 0.9383 MB / 452.5 MB, free: 26.28 MB / 350.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.005183/0.4244, allocations: 6.886 MB / 459.4 MB, free: 20.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.4258, allocations: 1.147 MB / 460.5 MB, free: 19.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.4263, allocations: 343.3 kB / 460.8 MB, free: 19.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.305e-05/0.4263, allocations: 14.84 kB / 460.9 MB, free: 19.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.4264, allocations: 50.22 kB / 460.9 MB, free: 19.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.236e-06/0.4264, allocations: 0 / 460.9 MB, free: 19.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.002676/0.4291, allocations: 1.36 MB / 462.3 MB, free: 18.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.4291, allocations: 142.8 kB / 462.4 MB, free: 18.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009427/0.4301, allocations: 0.8369 MB / 463.2 MB, free: 18.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-05/0.4301, allocations: 47.39 kB / 463.3 MB, free: 18.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.4305, allocations: 0.5493 MB / 463.8 MB, free: 17.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.4307, allocations: 341.3 kB / 464.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.4308, allocations: 41.03 kB / 464.2 MB, free: 17.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.431, allocations: 424 kB / 464.6 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006995/0.4317, allocations: 0.4892 MB / 465.1 MB, free: 16.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008305/0.4325, allocations: 0.7767 MB / 465.9 MB, free: 16.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008529/0.4334, allocations: 0.6261 MB / 466.5 MB, free: 16.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.4334, allocations: 0 / 466.5 MB, free: 16.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.002624/0.436, allocations: 1.762 MB / 468.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.4361, allocations: 8.625 kB / 468.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.4361, allocations: 7.828 kB / 468.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.4375, allocations: 295.3 kB / 468.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/0.4392, allocations: 431.3 kB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.4425, allocations: 3.489 MB / 472.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.4439, allocations: 134.5 kB / 472.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.4441, allocations: 69.83 kB / 472.7 MB, free: 12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (237): * Single equations (assignments): 235 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of prepare postOptimizeDAE: time 0.0005132/0.4446, allocations: 309.8 kB / 473 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.4448, allocations: 109.6 kB / 473.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.4464, allocations: 0.8473 MB / 473.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4464, allocations: 9.281 kB / 474 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4464, allocations: 1.375 kB / 474 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.4464, allocations: 11.77 kB / 474 MB, free: 11.27 MB / 350.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.00346/0.4499, allocations: 2.556 MB / 476.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4499, allocations: 4 kB / 476.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006453/0.4505, allocations: 175.7 kB / 476.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005108/0.4511, allocations: 125.1 kB / 476.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/0.4511, allocations: 19.56 kB / 476.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00305/0.4542, allocations: 3.455 MB / 480.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.4542, allocations: 4.078 kB / 480.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.4558, allocations: 1.034 MB / 481.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/0.4563, allocations: 261.8 kB / 481.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.4564, allocations: 23.58 kB / 481.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/0.4569, allocations: 24.77 kB / 481.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.4571, allocations: 67.92 kB / 481.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.4571, allocations: 28.28 kB / 481.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008605/0.458, allocations: 0.5346 MB / 482.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.458, allocations: 4 kB / 482.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001527/0.4595, allocations: 451.7 kB / 482.7 MB, free: 5.348 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (78): * Single equations (assignments): 76 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of Backend phase and start with SimCode phase: time 0.001935/0.4615, allocations: 1.675 MB / 484.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002845/0.4643, allocations: 1.546 MB / 485.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.4644, allocations: 0 / 485.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.4656, allocations: 0.7364 MB / 486.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.4667, allocations: 116.7 kB / 486.8 MB, free: 2.953 MB / 350.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.01117/0.4779, allocations: 6.385 MB / 493.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/0.4791, allocations: 1.045 MB / 494.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008808/0.48, allocations: 168.4 kB / 494.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/0.4807, allocations: 403.5 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4807, allocations: 5.906 kB / 494.8 MB, free: 14.13 MB / 366.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).