Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_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.0009994/0.0009995, 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.001137/0.001137, allocations: 177.3 kB / 15.94 MB, free: 228 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.501/1.501, allocations: 205.4 MB / 222.1 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05859/0.0586, allocations: 14.16 MB / 284.5 MB, free: 7.02 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.0005835/0.0005837, allocations: 16 kB / 348.9 MB, free: 17.11 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1078, allocations: 51.11 MB / 400 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS): time 0.01124/0.1191, allocations: 11.79 MB / 411.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1294, allocations: 5.679 MB / 417.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002196/0.1316, allocations: 39.81 kB / 417.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.1332, allocations: 0.5126 MB / 418.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006349/0.1396, allocations: 2.092 MB / 420.1 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002468/0.1421, allocations: 0.9531 MB / 421.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007181/0.1493, allocations: 2.996 MB / 424.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007716/0.1501, allocations: 391.1 kB / 424.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.1527, allocations: 1.144 MB / 425.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.1545, allocations: 1.206 MB / 426.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002185/0.1548, allocations: 84 kB / 426.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.1561, allocations: 439.6 kB / 427.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.1564, allocations: 326.4 kB / 427.7 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007174/0.1572, allocations: 468.5 kB / 428.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2158/0.373, allocations: 2.366 MB / 430.5 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3731, allocations: 0 / 430.5 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3731, allocations: 1.25 kB / 430.5 MB, free: 16.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001384/0.3732, allocations: 0 / 430.5 MB, free: 16.14 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.01226/0.3855, allocations: 3.218 MB / 433.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.3855, allocations: 10.48 kB / 433.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000709/0.3863, allocations: 234.7 kB / 433.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001702/0.388, allocations: 365.8 kB / 434.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.3911, allocations: 1.382 MB / 435.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.3913, allocations: 136.9 kB / 435.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000306/0.3916, allocations: 186.9 kB / 436 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003295/0.3949, allocations: 1.738 MB / 437.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.3949, allocations: 1.469 kB / 437.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001405/0.3951, allocations: 71.03 kB / 437.8 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.3951, allocations: 41.94 kB / 437.8 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003225/0.3984, allocations: 1.731 MB / 439.6 MB, free: 14.07 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.01279/0.4112, allocations: 10.08 MB / 449.7 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003259/0.4144, allocations: 2.536 MB / 452.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.602e-05/0.4146, allocations: 29.27 kB / 452.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001476/0.4161, allocations: 0.9944 MB / 453.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=184): time 5.711e-06/0.4161, allocations: 1.031 kB / 453.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01447/0.4305, allocations: 5.83 MB / 459 MB, free: 4.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.73e-05/0.4307, allocations: 341.2 kB / 459.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002015/0.4327, allocations: 1.354 MB / 460.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002196/0.4329, allocations: 63.73 kB / 460.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007205/0.4337, allocations: 0.8193 MB / 461.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005285/0.4342, allocations: 0.6384 MB / 462.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.4344, allocations: 44.69 kB / 462.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.4345, allocations: 397 kB / 462.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.4358, allocations: 0.7402 MB / 463.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.4373, allocations: 1.185 MB / 464.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.4391, allocations: 0.9364 MB / 465.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.4392, allocations: 7.688 kB / 465.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007401/0.4466, allocations: 3.361 MB / 468.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001918/0.4485, allocations: 4.137 MB / 473.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.4486, allocations: 15.95 kB / 473.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004206/0.4528, allocations: 1.155 MB / 474.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.4551, allocations: 471.9 kB / 474.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02448/0.4796, allocations: 18.34 MB / 493 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/0.4822, allocations: 149.8 kB / 493.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004082/0.4826, allocations: 87.98 kB / 493.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.4826, allocations: 4 kB / 493.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005987/0.4886, allocations: 2.55 MB / 495.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-05/0.4887, allocations: 14.94 kB / 495.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003133/0.4918, allocations: 0.815 MB / 496.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002027/0.4939, allocations: 479.9 kB / 497.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/0.5098, allocations: 13.77 MB / 0.4989 GB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002463/0.5123, allocations: 103.6 kB / 0.499 GB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004487/0.5128, allocations: 87.98 kB / 0.4991 GB, free: 2.492 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.001975/0.5148, allocations: 0.55 MB / 0.4996 GB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008714/0.5156, allocations: 197.7 kB / 0.4998 GB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005137/0.5208, allocations: 2.151 MB / 0.5019 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.5208, allocations: 20 kB / 0.5019 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.498e-05/0.5209, allocations: 8 kB / 0.5019 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.54e-05/0.5209, allocations: 11.97 kB / 0.5019 GB, free: 15.55 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.008722/0.5296, allocations: 4.274 MB / 0.5061 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.5297, allocations: 0 / 0.5061 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.5311, allocations: 316.7 kB / 0.5064 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.5327, allocations: 492.5 kB / 0.5069 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/0.5328, allocations: 44.42 kB / 0.5069 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006321/0.5391, allocations: 3.885 MB / 0.5107 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5392, allocations: 0 / 0.5107 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005986/0.5452, allocations: 3.034 MB / 0.5137 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/0.5465, allocations: 406.5 kB / 0.5141 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005569/0.5471, allocations: 36 kB / 0.5141 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.5486, allocations: 100.1 kB / 0.5142 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.549, allocations: 128.5 kB / 0.5143 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.5491, allocations: 47.98 kB / 0.5144 GB, free: 2.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001643/0.5508, allocations: 0.8688 MB / 0.5152 GB, free: 1.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5508, allocations: 3.938 kB / 0.5152 GB, free: 1.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004921/0.5557, allocations: 1.082 MB / 0.5163 GB, free: 0.6602 MB / 382.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.006382/0.5621, allocations: 3.737 MB / 0.5199 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01128/0.5734, allocations: 6.089 MB / 0.5259 GB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.5735, allocations: 0 / 0.5259 GB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.5761, allocations: 1.326 MB / 0.5272 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.5781, allocations: 247.7 kB / 0.5274 GB, free: 5.055 MB / 398.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.01406/0.5922, allocations: 11.91 MB / 0.539 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001654/0.5939, allocations: 1.45 MB / 0.5405 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.5959, allocations: 282.2 kB / 0.5407 GB, free: 7.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.597, allocations: 0.7648 MB / 0.5415 GB, free: 6.363 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5971, allocations: 7.938 kB / 0.5415 GB, free: 6.355 MB / 414.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).