Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid,fileNamePrefix="PowerGrids_symb_jac_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.0008151/0.000815, allocations: 88.17 kB / 15.71 MB, free: 452 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.001048/0.001048, allocations: 175.6 kB / 16.59 MB, free: 6.855 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.767/1.767, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.07237/0.07237, allocations: 14.16 MB / 285.2 MB, free: 7.141 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.0005509/0.000551, allocations: 14.66 kB / 349.6 MB, free: 17.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1242, allocations: 51.11 MB / 400.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGrid): time 0.0121/0.1363, allocations: 11.14 MB / 411.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.1472, allocations: 5.077 MB / 417 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.1497, allocations: 31.88 kB / 417 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002188/0.1519, allocations: 477.4 kB / 417.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007476/0.1595, allocations: 1.84 MB / 419.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.1622, allocations: 0.7126 MB / 420 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007104/0.1693, allocations: 3.542 MB / 423.5 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009065/0.1703, allocations: 217.4 kB / 423.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.1728, allocations: 0.9449 MB / 424.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/0.1753, allocations: 1.046 MB / 425.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005894/0.1759, allocations: 64 kB / 425.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.1782, allocations: 431.7 kB / 426.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005827/0.1789, allocations: 254.6 kB / 426.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.1801, allocations: 372.8 kB / 426.8 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003674/0.1838, allocations: 1.874 MB / 428.7 MB, free: 1.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1838, allocations: 3.938 kB / 428.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1838, allocations: 0 / 428.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.82e-05/0.1839, allocations: 0 / 428.7 MB, free: 1.832 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.2801/0.464, allocations: 2.633 MB / 431.4 MB, free: 35.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.4641, allocations: 13.02 kB / 431.4 MB, free: 35.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006566/0.4647, allocations: 187.4 kB / 431.6 MB, free: 35.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.466, allocations: 282.8 kB / 431.8 MB, free: 35.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.4682, allocations: 1.087 MB / 432.9 MB, free: 35.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.4683, allocations: 105.2 kB / 433 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.4685, allocations: 146.9 kB / 433.2 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.4712, allocations: 1.267 MB / 434.4 MB, free: 35.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.4712, allocations: 1.156 kB / 434.4 MB, free: 35.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.4713, allocations: 51.59 kB / 434.5 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.4714, allocations: 31.09 kB / 434.5 MB, free: 35.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.4739, allocations: 1.296 MB / 435.8 MB, free: 34.61 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.01149/0.4854, allocations: 8.377 MB / 444.2 MB, free: 27.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.4879, allocations: 2.076 MB / 446.3 MB, free: 26.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009153/0.4888, allocations: 0.5018 MB / 446.8 MB, free: 26.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.4889, allocations: 23.59 kB / 446.8 MB, free: 26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.489, allocations: 52.83 kB / 446.8 MB, free: 25.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 4.819e-06/0.489, allocations: 0 / 446.8 MB, free: 25.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01136/0.5004, allocations: 4.231 MB / 451.1 MB, free: 23.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.5005, allocations: 69.28 kB / 451.1 MB, free: 23.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.5022, allocations: 1.08 MB / 452.2 MB, free: 23.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.65e-05/0.5023, allocations: 55.2 kB / 452.3 MB, free: 23.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.5027, allocations: 0.6792 MB / 452.9 MB, free: 22.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/0.5031, allocations: 0.4963 MB / 453.4 MB, free: 22.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.908e-05/0.5032, allocations: 40.75 kB / 453.5 MB, free: 22.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.5033, allocations: 382.9 kB / 453.9 MB, free: 21.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.5044, allocations: 0.5501 MB / 454.4 MB, free: 21.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.5057, allocations: 1.006 MB / 455.4 MB, free: 20.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.507, allocations: 0.7149 MB / 456.1 MB, free: 20.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/0.507, allocations: 3.938 kB / 456.1 MB, free: 20.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.004369/0.5114, allocations: 2.334 MB / 458.5 MB, free: 18.95 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.5114, allocations: 10.19 kB / 458.5 MB, free: 18.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.111e-05/0.5115, allocations: 21.52 kB / 458.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005339/0.5168, allocations: 1.2 MB / 459.7 MB, free: 18.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/0.5187, allocations: 468.5 kB / 460.2 MB, free: 18.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.5293, allocations: 12.48 MB / 472.6 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.5315, allocations: 123.3 kB / 472.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/0.5319, allocations: 83.5 kB / 472.8 MB, free: 4.793 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.001191/0.5331, allocations: 357.5 kB / 473.2 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006381/0.5337, allocations: 159.4 kB / 473.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/0.5366, allocations: 1.529 MB / 474.9 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.5366, allocations: 12 kB / 474.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.5367, allocations: 4 kB / 474.9 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.5367, allocations: 11.97 kB / 474.9 MB, free: 2.703 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.005481/0.5422, allocations: 3.149 MB / 478 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.5422, allocations: 0 / 478 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.5433, allocations: 243.7 kB / 478.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.5444, allocations: 292.4 kB / 478.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.942e-05/0.5445, allocations: 23.98 kB / 478.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/0.551, allocations: 3.819 MB / 482.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/0.551, allocations: 4 kB / 482.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02634/0.5774, allocations: 13.12 MB / 495.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.5785, allocations: 315.1 kB / 495.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004259/0.5789, allocations: 20 kB / 495.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.5801, allocations: 55.73 kB / 495.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/0.5804, allocations: 89.19 kB / 496 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.837e-05/0.5805, allocations: 32 kB / 496 MB, free: 13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.5817, allocations: 0.6845 MB / 496.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.5818, allocations: 0 / 496.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003133/0.5849, allocations: 0.6964 MB / 497.4 MB, free: 11.62 MB / 350.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.004913/0.5898, allocations: 2.808 MB / 0.4885 GB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00592/0.5958, allocations: 2.741 MB / 0.4912 GB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5958, allocations: 0 / 0.4912 GB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002919/0.5987, allocations: 1.207 MB / 0.4924 GB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.601, allocations: 184.7 kB / 0.4925 GB, free: 4.547 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.02554/0.6266, allocations: 10.81 MB / 0.5031 GB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001561/0.6282, allocations: 1.283 MB / 0.5043 GB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.6294, allocations: 199.5 kB / 0.5045 GB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.6305, allocations: 0.55 MB / 0.5051 GB, free: 7.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.843e-06/0.6305, allocations: 0 / 0.5051 GB, free: 7.18 MB / 366.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).