Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid.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.StaticGrid,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",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.0009985/0.0009985, allocations: 99.86 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.001003/0.001004, allocations: 177.3 kB / 15.94 MB, free: 228 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.618/1.618, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05816/0.05816, allocations: 14.17 MB / 284.5 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.000507/0.000507, allocations: 19.98 kB / 348.9 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1031, allocations: 51.12 MB / 400 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid): time 0.009363/0.1125, allocations: 10.14 MB / 410.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008707/0.1212, allocations: 5.051 MB / 415.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.1231, allocations: 31.88 kB / 415.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.1246, allocations: 465.5 kB / 415.7 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00587/0.1305, allocations: 2.01 MB / 417.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001666/0.1321, allocations: 0.7158 MB / 418.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005142/0.1373, allocations: 2.603 MB / 421 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.1378, allocations: 217.4 kB / 421.2 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.1396, allocations: 0.9847 MB / 422.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001212/0.1408, allocations: 1.027 MB / 423.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.141, allocations: 68 kB / 423.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.1422, allocations: 419.6 kB / 423.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.1425, allocations: 250.8 kB / 424 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000451/0.1429, allocations: 376.8 kB / 424.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.1452, allocations: 1.851 MB / 426.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1453, allocations: 0 / 426.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1453, allocations: 3.938 kB / 426.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.1453, allocations: 0 / 426.2 MB, free: 3.715 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: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.008853/0.1542, allocations: 2.636 MB / 428.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.1542, allocations: 12.02 kB / 428.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003495/0.1546, allocations: 194.1 kB / 429 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.1558, allocations: 281.6 kB / 429.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1876/0.3434, allocations: 1.077 MB / 430.4 MB, free: 35.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.952e-05/0.3435, allocations: 108.3 kB / 430.5 MB, free: 35.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.3437, allocations: 146.4 kB / 430.6 MB, free: 35.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.3459, allocations: 1.254 MB / 431.9 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.3459, allocations: 5.734 kB / 431.9 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.3461, allocations: 53.72 kB / 432 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/0.3461, allocations: 30.81 kB / 432 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002247/0.3483, allocations: 1.294 MB / 433.3 MB, free: 34.84 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.01027/0.3586, allocations: 8.478 MB / 441.8 MB, free: 27.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3612, allocations: 2.101 MB / 443.9 MB, free: 26.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.568e-05/0.3613, allocations: 18.53 kB / 443.9 MB, free: 26.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.3613, allocations: 50.94 kB / 443.9 MB, free: 26.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 3.457e-06/0.3613, allocations: 1.219 kB / 443.9 MB, free: 26.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.0107/0.372, allocations: 4.077 MB / 448 MB, free: 24.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3721, allocations: 70.42 kB / 448.1 MB, free: 24.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.3735, allocations: 1.085 MB / 449.2 MB, free: 24.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/0.3736, allocations: 55.61 kB / 449.2 MB, free: 24.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.374, allocations: 0.6742 MB / 449.9 MB, free: 23.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.3743, allocations: 0.4967 MB / 450.4 MB, free: 22.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.3744, allocations: 40.25 kB / 450.4 MB, free: 22.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3745, allocations: 386.8 kB / 450.8 MB, free: 22.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008202/0.3753, allocations: 0.5458 MB / 451.3 MB, free: 22.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3764, allocations: 0.9982 MB / 452.3 MB, free: 21.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.3775, allocations: 0.7112 MB / 453.1 MB, free: 21.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.3775, allocations: 8.188 kB / 453.1 MB, free: 21.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.004299/0.3818, allocations: 2.335 MB / 455.4 MB, free: 19.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.3818, allocations: 7.906 kB / 455.4 MB, free: 19.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.3819, allocations: 15.75 kB / 455.4 MB, free: 19.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/0.3845, allocations: 0.7722 MB / 456.2 MB, free: 19.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.3862, allocations: 494.6 kB / 456.7 MB, free: 19.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.3966, allocations: 12.8 MB / 469.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.3988, allocations: 122.4 kB / 469.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.3989, allocations: 81.08 kB / 469.7 MB, free: 6.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (234): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {3 20,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006767/0.3996, allocations: 353.3 kB / 470 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.3998, allocations: 158.1 kB / 470.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.4025, allocations: 1.529 MB / 471.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4025, allocations: 12 kB / 471.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4025, allocations: 8 kB / 471.7 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.4025, allocations: 7.969 kB / 471.7 MB, free: 4.82 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 postOpt removeSimpleEquations (simulation): time 0.004404/0.4069, allocations: 3.162 MB / 474.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.407, allocations: 4 kB / 474.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.4081, allocations: 271.7 kB / 475.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.4094, allocations: 472.1 kB / 475.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.971e-05/0.4095, allocations: 24 kB / 475.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0056/0.4151, allocations: 3.709 MB / 479.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4151, allocations: 0 / 479.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003851/0.419, allocations: 2.135 MB / 481.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008391/0.4198, allocations: 315.1 kB / 481.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.42, allocations: 24 kB / 481.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007571/0.4208, allocations: 55.67 kB / 481.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.421, allocations: 97 kB / 482 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/0.4211, allocations: 36 kB / 482 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009632/0.422, allocations: 0.6767 MB / 482.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.422, allocations: 4 kB / 482.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001883/0.4239, allocations: 0.5352 MB / 483.2 MB, free: 9.047 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu) * 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 (108): * Single equations (assignments): 107 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(9,48.1%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004186/0.4281, allocations: 2.802 MB / 486 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00436/0.4325, allocations: 2.544 MB / 488.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.748e-06/0.4325, allocations: 0 / 488.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.4343, allocations: 0.9239 MB / 489.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.4354, allocations: 150 kB / 489.6 MB, free: 2.5 MB / 334.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.01076/0.4462, allocations: 12.91 MB / 0.4908 GB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009822/0.4472, allocations: 1.242 MB / 0.492 GB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001085/0.4483, allocations: 191.6 kB / 0.4922 GB, free: 3.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007745/0.4491, allocations: 0.55 MB / 0.4927 GB, free: 3.262 MB / 350.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4491, allocations: 0 / 0.4927 GB, free: 3.262 MB / 350.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).