Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals.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.StaticGridDifferentNominals,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridDifferentNominals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridDifferentNominals",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.000965/0.000965, allocations: 94.03 kB / 15.71 MB, free: 440 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.001437/0.001437, allocations: 179.7 kB / 16.59 MB, free: 6.094 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.86/1.86, allocations: 205.4 MB / 222.8 MB, free: 5.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06204/0.06204, allocations: 14.18 MB / 285.2 MB, free: 7.113 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.0005295/0.0005296, allocations: 16 kB / 349.6 MB, free: 17.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1199, allocations: 51.11 MB / 400.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals): time 0.3003/0.4203, allocations: 30.29 MB / 431 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02445/0.4448, allocations: 12.02 MB / 443 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006885/0.4517, allocations: 92.47 kB / 443.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006128/0.4579, allocations: 1.195 MB / 444.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01725/0.4752, allocations: 4.198 MB / 448.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004901/0.4801, allocations: 1.34 MB / 449.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01854/0.4986, allocations: 10.59 MB / 460.5 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.5007, allocations: 0.6116 MB / 461.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007337/0.508, allocations: 2.799 MB / 463.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007162/0.5152, allocations: 3.128 MB / 467 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001968/0.5172, allocations: 197.7 kB / 467.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006491/0.5237, allocations: 0.7305 MB / 467.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00197/0.5257, allocations: 0.7446 MB / 468.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00461/0.5303, allocations: 1.047 MB / 469.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009787/0.5401, allocations: 5.297 MB / 475 MB, free: 14.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.5402, allocations: 0 / 475 MB, free: 14.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.5402, allocations: 0 / 475 MB, free: 14.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003244/0.5405, allocations: 0 / 475 MB, free: 14.69 MB / 334.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.03083/0.5713, allocations: 7.188 MB / 482.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/0.5714, allocations: 16.02 kB / 482.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002108/0.5735, allocations: 0.4919 MB / 482.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005021/0.5786, allocations: 0.8288 MB / 483.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/0.588, allocations: 2.914 MB / 486.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004124/0.5885, allocations: 315.6 kB / 486.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001449/0.5899, allocations: 431.8 kB / 487.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/0.6009, allocations: 3.737 MB / 490.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001503/0.6011, allocations: 3.938 kB / 490.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007693/0.6019, allocations: 156 kB / 491.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/0.602, allocations: 96 kB / 491.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009674/0.6117, allocations: 3.874 MB / 495 MB, free: 10.6 MB / 350.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.04688/0.6586, allocations: 24.76 MB / 0.5076 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009621/0.6683, allocations: 6.352 MB / 0.5138 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.6713, allocations: 1.505 MB / 0.5153 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003688/0.6717, allocations: 56.52 kB / 0.5154 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.164e-05/0.6718, allocations: 81.81 kB / 0.5154 GB, free: 6.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=420): time 2.333e-05/0.6718, allocations: 4 kB / 0.5154 GB, free: 6.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=423): time 0.03599/0.7078, allocations: 12 MB / 0.5271 GB, free: 10.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/0.7079, allocations: 98.73 kB / 0.5272 GB, free: 10.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006245/0.7142, allocations: 3.047 MB / 0.5302 GB, free: 7.512 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009759/0.7152, allocations: 121.7 kB / 0.5303 GB, free: 7.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002559/0.7178, allocations: 1.919 MB / 0.5322 GB, free: 5.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002682/0.7205, allocations: 1.484 MB / 0.5337 GB, free: 4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008594/0.7214, allocations: 124 kB / 0.5338 GB, free: 3.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0005293/0.7219, allocations: 0.527 MB / 0.5343 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/0.7259, allocations: 1.652 MB / 0.5359 GB, free: 1.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004943/0.7308, allocations: 2.991 MB / 0.5388 GB, free: 14.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004821/0.7357, allocations: 2.134 MB / 0.5409 GB, free: 12.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.801e-05/0.7357, allocations: 15.94 kB / 0.5409 GB, free: 12.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01809/0.7538, allocations: 6.907 MB / 0.5477 GB, free: 5.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.7539, allocations: 24.78 kB / 0.5477 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.268e-05/0.754, allocations: 36 kB / 0.5477 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01738/0.7714, allocations: 3.547 MB / 0.5512 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/0.7775, allocations: 1.35 MB / 0.5525 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03867/0.8162, allocations: 37.48 MB / 0.5891 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006348/0.8226, allocations: 342.1 kB / 0.5894 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001349/0.824, allocations: 240 kB / 0.5897 GB, free: 6.723 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (703): * Single equations (assignments): 679 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0} * Non-linear torn systems: 15 {23 0,2 0,2 0,2 0,2 0,23 0,2 0,2 0,2 0,2 0,23 0,2 0,2 0,2 0,2 0} Notification: Performance of prepare postOptimizeDAE: time 0.003519/0.8275, allocations: 0.8361 MB / 0.5905 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001824/0.8294, allocations: 470.4 kB / 0.5909 GB, free: 5.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01114/0.8405, allocations: 4.481 MB / 0.5953 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.896e-05/0.8406, allocations: 40 kB / 0.5953 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.067e-05/0.8407, allocations: 16 kB / 0.5954 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-05/0.8408, allocations: 19.92 kB / 0.5954 GB, free: 0.8086 MB / 462.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.2806/1.121, allocations: 9.08 MB / 0.6042 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/1.121, allocations: 2.484 kB / 0.6043 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/1.124, allocations: 0.671 MB / 0.6049 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003305/1.128, allocations: 0.8451 MB / 0.6057 GB, free: 149.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003053/1.128, allocations: 79.89 kB / 0.6058 GB, free: 149.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01776/1.146, allocations: 11.46 MB / 0.617 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.146, allocations: 8.219 kB / 0.617 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06564/1.212, allocations: 37.59 MB / 0.6537 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00228/1.214, allocations: 0.7785 MB / 0.6545 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005933/1.215, allocations: 75.94 kB / 0.6545 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/1.217, allocations: 138.8 kB / 0.6547 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006672/1.217, allocations: 275.3 kB / 0.6549 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.218, allocations: 104.4 kB / 0.655 GB, free: 118 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002713/1.22, allocations: 1.878 MB / 0.6569 GB, free: 116.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.22, allocations: 0 / 0.6569 GB, free: 116.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00775/1.228, allocations: 2.078 MB / 0.6589 GB, free: 114.1 MB / 462.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 {(36,8.0%) 0,(36,8.0%) 0,(36,8.0%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009875/1.238, allocations: 7.029 MB / 0.6658 GB, free: 107 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01214/1.25, allocations: 8.225 MB / 0.6738 GB, free: 98.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/1.25, allocations: 0 / 0.6738 GB, free: 98.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006877/1.257, allocations: 3.605 MB / 0.6773 GB, free: 94.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005056/1.262, allocations: 0.496 MB / 0.6778 GB, free: 94.41 MB / 462.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.06444/1.327, allocations: 35.84 MB / 0.7128 GB, free: 56.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002527/1.329, allocations: 2.526 MB / 0.7153 GB, free: 54.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003273/1.332, allocations: 0.5839 MB / 0.7158 GB, free: 53.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002391/1.335, allocations: 1.808 MB / 0.7176 GB, free: 51.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/1.335, allocations: 0 / 0.7176 GB, free: 51.7 MB / 462.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).