Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,fileNamePrefix="PowerGrids_symb_jac_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.0009988/0.0009988, allocations: 97.36 kB / 15.69 MB, free: 480 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.0009964/0.0009963, allocations: 177.8 kB / 16.57 MB, free: 6.387 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.539/1.539, 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.05804/0.05804, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.0005182/0.0005184, allocations: 12 kB / 349.5 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1038, allocations: 51.13 MB / 400.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid): time 0.009754/0.1136, allocations: 10.14 MB / 410.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008957/0.1225, allocations: 5.043 MB / 415.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.1246, allocations: 27.88 kB / 415.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002603/0.1272, allocations: 473.5 kB / 416.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00674/0.134, allocations: 2.015 MB / 418.4 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.1358, allocations: 0.7047 MB / 419.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005499/0.1413, allocations: 2.603 MB / 421.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004879/0.1418, allocations: 221.4 kB / 421.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001852/0.1437, allocations: 0.9886 MB / 422.9 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001335/0.145, allocations: 1.016 MB / 423.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.1452, allocations: 68 kB / 424 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.1465, allocations: 423.6 kB / 424.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002248/0.1468, allocations: 250.8 kB / 424.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.1472, allocations: 372.8 kB / 425 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.1492, allocations: 1.847 MB / 426.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1492, allocations: 0 / 426.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.1492, allocations: 0 / 426.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.1493, allocations: 0 / 426.8 MB, free: 3.727 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.008653/0.1579, allocations: 2.64 MB / 429.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.158, allocations: 16.02 kB / 429.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003121/0.1583, allocations: 186.1 kB / 429.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.1594, allocations: 289.6 kB / 429.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2082/0.3676, allocations: 1.077 MB / 431 MB, free: 35.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.3678, allocations: 104.7 kB / 431.1 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.368, allocations: 144.6 kB / 431.3 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.3705, allocations: 1.261 MB / 432.5 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.3706, allocations: 6.266 kB / 432.5 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3707, allocations: 48.53 kB / 432.6 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.3708, allocations: 31.16 kB / 432.6 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.3732, allocations: 1.295 MB / 433.9 MB, free: 34.81 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.01122/0.3844, allocations: 8.479 MB / 442.4 MB, free: 27.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.3869, allocations: 2.103 MB / 444.5 MB, free: 26.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.53e-05/0.387, allocations: 22.59 kB / 444.5 MB, free: 26.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.387, allocations: 50.14 kB / 444.6 MB, free: 26.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 3.827e-06/0.387, allocations: 0 / 444.6 MB, free: 26.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01052/0.3975, allocations: 4.067 MB / 448.6 MB, free: 24.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.3976, allocations: 78.14 kB / 448.7 MB, free: 24.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.3992, allocations: 1.078 MB / 449.8 MB, free: 24.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.606e-05/0.3993, allocations: 51.73 kB / 449.8 MB, free: 23.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004124/0.3997, allocations: 0.6853 MB / 450.5 MB, free: 23.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000379/0.4001, allocations: 0.4937 MB / 451 MB, free: 23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.892e-05/0.4002, allocations: 43.31 kB / 451.1 MB, free: 22.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4003, allocations: 387.9 kB / 451.4 MB, free: 22.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008413/0.4012, allocations: 0.5497 MB / 452 MB, free: 22.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.4022, allocations: 0.9918 MB / 453 MB, free: 21.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.4033, allocations: 0.7189 MB / 453.7 MB, free: 21.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.4033, allocations: 4.75 kB / 453.7 MB, free: 21.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.004308/0.4076, allocations: 2.333 MB / 456 MB, free: 19.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4077, allocations: 7.875 kB / 456 MB, free: 19.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.4077, allocations: 15.78 kB / 456.1 MB, free: 19.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002652/0.4104, allocations: 0.7696 MB / 456.8 MB, free: 19.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.4121, allocations: 498.6 kB / 457.3 MB, free: 19.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009565/0.4217, allocations: 12.81 MB / 470.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.4235, allocations: 114.7 kB / 470.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.4237, allocations: 84.73 kB / 470.3 MB, free: 6.918 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.0006437/0.4243, allocations: 365.3 kB / 470.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.4245, allocations: 154.1 kB / 470.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002401/0.4269, allocations: 1.533 MB / 472.4 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.427, allocations: 12 kB / 472.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.427, allocations: 8 kB / 472.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.427, allocations: 11.91 kB / 472.4 MB, free: 4.812 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.003954/0.431, allocations: 3.145 MB / 475.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.431, allocations: 0 / 475.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.4321, allocations: 271.7 kB / 475.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.4333, allocations: 476.1 kB / 476.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.471e-05/0.4334, allocations: 24 kB / 476.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00542/0.4388, allocations: 3.715 MB / 480 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4389, allocations: 4.031 kB / 480 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02877/0.4676, allocations: 14.34 MB / 494.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005913/0.4683, allocations: 319.1 kB / 494.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.4685, allocations: 24 kB / 494.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007673/0.4692, allocations: 55.67 kB / 494.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.4694, allocations: 89.17 kB / 494.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.787e-05/0.4695, allocations: 32 kB / 494.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009386/0.4704, allocations: 0.6846 MB / 495.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4705, allocations: 0 / 495.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002384/0.4728, allocations: 0.7305 MB / 496.3 MB, free: 12.34 MB / 350.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.003922/0.4768, allocations: 2.812 MB / 499.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004131/0.4809, allocations: 2.528 MB / 0.4899 GB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.481, allocations: 0 / 0.4899 GB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.4827, allocations: 0.9316 MB / 0.4908 GB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4839, allocations: 156.8 kB / 0.4909 GB, free: 5.785 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.01077/0.4947, allocations: 14.08 MB / 0.5047 GB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008915/0.4956, allocations: 1.291 MB / 0.5059 GB, free: 6.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001121/0.4967, allocations: 199.5 kB / 0.5061 GB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000823/0.4975, allocations: 0.55 MB / 0.5067 GB, free: 5.277 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4975, allocations: 0 / 0.5067 GB, free: 5.277 MB / 366.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).