Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_symb_jac_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.0009889/0.0009889, allocations: 97.2 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.00102/0.00102, allocations: 178.9 kB / 16.58 MB, free: 6.395 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.521/1.521, allocations: 205.4 MB / 222.7 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05847/0.05847, allocations: 14.16 MB / 285.2 MB, free: 7.148 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.0006223/0.0006224, allocations: 12 kB / 349.6 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.123, allocations: 51.12 MB / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.008543/0.1316, allocations: 8.427 MB / 409.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007829/0.1395, allocations: 4.32 MB / 413.4 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.1409, allocations: 27.88 kB / 413.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.1422, allocations: 421.7 kB / 413.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005311/0.1476, allocations: 1.793 MB / 415.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.1486, allocations: 446.2 kB / 416.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004469/0.1531, allocations: 2.148 MB / 418.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.1535, allocations: 180.2 kB / 418.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.1553, allocations: 0.8018 MB / 419.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.1564, allocations: 0.7705 MB / 420 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.733e-05/0.1565, allocations: 40 kB / 420 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.1576, allocations: 375.6 kB / 420.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.1578, allocations: 163.1 kB / 420.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.1582, allocations: 309 kB / 420.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.1598, allocations: 1.48 MB / 422.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1599, allocations: 0 / 422.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1599, allocations: 0 / 422.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.1599, allocations: 4 kB / 422.3 MB, free: 8.242 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.006261/0.1662, allocations: 2.034 MB / 424.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1662, allocations: 12.02 kB / 424.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002771/0.1665, allocations: 164.9 kB / 424.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.1675, allocations: 238.1 kB / 424.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.1693, allocations: 0.925 MB / 425.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.926e-05/0.1694, allocations: 78.19 kB / 425.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.1695, allocations: 108 kB / 425.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.1712, allocations: 1.052 MB / 426.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.1712, allocations: 0 / 426.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.598e-05/0.1713, allocations: 48 kB / 427 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.1713, allocations: 28 kB / 427 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.173, allocations: 1.039 MB / 428 MB, free: 2.348 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.2112/0.3843, allocations: 7.622 MB / 435.7 MB, free: 30.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.3859, allocations: 1.104 MB / 436.8 MB, free: 30.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.266e-05/0.386, allocations: 12.02 kB / 436.8 MB, free: 30.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.3861, allocations: 46.34 kB / 436.8 MB, free: 30.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=88): time 4.068e-06/0.3861, allocations: 0 / 436.8 MB, free: 30.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=88): time 0.002969/0.389, allocations: 1.347 MB / 438.2 MB, free: 30.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.3891, allocations: 61.22 kB / 438.2 MB, free: 29.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/0.3902, allocations: 0.9273 MB / 439.2 MB, free: 29.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.3903, allocations: 40.23 kB / 439.2 MB, free: 29.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.3907, allocations: 0.6482 MB / 439.8 MB, free: 29.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.3909, allocations: 317 kB / 440.2 MB, free: 28.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.391, allocations: 28.38 kB / 440.2 MB, free: 28.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3911, allocations: 362.4 kB / 440.5 MB, free: 28.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004995/0.3916, allocations: 317 kB / 440.8 MB, free: 28.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006952/0.3923, allocations: 0.7075 MB / 441.6 MB, free: 27.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006212/0.3929, allocations: 446.9 kB / 442 MB, free: 27.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.3929, allocations: 3.219 kB / 442 MB, free: 27.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002278/0.3952, allocations: 1.34 MB / 443.3 MB, free: 26.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.3953, allocations: 10.94 kB / 443.3 MB, free: 26.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.3953, allocations: 12.94 kB / 443.4 MB, free: 26.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007779/0.3961, allocations: 206.4 kB / 443.6 MB, free: 26.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.3972, allocations: 305 kB / 443.9 MB, free: 26.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00341/0.4007, allocations: 3.545 MB / 447.4 MB, free: 23.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.4019, allocations: 127.1 kB / 447.5 MB, free: 23.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.074e-05/0.4019, allocations: 58.8 kB / 447.6 MB, free: 23.62 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.0004839/0.4024, allocations: 308.8 kB / 447.9 MB, free: 23.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.4026, allocations: 127 kB / 448 MB, free: 23.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.4043, allocations: 0.8808 MB / 448.9 MB, free: 22.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.4043, allocations: 13.38 kB / 448.9 MB, free: 22.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.4043, allocations: 3.125 kB / 448.9 MB, free: 22.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.4043, allocations: 4.453 kB / 448.9 MB, free: 22.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.4078, allocations: 2.195 MB / 451.1 MB, free: 21.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.974e-06/0.4078, allocations: 3.281 kB / 451.1 MB, free: 21.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007046/0.4085, allocations: 166.4 kB / 451.3 MB, free: 21.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006853/0.4092, allocations: 185.4 kB / 451.5 MB, free: 21.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.509e-05/0.4092, allocations: 19.05 kB / 451.5 MB, free: 21.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002899/0.4121, allocations: 3.517 MB / 455 MB, free: 18.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.4122, allocations: 6.656 kB / 455 MB, free: 18.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.4147, allocations: 2.215 MB / 457.2 MB, free: 16.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004837/0.4152, allocations: 269.8 kB / 457.5 MB, free: 16.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.4153, allocations: 19.34 kB / 457.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005915/0.4159, allocations: 31.78 kB / 457.5 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.416, allocations: 70.16 kB / 457.6 MB, free: 16.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.4161, allocations: 26.25 kB / 457.6 MB, free: 16.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008358/0.4169, allocations: 0.601 MB / 458.2 MB, free: 16.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4169, allocations: 1.219 kB / 458.2 MB, free: 16.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00167/0.4186, allocations: 391.6 kB / 458.6 MB, free: 16.13 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.001861/0.4205, allocations: 2.654 MB / 461.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.4222, allocations: 1.112 MB / 462.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.4222, allocations: 3.938 kB / 462.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007125/0.4229, allocations: 0.6187 MB / 463 MB, free: 12.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.4235, allocations: 127.8 kB / 463.1 MB, free: 12.89 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.01013/0.4336, allocations: 15.15 MB / 478.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006861/0.4343, allocations: 1.121 MB / 479.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007268/0.4351, allocations: 162.5 kB / 479.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005162/0.4356, allocations: 423.3 kB / 480 MB, free: 13.11 MB / 334.1 MB Notification: Performance of SimCode: time 2.775e-06/0.4356, allocations: 4 kB / 480 MB, free: 13.11 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).