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.001044/0.001044, allocations: 96.03 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.001254/0.001254, allocations: 174.8 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.574/1.574, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05939/0.05939, allocations: 14.17 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.0005881/0.0005882, allocations: 15.98 kB / 349.6 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09859, allocations: 51.11 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals): time 0.02355/0.1222, allocations: 27.33 MB / 428 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.253/0.3752, allocations: 12.03 MB / 440 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006723/0.382, allocations: 88.38 kB / 440.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005957/0.388, allocations: 1.19 MB / 441.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01816/0.4062, allocations: 4.649 MB / 445.9 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004517/0.4107, allocations: 1.336 MB / 447.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01711/0.4278, allocations: 7.805 MB / 455.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.4299, allocations: 0.6109 MB / 455.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007764/0.4377, allocations: 2.949 MB / 458.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007705/0.4454, allocations: 3.044 MB / 461.7 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001905/0.4473, allocations: 195.8 kB / 461.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006701/0.4541, allocations: 0.7596 MB / 462.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/0.4559, allocations: 0.7345 MB / 463.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004039/0.46, allocations: 1.049 MB / 464.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0084/0.4684, allocations: 5.243 MB / 469.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.4684, allocations: 0 / 469.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4685, allocations: 0 / 469.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002749/0.4687, allocations: 0 / 469.7 MB, free: 4.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.02536/0.4941, allocations: 7.184 MB / 476.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4942, allocations: 8.031 kB / 476.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001532/0.4957, allocations: 0.495 MB / 477.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004447/0.5002, allocations: 0.8249 MB / 478.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008259/0.5084, allocations: 2.908 MB / 481.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/0.5087, allocations: 319.6 kB / 481.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007146/0.5094, allocations: 435.9 kB / 481.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006724/0.5162, allocations: 3.701 MB / 485.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.649e-05/0.5162, allocations: 3.938 kB / 485.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003053/0.5166, allocations: 160.5 kB / 485.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.485e-05/0.5166, allocations: 94.41 kB / 485.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006695/0.5233, allocations: 3.878 MB / 489.7 MB, free: 1.324 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.03584/0.5592, allocations: 25.06 MB / 0.5027 GB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00803/0.5673, allocations: 6.525 MB / 0.509 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002071/0.5675, allocations: 59.27 kB / 0.5091 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/0.5676, allocations: 76.48 kB / 0.5092 GB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=420): time 6.542e-06/0.5676, allocations: 0 / 0.5092 GB, free: 14.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=423): time 0.03069/0.5983, allocations: 11.9 MB / 0.5208 GB, free: 2.277 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.5984, allocations: 98.69 kB / 0.5209 GB, free: 2.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004485/0.6029, allocations: 3.055 MB / 0.5239 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006758/0.6036, allocations: 117.6 kB / 0.524 GB, free: 14.97 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.6052, allocations: 1.911 MB / 0.5258 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001648/0.6069, allocations: 1.49 MB / 0.5273 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002576/0.6071, allocations: 124 kB / 0.5274 GB, free: 11.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003165/0.6074, allocations: 0.5309 MB / 0.5279 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/0.6103, allocations: 1.652 MB / 0.5295 GB, free: 9.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003798/0.6141, allocations: 2.969 MB / 0.5324 GB, free: 5.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00362/0.6178, allocations: 2.134 MB / 0.5345 GB, free: 3.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.182e-05/0.6178, allocations: 12 kB / 0.5345 GB, free: 3.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01599/0.6338, allocations: 6.908 MB / 0.5413 GB, free: 12.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.638e-05/0.6339, allocations: 24.72 kB / 0.5413 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.282e-05/0.634, allocations: 43.98 kB / 0.5413 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009811/0.6438, allocations: 2.29 MB / 0.5436 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01023/0.6541, allocations: 1.455 MB / 0.545 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04897/0.7032, allocations: 38.43 MB / 0.5825 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006766/0.71, allocations: 346.1 kB / 0.5829 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/0.7111, allocations: 244 kB / 0.5831 GB, free: 14.47 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): 6 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {2,2,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: 9 {3 20,1 1,1 1,3 20,1 1,1 1,3 20,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002367/0.7135, allocations: 0.8315 MB / 0.5839 GB, free: 13.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/0.7148, allocations: 474.3 kB / 0.5844 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008421/0.7232, allocations: 4.489 MB / 0.5887 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.321e-05/0.7233, allocations: 40 kB / 0.5888 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.261e-05/0.7234, allocations: 16 kB / 0.5888 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.118e-05/0.7234, allocations: 19.92 kB / 0.5888 GB, free: 8.551 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.2169/0.9403, allocations: 9.078 MB / 0.5977 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.9403, allocations: 0 / 0.5977 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004031/0.9444, allocations: 0.8087 MB / 0.5985 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004965/0.9494, allocations: 1.379 MB / 0.5998 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007072/0.9501, allocations: 79.5 kB / 0.5999 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02028/0.9704, allocations: 11.14 MB / 0.6108 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9705, allocations: 4.875 kB / 0.6108 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08229/1.053, allocations: 41.09 MB / 0.6509 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.055, allocations: 0.7766 MB / 0.6517 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005958/1.056, allocations: 67.98 kB / 0.6517 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/1.058, allocations: 147.3 kB / 0.6519 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006116/1.059, allocations: 278.2 kB / 0.6521 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/1.059, allocations: 103.9 kB / 0.6522 GB, free: 122.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002467/1.062, allocations: 1.874 MB / 0.6541 GB, free: 120.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.062, allocations: 1.406 kB / 0.6541 GB, free: 120.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007567/1.069, allocations: 2.176 MB / 0.6562 GB, free: 118.4 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 {(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.009564/1.079, allocations: 7.04 MB / 0.6631 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01064/1.089, allocations: 7.581 MB / 0.6705 GB, free: 103.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.089, allocations: 384 / 0.6705 GB, free: 103.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005057/1.095, allocations: 2.775 MB / 0.6732 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003165/1.098, allocations: 437.2 kB / 0.6736 GB, free: 100.2 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.02918/1.127, allocations: 40.99 MB / 0.7136 GB, free: 58.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002152/1.129, allocations: 2.534 MB / 0.7161 GB, free: 55.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002964/1.132, allocations: 0.5761 MB / 0.7167 GB, free: 55.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00245/1.135, allocations: 1.814 MB / 0.7184 GB, free: 53.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.683e-06/1.135, allocations: 0 / 0.7184 GB, free: 53.31 MB / 462.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).