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.0008099/0.0008101, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.000974/0.000974, allocations: 172.7 kB / 15.95 MB, free: 208 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.422/1.422, allocations: 205.4 MB / 222.1 MB, free: 5.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05762/0.05762, allocations: 14.17 MB / 284.6 MB, free: 7.145 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.0005297/0.0005298, allocations: 19.98 kB / 349 MB, free: 17.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1054, allocations: 51.12 MB / 400.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.009151/0.1146, allocations: 9.305 MB / 409.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008447/0.123, allocations: 4.365 MB / 413.8 MB, free: 184 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.1244, allocations: 31.88 kB / 413.8 MB, free: 152 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.1259, allocations: 421.7 kB / 414.2 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004839/0.1307, allocations: 1.658 MB / 415.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1318, allocations: 438.4 kB / 416.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004079/0.1359, allocations: 2.895 MB / 419.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.1363, allocations: 180.1 kB / 419.4 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.1375, allocations: 0.758 MB / 420.1 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009192/0.1384, allocations: 0.7934 MB / 420.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.207e-05/0.1385, allocations: 36 kB / 420.9 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000988/0.1395, allocations: 379.7 kB / 421.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.1397, allocations: 167 kB / 421.5 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003182/0.14, allocations: 309 kB / 421.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.1416, allocations: 1.504 MB / 423.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1416, allocations: 0 / 423.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1416, allocations: 0 / 423.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.1416, allocations: 0 / 423.3 MB, free: 6.621 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.005871/0.1475, allocations: 2.041 MB / 425.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.1475, allocations: 16.02 kB / 425.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002231/0.1478, allocations: 156.9 kB / 425.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009006/0.1487, allocations: 242.1 kB / 425.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.1502, allocations: 0.9172 MB / 426.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.028e-05/0.1503, allocations: 82.19 kB / 426.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1504, allocations: 104 kB / 426.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.1522, allocations: 1.06 MB / 427.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.1522, allocations: 3.938 kB / 427.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-05/0.1523, allocations: 48 kB / 427.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.1524, allocations: 24 kB / 428 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.154, allocations: 1.047 MB / 429 MB, free: 0.7148 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.1982/0.3522, allocations: 7.528 MB / 436.5 MB, free: 30.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.3538, allocations: 1.098 MB / 437.6 MB, free: 30 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.3543, allocations: 315 kB / 437.9 MB, free: 29.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/0.3543, allocations: 10.67 kB / 438 MB, free: 29.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3544, allocations: 42.5 kB / 438 MB, free: 29.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=88): time 2.214e-06/0.3544, allocations: 0 / 438 MB, free: 29.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=88): time 0.002899/0.3573, allocations: 1.359 MB / 439.4 MB, free: 29.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.3573, allocations: 60.03 kB / 439.4 MB, free: 29.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.3585, allocations: 0.9329 MB / 440.3 MB, free: 28.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.3586, allocations: 42.97 kB / 440.4 MB, free: 28.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004353/0.359, allocations: 0.6481 MB / 441 MB, free: 28.19 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.3593, allocations: 321.2 kB / 441.4 MB, free: 27.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.3593, allocations: 32.75 kB / 441.4 MB, free: 27.92 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.3594, allocations: 352.2 kB / 441.7 MB, free: 27.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.3599, allocations: 314.8 kB / 442 MB, free: 27.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007052/0.3606, allocations: 0.7117 MB / 442.7 MB, free: 26.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006821/0.3613, allocations: 445.6 kB / 443.2 MB, free: 26.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.3614, allocations: 4.375 kB / 443.2 MB, free: 26.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002393/0.3638, allocations: 1.343 MB / 444.5 MB, free: 26.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.3638, allocations: 11.25 kB / 444.5 MB, free: 26.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.3638, allocations: 13.31 kB / 444.6 MB, free: 26.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.3653, allocations: 302.2 kB / 444.9 MB, free: 25.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.3664, allocations: 301.1 kB / 445.1 MB, free: 25.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003299/0.3697, allocations: 3.489 MB / 448.6 MB, free: 22.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.3708, allocations: 126.7 kB / 448.8 MB, free: 22.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.371, allocations: 57.64 kB / 448.8 MB, free: 22.84 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 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of prepare postOptimizeDAE: time 0.000486/0.3715, allocations: 319 kB / 449.1 MB, free: 22.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.3717, allocations: 126.8 kB / 449.2 MB, free: 22.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.3733, allocations: 0.881 MB / 450.1 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.3733, allocations: 8.938 kB / 450.1 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3734, allocations: 2.656 kB / 450.1 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.3734, allocations: 3.984 kB / 450.1 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.3767, allocations: 2.198 MB / 452.3 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.3767, allocations: 2.75 kB / 452.3 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/0.3773, allocations: 167.4 kB / 452.5 MB, free: 20.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005019/0.3778, allocations: 123.9 kB / 452.6 MB, free: 20.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.172e-05/0.3779, allocations: 19.28 kB / 452.6 MB, free: 20.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.3808, allocations: 3.436 MB / 456.1 MB, free: 17.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3808, allocations: 8.109 kB / 456.1 MB, free: 17.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3823, allocations: 1.035 MB / 457.1 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.3828, allocations: 266.3 kB / 457.4 MB, free: 16.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3829, allocations: 19.88 kB / 457.4 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005061/0.3834, allocations: 36.84 kB / 457.4 MB, free: 16.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3835, allocations: 67.3 kB / 457.5 MB, free: 16.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.3836, allocations: 23.22 kB / 457.5 MB, free: 16.83 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007744/0.3844, allocations: 0.6036 MB / 458.1 MB, free: 16.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3844, allocations: 0 / 458.1 MB, free: 16.56 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001181/0.3856, allocations: 382.6 kB / 458.5 MB, free: 16.51 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 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/0.3871, allocations: 1.685 MB / 460.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.3889, allocations: 1.233 MB / 461.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3889, allocations: 5.031 kB / 461.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008987/0.3898, allocations: 0.7252 MB / 462.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007682/0.3906, allocations: 138.2 kB / 462.3 MB, free: 14.02 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.007996/0.3986, allocations: 6.286 MB / 468.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.3992, allocations: 1.081 MB / 469.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000681/0.3999, allocations: 158.6 kB / 469.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/0.4003, allocations: 427.3 kB / 470.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4003, allocations: 0 / 470.2 MB, free: 6.742 MB / 318.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).