Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridDifferentNominals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals,fileNamePrefix="PowerGrids_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.001076/0.001076, allocations: 99.55 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.001167/0.001166, allocations: 177.3 kB / 15.95 MB, free: 216 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.545/1.545, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05775/0.05775, allocations: 14.16 MB / 284.5 MB, free: 7.137 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.0005428/0.0005432, allocations: 16 kB / 348.9 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 51.11 MB / 400 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals): time 0.02444/0.1267, allocations: 27.33 MB / 427.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2253/0.3521, allocations: 12.03 MB / 439.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006714/0.3589, allocations: 85.09 kB / 439.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006417/0.3653, allocations: 1.193 MB / 440.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01891/0.3843, allocations: 4.651 MB / 445.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004847/0.3891, allocations: 1.335 MB / 446.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01826/0.4074, allocations: 7.806 MB / 454.5 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.4092, allocations: 0.6113 MB / 455.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0089/0.4181, allocations: 2.945 MB / 458 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007785/0.4259, allocations: 3.054 MB / 461.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001568/0.4276, allocations: 194.9 kB / 461.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005864/0.4334, allocations: 0.7511 MB / 462 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009817/0.4344, allocations: 0.7352 MB / 462.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003844/0.4383, allocations: 1.055 MB / 463.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007775/0.4461, allocations: 5.233 MB / 469 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.4461, allocations: 0 / 469 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4461, allocations: 0 / 469 MB, free: 4.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001862/0.4463, allocations: 0 / 469 MB, free: 4.762 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.02479/0.4711, allocations: 7.185 MB / 476.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.877e-05/0.4712, allocations: 8.031 kB / 476.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001961/0.4732, allocations: 0.4958 MB / 476.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004265/0.4775, allocations: 0.8315 MB / 477.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007826/0.4853, allocations: 2.912 MB / 480.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/0.4856, allocations: 315.6 kB / 480.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007682/0.4864, allocations: 431.9 kB / 481.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006684/0.4931, allocations: 3.709 MB / 484.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.487e-05/0.4932, allocations: 0 / 484.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/0.4935, allocations: 160 kB / 485.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.016e-05/0.4936, allocations: 96 kB / 485.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006652/0.5002, allocations: 3.878 MB / 489 MB, free: 1.312 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.03471/0.535, allocations: 25.06 MB / 0.502 GB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008489/0.5435, allocations: 6.518 MB / 0.5084 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002708/0.5438, allocations: 59.27 kB / 0.5085 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.092e-05/0.5439, allocations: 73.86 kB / 0.5085 GB, free: 14.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=420): time 5.972e-06/0.5439, allocations: 0 / 0.5085 GB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=423): time 0.03189/0.5758, allocations: 11.9 MB / 0.5202 GB, free: 2.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.5759, allocations: 102.7 kB / 0.5203 GB, free: 2.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004198/0.5801, allocations: 3.055 MB / 0.5232 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004119/0.5806, allocations: 109.7 kB / 0.5233 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.5821, allocations: 1.912 MB / 0.5252 GB, free: 13.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00148/0.5836, allocations: 1.493 MB / 0.5267 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.5838, allocations: 124 kB / 0.5268 GB, free: 11.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003137/0.5841, allocations: 0.5309 MB / 0.5273 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/0.5869, allocations: 1.652 MB / 0.5289 GB, free: 9.203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003677/0.5906, allocations: 2.97 MB / 0.5318 GB, free: 5.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00342/0.594, allocations: 2.138 MB / 0.5339 GB, free: 3.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.061e-05/0.5941, allocations: 12 kB / 0.5339 GB, free: 3.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01428/0.6083, allocations: 6.908 MB / 0.5407 GB, free: 12.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.116e-05/0.6084, allocations: 20.78 kB / 0.5407 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.856e-05/0.6085, allocations: 43.94 kB / 0.5407 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008355/0.6169, allocations: 2.291 MB / 0.543 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006122/0.623, allocations: 1.451 MB / 0.5444 GB, free: 8.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03765/0.6607, allocations: 38.44 MB / 0.5819 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006211/0.6669, allocations: 346.1 kB / 0.5822 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009669/0.6679, allocations: 240 kB / 0.5825 GB, free: 14.46 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.002286/0.6702, allocations: 0.8289 MB / 0.5833 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/0.6714, allocations: 470.3 kB / 0.5837 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008737/0.6801, allocations: 4.489 MB / 0.5881 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.784e-05/0.6802, allocations: 44 kB / 0.5882 GB, free: 8.582 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.862e-05/0.6802, allocations: 16 kB / 0.5882 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.924e-05/0.6803, allocations: 19.92 kB / 0.5882 GB, free: 8.547 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.2459/0.9262, allocations: 9.081 MB / 0.5971 GB, free: 150.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-05/0.9263, allocations: 0 / 0.5971 GB, free: 150.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004341/0.9306, allocations: 0.8075 MB / 0.5979 GB, free: 150.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/0.9359, allocations: 1.375 MB / 0.5992 GB, free: 150 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000884/0.9368, allocations: 82.2 kB / 0.5993 GB, free: 150 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01719/0.954, allocations: 11.14 MB / 0.6101 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.9541, allocations: 0 / 0.6101 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/0.9672, allocations: 6.15 MB / 0.6162 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/0.97, allocations: 0.7718 MB / 0.6169 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/0.9711, allocations: 75.3 kB / 0.617 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/0.9737, allocations: 144 kB / 0.6171 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007399/0.9745, allocations: 277.5 kB / 0.6174 GB, free: 142.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/0.9747, allocations: 102.2 kB / 0.6175 GB, free: 142.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002799/0.9775, allocations: 1.879 MB / 0.6193 GB, free: 142.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9775, allocations: 0 / 0.6193 GB, free: 142.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005663/0.9831, allocations: 1.598 MB / 0.6209 GB, free: 142 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.01066/0.9938, allocations: 7.049 MB / 0.6278 GB, free: 138.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.005, allocations: 7.591 MB / 0.6352 GB, free: 134.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/1.005, allocations: 0 / 0.6352 GB, free: 134.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005385/1.01, allocations: 2.77 MB / 0.6379 GB, free: 132.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/1.014, allocations: 447.8 kB / 0.6383 GB, free: 132.7 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.02721/1.041, allocations: 37.59 MB / 0.675 GB, free: 96.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/1.043, allocations: 2.411 MB / 0.6774 GB, free: 94.63 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002978/1.046, allocations: 0.57 MB / 0.6779 GB, free: 94.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/1.048, allocations: 1.805 MB / 0.6797 GB, free: 92.53 MB / 462.1 MB Notification: Performance of SimCode: time 1.442e-06/1.048, allocations: 0 / 0.6797 GB, free: 92.53 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).