Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid.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.StaticGrid,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",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.0008345/0.0008347, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008758/0.0008758, allocations: 168.7 kB / 15.95 MB, free: 204 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.473/1.473, allocations: 205.4 MB / 222.1 MB, free: 5.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06206/0.06206, allocations: 14.16 MB / 284.6 MB, free: 7.121 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.0004992/0.0004993, allocations: 14.66 kB / 349 MB, free: 17.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09218, allocations: 51.12 MB / 400.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid): time 0.009702/0.1019, allocations: 11.14 MB / 411.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008592/0.1106, allocations: 5.069 MB / 416.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001301/0.1119, allocations: 31.88 kB / 416.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.1131, allocations: 473.4 kB / 416.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.1175, allocations: 1.859 MB / 418.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.1189, allocations: 0.7009 MB / 419.4 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003918/0.1228, allocations: 3.531 MB / 422.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.1232, allocations: 217.4 kB / 423.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.1244, allocations: 0.941 MB / 424 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.1255, allocations: 1.058 MB / 425.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1256, allocations: 64 kB / 425.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.1266, allocations: 435.7 kB / 425.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.1269, allocations: 250.6 kB / 425.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003528/0.1272, allocations: 376.8 kB / 426.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001679/0.1289, allocations: 1.874 MB / 428.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1289, allocations: 0 / 428.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1289, allocations: 0 / 428.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.072e-05/0.129, allocations: 7.938 kB / 428.1 MB, free: 1.797 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: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.1836/0.3125, allocations: 2.622 MB / 430.7 MB, free: 35.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3126, allocations: 13.48 kB / 430.7 MB, free: 35.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005357/0.3131, allocations: 193.5 kB / 430.9 MB, free: 35.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.3144, allocations: 276.8 kB / 431.2 MB, free: 35.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.3164, allocations: 1.087 MB / 432.3 MB, free: 35.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.697e-05/0.3165, allocations: 105.3 kB / 432.4 MB, free: 35.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002124/0.3167, allocations: 145.7 kB / 432.5 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.3191, allocations: 1.269 MB / 433.8 MB, free: 35.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3191, allocations: 2.562 kB / 433.8 MB, free: 35.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/0.3192, allocations: 52.3 kB / 433.8 MB, free: 35.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/0.3192, allocations: 29.81 kB / 433.9 MB, free: 35.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00212/0.3214, allocations: 1.295 MB / 435.2 MB, free: 34.6 MB / 318.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.009309/0.3307, allocations: 8.376 MB / 443.5 MB, free: 27.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.333, allocations: 2.076 MB / 445.6 MB, free: 26.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008218/0.3338, allocations: 0.5048 MB / 446.1 MB, free: 26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-05/0.3339, allocations: 19.98 kB / 446.1 MB, free: 26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.3339, allocations: 50.33 kB / 446.2 MB, free: 25.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 3.166e-06/0.334, allocations: 0 / 446.2 MB, free: 25.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01037/0.3443, allocations: 4.234 MB / 450.4 MB, free: 23.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.3444, allocations: 70.45 kB / 450.5 MB, free: 23.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.3457, allocations: 1.074 MB / 451.6 MB, free: 23.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.266e-05/0.3458, allocations: 60.27 kB / 451.6 MB, free: 23.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.3461, allocations: 0.6768 MB / 452.3 MB, free: 22.51 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.3464, allocations: 0.4947 MB / 452.8 MB, free: 22.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.3465, allocations: 40.62 kB / 452.8 MB, free: 22.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.3466, allocations: 391.4 kB / 453.2 MB, free: 21.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008314/0.3475, allocations: 0.5459 MB / 453.8 MB, free: 21.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3485, allocations: 1.014 MB / 454.8 MB, free: 20.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009588/0.3495, allocations: 0.71 MB / 455.5 MB, free: 20.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3495, allocations: 3.938 kB / 455.5 MB, free: 20.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.003848/0.3533, allocations: 2.331 MB / 457.8 MB, free: 18.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.3534, allocations: 11.88 kB / 457.8 MB, free: 18.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.3534, allocations: 16.36 kB / 457.8 MB, free: 18.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005497/0.3589, allocations: 1.2 MB / 459 MB, free: 18.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.3606, allocations: 470.6 kB / 459.5 MB, free: 18.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009337/0.37, allocations: 12.49 MB / 472 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.3719, allocations: 119.3 kB / 472.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.372, allocations: 79.98 kB / 472.2 MB, free: 4.723 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (234): * Single equations (assignments): 226 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0} * Non-linear torn systems: 5 {23 0,2 0,2 0,2 0,2 0} Notification: Performance of prepare postOptimizeDAE: time 0.000573/0.3726, allocations: 361.5 kB / 472.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.3728, allocations: 162.1 kB / 472.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002351/0.3751, allocations: 1.522 MB / 474.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.3752, allocations: 16 kB / 474.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.3752, allocations: 4 kB / 474.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.3752, allocations: 7.969 kB / 474.3 MB, free: 2.633 MB / 318.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.004245/0.3794, allocations: 3.161 MB / 477.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.3795, allocations: 0 / 477.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.3805, allocations: 243.7 kB / 477.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3815, allocations: 288.4 kB / 477.9 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.74e-05/0.3816, allocations: 31.98 kB / 478 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005912/0.3875, allocations: 3.812 MB / 481.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3875, allocations: 0 / 481.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.3913, allocations: 2.131 MB / 483.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006606/0.3919, allocations: 319.1 kB / 484.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.3921, allocations: 28 kB / 484.2 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006651/0.3928, allocations: 47.67 kB / 484.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.3929, allocations: 97.11 kB / 484.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.393, allocations: 36 kB / 484.4 MB, free: 8.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009316/0.3939, allocations: 0.6767 MB / 485.1 MB, free: 7.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.394, allocations: 4 kB / 485.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001596/0.3956, allocations: 0.5245 MB / 485.6 MB, free: 6.977 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.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 (108): * Single equations (assignments): 107 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(36,8.0%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003996/0.3996, allocations: 2.804 MB / 488.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004728/0.4043, allocations: 2.739 MB / 491.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4043, allocations: 0 / 491.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.4068, allocations: 1.204 MB / 492.4 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.408, allocations: 183.2 kB / 492.6 MB, free: 15.93 MB / 350.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.01565/0.4236, allocations: 9.326 MB / 0.4901 GB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009627/0.4246, allocations: 1.227 MB / 0.4913 GB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009288/0.4256, allocations: 195.5 kB / 0.4915 GB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007032/0.4263, allocations: 0.55 MB / 0.492 GB, free: 4.125 MB / 350.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4263, allocations: 4 kB / 0.492 GB, free: 4.121 MB / 350.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).