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.0009642/0.0009641, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001054/0.001054, allocations: 172.7 kB / 15.95 MB, free: 208 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.513/1.513, allocations: 205.4 MB / 222.1 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.06208/0.06208, allocations: 14.17 MB / 284.6 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.0005117/0.0005118, allocations: 12 kB / 349 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1096, allocations: 51.13 MB / 400.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridDifferentNominals): time 0.2205/0.33, allocations: 30.29 MB / 430.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02183/0.3519, allocations: 12.02 MB / 442.4 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0068/0.3588, allocations: 87.84 kB / 442.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006499/0.3653, allocations: 1.198 MB / 443.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01583/0.3812, allocations: 4.195 MB / 447.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004922/0.3861, allocations: 1.339 MB / 449.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01678/0.4029, allocations: 10.6 MB / 459.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0027/0.4056, allocations: 0.6069 MB / 460.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007121/0.4128, allocations: 2.801 MB / 463.2 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006536/0.4193, allocations: 3.127 MB / 466.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001799/0.4212, allocations: 194.6 kB / 466.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005699/0.4269, allocations: 0.7337 MB / 467.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.4285, allocations: 0.7399 MB / 468 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003619/0.4322, allocations: 1.049 MB / 469.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00827/0.4405, allocations: 5.288 MB / 474.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.4405, allocations: 4 kB / 474.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4405, allocations: 0 / 474.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002466/0.4408, allocations: 4 kB / 474.4 MB, free: 14.68 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.0245/0.4653, allocations: 7.194 MB / 481.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4653, allocations: 8.031 kB / 481.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001328/0.4667, allocations: 0.4989 MB / 482.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004139/0.4708, allocations: 0.8249 MB / 482.9 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007487/0.4783, allocations: 2.913 MB / 485.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003503/0.4787, allocations: 319.6 kB / 486.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.4798, allocations: 423.9 kB / 486.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008275/0.4881, allocations: 3.737 MB / 490.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.4882, allocations: 11.92 kB / 490.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005121/0.4888, allocations: 156 kB / 490.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-05/0.4889, allocations: 92 kB / 490.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007331/0.4962, allocations: 3.874 MB / 494.4 MB, free: 10.59 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.03236/0.5286, allocations: 24.75 MB / 0.507 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007759/0.5364, allocations: 6.357 MB / 0.5132 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00244/0.5388, allocations: 1.497 MB / 0.5147 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/0.5391, allocations: 61.45 kB / 0.5147 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.5392, allocations: 81.81 kB / 0.5148 GB, free: 6.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=420): time 6.713e-06/0.5392, allocations: 0 / 0.5148 GB, free: 6.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=423): time 0.03265/0.5718, allocations: 12 MB / 0.5265 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/0.572, allocations: 94.73 kB / 0.5266 GB, free: 10.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005733/0.5777, allocations: 3.051 MB / 0.5296 GB, free: 7.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005204/0.5783, allocations: 113.7 kB / 0.5297 GB, free: 7.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.58, allocations: 1.918 MB / 0.5316 GB, free: 5.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001807/0.5818, allocations: 1.492 MB / 0.533 GB, free: 3.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005387/0.5823, allocations: 124 kB / 0.5331 GB, free: 3.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0004217/0.5828, allocations: 0.5231 MB / 0.5337 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/0.5861, allocations: 1.652 MB / 0.5353 GB, free: 1.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004265/0.5904, allocations: 2.995 MB / 0.5382 GB, free: 14.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004205/0.5946, allocations: 2.138 MB / 0.5403 GB, free: 12.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.775e-05/0.5946, allocations: 8 kB / 0.5403 GB, free: 12.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01521/0.6099, allocations: 6.908 MB / 0.547 GB, free: 5.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.716e-05/0.61, allocations: 24.03 kB / 0.5471 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.916e-05/0.61, allocations: 40 kB / 0.5471 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01685/0.6269, allocations: 3.554 MB / 0.5506 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005537/0.6325, allocations: 1.342 MB / 0.5519 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03632/0.6688, allocations: 37.49 MB / 0.5885 GB, free: 7.285 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005437/0.6743, allocations: 346.1 kB / 0.5888 GB, free: 6.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009885/0.6753, allocations: 244 kB / 0.5891 GB, free: 6.707 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.00279/0.6781, allocations: 0.8244 MB / 0.5899 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/0.6794, allocations: 466.4 kB / 0.5903 GB, free: 5.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009841/0.6893, allocations: 4.493 MB / 0.5947 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.141e-05/0.6894, allocations: 40 kB / 0.5947 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.166e-05/0.6894, allocations: 16 kB / 0.5947 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/0.6896, allocations: 19.92 kB / 0.5948 GB, free: 0.7969 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.2387/0.9283, allocations: 9.068 MB / 0.6036 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.9284, allocations: 0 / 0.6036 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002971/0.9313, allocations: 0.6743 MB / 0.6043 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003274/0.9346, allocations: 0.8478 MB / 0.6051 GB, free: 149.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004205/0.9351, allocations: 78.45 kB / 0.6052 GB, free: 149.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01779/0.9529, allocations: 11.46 MB / 0.6164 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.9529, allocations: 1.406 kB / 0.6164 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.9637, allocations: 6.139 MB / 0.6224 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/0.9662, allocations: 0.7669 MB / 0.6231 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000795/0.967, allocations: 75.5 kB / 0.6232 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/0.9695, allocations: 152.2 kB / 0.6233 GB, free: 139.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006197/0.9701, allocations: 272.8 kB / 0.6236 GB, free: 139.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/0.9703, allocations: 102.5 kB / 0.6237 GB, free: 139.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002766/0.9731, allocations: 1.87 MB / 0.6255 GB, free: 138.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9731, allocations: 0 / 0.6255 GB, free: 138.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006276/0.9794, allocations: 1.535 MB / 0.627 GB, free: 138.6 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.01015/0.9895, allocations: 7.049 MB / 0.6339 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01169/1.001, allocations: 8.221 MB / 0.6419 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.001, allocations: 0 / 0.6419 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00717/1.009, allocations: 3.617 MB / 0.6455 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005133/1.014, allocations: 493.6 kB / 0.6459 GB, free: 126.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.06194/1.076, allocations: 31.56 MB / 0.6768 GB, free: 93.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/1.078, allocations: 2.361 MB / 0.6791 GB, free: 91.19 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003312/1.082, allocations: 0.5721 MB / 0.6796 GB, free: 90.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002478/1.084, allocations: 1.808 MB / 0.6814 GB, free: 88.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/1.084, allocations: 0 / 0.6814 GB, free: 88.8 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).