Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentGeneratorParam.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.StaticGridDifferentGeneratorParam,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridDifferentGeneratorParam",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentGeneratorParam,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridDifferentGeneratorParam",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.001101/0.001101, allocations: 97.52 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.001363/0.001362, allocations: 174.3 kB / 16.57 MB, free: 6.391 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.547/1.547, allocations: 205.4 MB / 222.7 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.06048/0.06048, allocations: 14.15 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.0005111/0.0005112, allocations: 16 kB / 349.6 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1067, allocations: 51.12 MB / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentGeneratorParam): time 0.02577/0.1325, allocations: 26.95 MB / 427.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2166/0.3491, allocations: 11.82 MB / 439.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005767/0.355, allocations: 85.09 kB / 439.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005669/0.3607, allocations: 1.182 MB / 440.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01785/0.3785, allocations: 4.586 MB / 445.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004445/0.383, allocations: 1.261 MB / 446.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01848/0.4015, allocations: 7.662 MB / 454.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.4031, allocations: 0.6135 MB / 454.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007972/0.4111, allocations: 2.863 MB / 457.7 MB, free: 11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006512/0.4176, allocations: 2.981 MB / 460.7 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008132/0.4184, allocations: 191.5 kB / 460.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004441/0.4229, allocations: 0.7461 MB / 461.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005396/0.4234, allocations: 0.7104 MB / 462.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002947/0.4264, allocations: 1.025 MB / 463.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.4324, allocations: 5.142 MB / 468.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.4324, allocations: 0 / 468.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4324, allocations: 0 / 468.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.4325, allocations: 0 / 468.5 MB, free: 5.77 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: 971 * Number of variables: 971 Notification: Performance of Generate backend data structure: time 0.02292/0.4555, allocations: 7.059 MB / 475.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.4555, allocations: 12.02 kB / 475.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001599/0.4571, allocations: 0.4989 MB / 476 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004323/0.4615, allocations: 0.8172 MB / 476.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007461/0.4689, allocations: 2.847 MB / 479.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.4692, allocations: 307.6 kB / 480 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008464/0.4701, allocations: 412 kB / 480.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006736/0.4768, allocations: 3.701 MB / 484.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.938e-05/0.4769, allocations: 7.938 kB / 484.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.4773, allocations: 164 kB / 484.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.266e-05/0.4773, allocations: 97.25 kB / 484.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007469/0.4848, allocations: 3.878 MB / 488.3 MB, free: 2.812 MB / 334.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.04436/0.5292, allocations: 24.86 MB / 0.5011 GB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.5396, allocations: 6.513 MB / 0.5075 GB, free: 172 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004075/0.5401, allocations: 59.25 kB / 0.5075 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.96e-05/0.5402, allocations: 80.48 kB / 0.5076 GB, free: 24 kB / 366.1 MB Notification: Performance of pre-optimization done (n=420): time 5.691e-06/0.5402, allocations: 0 / 0.5076 GB, free: 24 kB / 366.1 MB Notification: Performance of matching and sorting (n=423): time 0.03419/0.5744, allocations: 11.86 MB / 0.5192 GB, free: 4.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/0.5745, allocations: 98.69 kB / 0.5193 GB, free: 3.914 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004461/0.579, allocations: 2.959 MB / 0.5222 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006285/0.5797, allocations: 105.7 kB / 0.5223 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.5812, allocations: 1.907 MB / 0.5241 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001957/0.5832, allocations: 1.482 MB / 0.5256 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.5835, allocations: 120 kB / 0.5257 GB, free: 13.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003334/0.5839, allocations: 0.5226 MB / 0.5262 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002794/0.5867, allocations: 1.558 MB / 0.5277 GB, free: 11.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003751/0.5904, allocations: 2.867 MB / 0.5305 GB, free: 7.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/0.5942, allocations: 2.033 MB / 0.5325 GB, free: 5.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-05/0.5942, allocations: 8 kB / 0.5325 GB, free: 5.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01574/0.61, allocations: 6.519 MB / 0.5389 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/0.6101, allocations: 27.95 kB / 0.5389 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.705e-05/0.6102, allocations: 36 kB / 0.5389 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007309/0.6175, allocations: 1.94 MB / 0.5408 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006204/0.6237, allocations: 1.404 MB / 0.5422 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03562/0.6594, allocations: 32.99 MB / 0.5744 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006215/0.6656, allocations: 338.2 kB / 0.5747 GB, free: 7.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/0.6667, allocations: 236 kB / 0.575 GB, free: 7.434 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (677): * Single equations (assignments): 657 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {2,2,2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 7 {3 20,1 1,1 1,3 20,1 1,1 1,3 20} Notification: Performance of prepare postOptimizeDAE: time 0.002609/0.6694, allocations: 0.8195 MB / 0.5758 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/0.6707, allocations: 462.4 kB / 0.5762 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008642/0.6793, allocations: 4.488 MB / 0.5806 GB, free: 1.617 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.949e-05/0.6794, allocations: 40 kB / 0.5806 GB, free: 1.578 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.305e-05/0.6795, allocations: 19.98 kB / 0.5806 GB, free: 1.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.078e-05/0.6796, allocations: 27.86 kB / 0.5807 GB, free: 1.531 MB / 446.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.2188/0.8984, allocations: 9.085 MB / 0.5895 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.8984, allocations: 2.094 kB / 0.5895 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003707/0.9022, allocations: 0.8122 MB / 0.5903 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003878/0.9061, allocations: 1.354 MB / 0.5917 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004301/0.9065, allocations: 67.69 kB / 0.5917 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01709/0.9236, allocations: 11.15 MB / 0.6026 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.9236, allocations: 4.562 kB / 0.6026 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08076/1.004, allocations: 41.01 MB / 0.6427 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.007, allocations: 0.7701 MB / 0.6434 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005218/1.007, allocations: 72 kB / 0.6435 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002298/1.01, allocations: 145.5 kB / 0.6436 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005961/1.01, allocations: 271 kB / 0.6439 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/1.01, allocations: 104 kB / 0.644 GB, free: 101 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002467/1.013, allocations: 1.824 MB / 0.6458 GB, free: 99.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.013, allocations: 0 / 0.6458 GB, free: 99.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007719/1.021, allocations: 2.126 MB / 0.6478 GB, free: 97.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 18 (GEN_1.theta,GEN_1.omegaPu,GEN_1.lambdaDPu,GEN_1.lambdafPu,GEN_1.lambdaQ1Pu,GEN_1.lambdaQ2Pu,GEN_2.theta,GEN_2.omegaPu,GEN_2.lambdaDPu,GEN_2.lambdafPu,GEN_2.lambdaQ1Pu,GEN_2.lambdaQ2Pu,GEN_3.theta,GEN_3.omegaPu,GEN_3.lambdaDPu,GEN_3.lambdafPu,GEN_3.lambdaQ1Pu,GEN_3.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 (324): * Single equations (assignments): 321 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(9,48.1%) 27,(9,48.1%) 27,(9,48.1%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009862/1.03, allocations: 7.048 MB / 0.6547 GB, free: 90.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009694/1.04, allocations: 6.923 MB / 0.6615 GB, free: 82.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-05/1.04, allocations: 64 / 0.6615 GB, free: 82.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004818/1.045, allocations: 2.773 MB / 0.6642 GB, free: 80.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/1.048, allocations: 444.1 kB / 0.6646 GB, free: 79.61 MB / 446.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.03127/1.079, allocations: 41.14 MB / 0.7048 GB, free: 37.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002192/1.082, allocations: 2.509 MB / 0.7072 GB, free: 34.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00295/1.085, allocations: 0.5648 MB / 0.7078 GB, free: 34.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00228/1.087, allocations: 1.78 MB / 0.7095 GB, free: 32.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/1.087, allocations: 0 / 0.7095 GB, free: 32.61 MB / 446.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).