Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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 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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_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.001048/0.001048, allocations: 99.16 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.001213/0.001213, 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.562/1.562, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05904/0.05904, allocations: 14.17 MB / 284.5 MB, free: 7.133 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.0005303/0.0005303, allocations: 16 kB / 348.9 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1049, allocations: 51.11 MB / 400 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.007973/0.1129, allocations: 8.434 MB / 408.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007171/0.1201, allocations: 4.316 MB / 412.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.1212, allocations: 27.88 kB / 412.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1223, allocations: 425.7 kB / 413.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.1268, allocations: 1.792 MB / 415 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008732/0.1277, allocations: 446.3 kB / 415.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003917/0.1316, allocations: 2.144 MB / 417.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003955/0.132, allocations: 180.2 kB / 417.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.1335, allocations: 0.8134 MB / 418.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000947/0.1345, allocations: 0.7627 MB / 419.3 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.514e-05/0.1346, allocations: 40 kB / 419.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.1357, allocations: 367.6 kB / 419.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1359, allocations: 171.1 kB / 419.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000345/0.1362, allocations: 313 kB / 420.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001664/0.1379, allocations: 1.477 MB / 421.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1379, allocations: 0 / 421.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1379, allocations: 0 / 421.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.1379, allocations: 0 / 421.7 MB, free: 8.238 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.006176/0.1441, allocations: 2.038 MB / 423.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.1442, allocations: 12.02 kB / 423.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002327/0.1444, allocations: 164.9 kB / 423.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009239/0.1454, allocations: 242.1 kB / 424.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.147, allocations: 0.9211 MB / 425.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.147, allocations: 82.19 kB / 425.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.1472, allocations: 100 kB / 425.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.1489, allocations: 1.052 MB / 426.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.1489, allocations: 4 kB / 426.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.149, allocations: 47.94 kB / 426.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.1491, allocations: 28 kB / 426.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.1508, allocations: 1.043 MB / 427.4 MB, free: 2.336 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.1901/0.3409, allocations: 7.621 MB / 435 MB, free: 30.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.3426, allocations: 1.101 MB / 436.1 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.384e-05/0.3426, allocations: 19.11 kB / 436.1 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.3427, allocations: 39.2 kB / 436.2 MB, free: 30.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=88): time 2.815e-06/0.3427, allocations: 0.7656 kB / 436.2 MB, free: 30.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=88): time 0.00305/0.3457, allocations: 1.345 MB / 437.5 MB, free: 29.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.3458, allocations: 64.09 kB / 437.6 MB, free: 29.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.3471, allocations: 0.9289 MB / 438.5 MB, free: 29.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.3471, allocations: 45.41 kB / 438.6 MB, free: 29.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004112/0.3476, allocations: 0.6422 MB / 439.2 MB, free: 29.01 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.3478, allocations: 317.1 kB / 439.5 MB, free: 28.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.3479, allocations: 25.28 kB / 439.5 MB, free: 28.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.348, allocations: 362.2 kB / 439.9 MB, free: 28.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005199/0.3485, allocations: 317 kB / 440.2 MB, free: 28.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/0.3492, allocations: 0.7136 MB / 440.9 MB, free: 27.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.3498, allocations: 440.3 kB / 441.4 MB, free: 27.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.3498, allocations: 3.938 kB / 441.4 MB, free: 27.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002403/0.3522, allocations: 1.341 MB / 442.7 MB, free: 26.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.3523, allocations: 9.125 kB / 442.7 MB, free: 26.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.3523, allocations: 17.34 kB / 442.7 MB, free: 26.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000769/0.3531, allocations: 204 kB / 442.9 MB, free: 26.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.3542, allocations: 305.1 kB / 443.2 MB, free: 26.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.3576, allocations: 3.553 MB / 446.8 MB, free: 23.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.3588, allocations: 119.2 kB / 446.9 MB, free: 23.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-05/0.3589, allocations: 62.19 kB / 446.9 MB, free: 23.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (157): * Single equations (assignments): 155 * 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 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005256/0.3595, allocations: 304.9 kB / 447.2 MB, free: 23.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.3597, allocations: 126.6 kB / 447.4 MB, free: 23.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.3614, allocations: 0.8866 MB / 448.3 MB, free: 22.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.3614, allocations: 8.344 kB / 448.3 MB, free: 22.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3614, allocations: 1.031 kB / 448.3 MB, free: 22.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.3614, allocations: 12.44 kB / 448.3 MB, free: 22.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003774/0.3652, allocations: 2.193 MB / 450.5 MB, free: 21.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.3652, allocations: 8.234 kB / 450.5 MB, free: 21.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007144/0.366, allocations: 160.2 kB / 450.6 MB, free: 21.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006983/0.3667, allocations: 190.4 kB / 450.8 MB, free: 21.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.3667, allocations: 15.19 kB / 450.8 MB, free: 21.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/0.3697, allocations: 3.508 MB / 454.3 MB, free: 18.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.3698, allocations: 10.8 kB / 454.4 MB, free: 18.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.3714, allocations: 1.186 MB / 455.5 MB, free: 17.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.3718, allocations: 265.2 kB / 455.8 MB, free: 17.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.3719, allocations: 19.25 kB / 455.8 MB, free: 17.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.3725, allocations: 32.84 kB / 455.9 MB, free: 17.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3726, allocations: 68.86 kB / 455.9 MB, free: 17.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.514e-05/0.3727, allocations: 22.84 kB / 455.9 MB, free: 17.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008204/0.3735, allocations: 0.6028 MB / 456.5 MB, free: 16.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3735, allocations: 0 / 456.5 MB, free: 16.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001535/0.3751, allocations: 396 kB / 456.9 MB, free: 16.89 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (76): * Single equations (assignments): 74 * 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 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001918/0.377, allocations: 2.655 MB / 459.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.3787, allocations: 1.113 MB / 460.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3787, allocations: 3.969 kB / 460.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000658/0.3794, allocations: 0.6168 MB / 461.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005776/0.3799, allocations: 121.5 kB / 461.4 MB, free: 13.66 MB / 318.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.0105/0.3905, allocations: 14.68 MB / 476.1 MB, free: 404 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006543/0.3912, allocations: 1.098 MB / 477.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007348/0.3919, allocations: 162.4 kB / 477.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005373/0.3924, allocations: 427.3 kB / 477.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3924, allocations: 0 / 477.8 MB, free: 14.69 MB / 334.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).