Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS.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.Controlled.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",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.001/0.0009998, allocations: 97.52 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.001347/0.001347, allocations: 175.9 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.55/1.55, 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.06/0.06, allocations: 14.17 MB / 285.2 MB, free: 7.145 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.0005157/0.0005158, allocations: 12 kB / 349.6 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 51.12 MB / 400.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS): time 0.01229/0.1243, allocations: 11.79 MB / 412.5 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1353, allocations: 5.683 MB / 418.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.1379, allocations: 43.81 kB / 418.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.1399, allocations: 0.497 MB / 418.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006887/0.1468, allocations: 2.108 MB / 420.8 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003058/0.1498, allocations: 0.9502 MB / 421.7 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006444/0.1563, allocations: 2.992 MB / 424.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.1571, allocations: 395.1 kB / 425.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002657/0.1597, allocations: 1.148 MB / 426.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00205/0.1618, allocations: 1.202 MB / 427.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.162, allocations: 80 kB / 427.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001684/0.1637, allocations: 439.6 kB / 428 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003093/0.164, allocations: 326.4 kB / 428.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006991/0.1647, allocations: 464.5 kB / 428.7 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.231/0.3957, allocations: 2.373 MB / 431.1 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3958, allocations: 0.875 kB / 431.1 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3958, allocations: 0 / 431.1 MB, free: 16.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001279/0.3959, allocations: 1.312 kB / 431.1 MB, free: 16.15 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: 418 * Number of variables: 418 Notification: Performance of Generate backend data structure: time 0.01172/0.4077, allocations: 3.215 MB / 434.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.4077, allocations: 8.938 kB / 434.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006464/0.4084, allocations: 237.8 kB / 434.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.41, allocations: 358.6 kB / 434.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/0.4132, allocations: 1.39 MB / 436.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.4133, allocations: 136.4 kB / 436.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002922/0.4136, allocations: 186.6 kB / 436.6 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003327/0.4169, allocations: 1.739 MB / 438.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.417, allocations: 1.094 kB / 438.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.4171, allocations: 68.47 kB / 438.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.952e-05/0.4172, allocations: 41.02 kB / 438.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.4204, allocations: 1.732 MB / 440.2 MB, free: 14.09 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.01275/0.4331, allocations: 10.08 MB / 450.3 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003655/0.4368, allocations: 2.537 MB / 452.8 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.437, allocations: 25.06 kB / 452.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001632/0.4386, allocations: 1 MB / 453.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=184): time 3.877e-06/0.4386, allocations: 0 / 453.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01419/0.4528, allocations: 5.833 MB / 459.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.453, allocations: 339.4 kB / 460 MB, free: 4.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.4548, allocations: 1.352 MB / 461.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.455, allocations: 70.66 kB / 461.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005698/0.4556, allocations: 0.8192 MB / 462.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004504/0.456, allocations: 0.6367 MB / 462.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.4561, allocations: 44.75 kB / 462.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4562, allocations: 396.4 kB / 463.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.4575, allocations: 0.737 MB / 464.1 MB, free: 2.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.4589, allocations: 1.185 MB / 465.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.4604, allocations: 0.9354 MB / 466.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4604, allocations: 2.281 kB / 466.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007134/0.4675, allocations: 3.371 MB / 469.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002006/0.4696, allocations: 4.134 MB / 473.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/0.4696, allocations: 19.95 kB / 473.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/0.4738, allocations: 1.161 MB / 474.9 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/0.4759, allocations: 463.1 kB / 475.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02321/0.4991, allocations: 18.34 MB / 493.7 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/0.5017, allocations: 151.6 kB / 493.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.5019, allocations: 87.98 kB / 493.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.502, allocations: 4 kB / 493.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005368/0.5073, allocations: 2.547 MB / 496.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.5074, allocations: 12 kB / 496.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003085/0.5105, allocations: 0.8239 MB / 497.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/0.5124, allocations: 486 kB / 497.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/0.5267, allocations: 13.75 MB / 0.4995 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/0.5289, allocations: 111.6 kB / 0.4996 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.5291, allocations: 83.98 kB / 0.4997 GB, free: 2.508 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,AVR.firstOrderLim.I.local_reset,TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {5 33,1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001102/0.5302, allocations: 0.5603 MB / 0.5003 GB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/0.5305, allocations: 197.7 kB / 0.5004 GB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004053/0.5346, allocations: 2.151 MB / 0.5025 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.5346, allocations: 16 kB / 0.5026 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.5346, allocations: 12 kB / 0.5026 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.5346, allocations: 7.969 kB / 0.5026 GB, free: 15.56 MB / 382.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.006697/0.5413, allocations: 4.274 MB / 0.5068 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.5413, allocations: 0 / 0.5068 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.5428, allocations: 317 kB / 0.5071 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.5443, allocations: 492.5 kB / 0.5075 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5444, allocations: 32 kB / 0.5076 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005966/0.5503, allocations: 3.89 MB / 0.5114 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5504, allocations: 0 / 0.5114 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04041/0.5908, allocations: 19.56 MB / 0.5305 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008474/0.5917, allocations: 402.6 kB / 0.5308 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.5919, allocations: 39.98 kB / 0.5309 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.5931, allocations: 107.6 kB / 0.531 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/0.5934, allocations: 122.4 kB / 0.5311 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.013e-05/0.5935, allocations: 51.98 kB / 0.5311 GB, free: 1.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00129/0.5948, allocations: 0.8688 MB / 0.532 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.112e-06/0.5948, allocations: 0 / 0.532 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004852/0.5997, allocations: 1.549 MB / 0.5335 GB, free: 15.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu,TGOV.firstOrderLim.I.y,TGOV.leadLag.firstOrder.y,AVR.leadLag.firstOrder.y,AVR.firstOrderLim.I.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,NTHV.Y.re,NTHV.Y.im,NTHV.fault) * Number of discrete states: 7 ($whenCondition4,NTHV.Y.im,NTHV.Y.re,$whenCondition3,NTHV.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 2 * 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 {(9,48.1%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00591/0.6056, allocations: 3.73 MB / 0.5372 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01044/0.6161, allocations: 6.089 MB / 0.5431 GB, free: 5.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6161, allocations: 192 / 0.5431 GB, free: 5.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.6185, allocations: 1.328 MB / 0.5444 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.6203, allocations: 251.6 kB / 0.5446 GB, free: 3.82 MB / 414.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.01441/0.6347, allocations: 13.39 MB / 0.5577 GB, free: 6.145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.636, allocations: 1.522 MB / 0.5592 GB, free: 4.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00172/0.6377, allocations: 286 kB / 0.5595 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/0.6388, allocations: 0.7648 MB / 0.5602 GB, free: 3.535 MB / 430.1 MB Notification: Performance of SimCode: time 1.402e-06/0.6388, allocations: 2.844 kB / 0.5602 GB, free: 3.535 MB / 430.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).