Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS.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.ControlledGridWithPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithPSS",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.001092/0.001092, allocations: 99.86 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.0009346/0.0009349, 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.516/1.516, allocations: 205.4 MB / 222.1 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.05789/0.05789, allocations: 14.16 MB / 284.5 MB, free: 7.156 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.0005885/0.0005887, allocations: 16 kB / 348.9 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1103, allocations: 51.11 MB / 400 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS): time 0.01399/0.1243, allocations: 13.56 MB / 413.6 MB, free: 360 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.1368, allocations: 6.419 MB / 420 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003453/0.1403, allocations: 71.5 kB / 420.1 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002541/0.1429, allocations: 0.5512 MB / 420.6 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007935/0.1508, allocations: 2.261 MB / 422.9 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00372/0.1546, allocations: 1.147 MB / 424 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008743/0.1633, allocations: 3.37 MB / 427.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.1646, allocations: 0.5812 MB / 428 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003037/0.1677, allocations: 1.323 MB / 429.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2453/0.413, allocations: 1.355 MB / 430.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009252/0.414, allocations: 90.91 kB / 430.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002656/0.4167, allocations: 448.9 kB / 431.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005182/0.4172, allocations: 387.6 kB / 431.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.4182, allocations: 0.5357 MB / 432.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005104/0.4234, allocations: 2.88 MB / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4234, allocations: 2.469 kB / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4234, allocations: 3.25 kB / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.009e-05/0.4234, allocations: 3.094 kB / 435 MB, free: 14.21 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01168/0.4351, allocations: 3.663 MB / 438.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.4352, allocations: 11.19 kB / 438.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004636/0.4357, allocations: 277.6 kB / 438.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/0.4372, allocations: 429 kB / 439.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.4406, allocations: 1.717 MB / 441.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.4407, allocations: 162.1 kB / 441.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003764/0.4411, allocations: 220.7 kB / 441.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003989/0.4451, allocations: 2.104 MB / 443.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.4452, allocations: 4.531 kB / 443.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/0.4453, allocations: 81.59 kB / 443.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.515e-05/0.4454, allocations: 49 kB / 443.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003874/0.4493, allocations: 1.984 MB / 445.7 MB, free: 11.81 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.01536/0.4647, allocations: 11.69 MB / 457.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004138/0.4688, allocations: 2.776 MB / 460.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.469, allocations: 27.12 kB / 460.2 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001728/0.4707, allocations: 1.113 MB / 461.3 MB, free: 1.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=209): time 5.119e-06/0.4707, allocations: 0 / 461.3 MB, free: 1.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=210): time 0.01605/0.4868, allocations: 6.377 MB / 467.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/0.4871, allocations: 371.9 kB / 468 MB, free: 15.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.4899, allocations: 1.684 MB / 469.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000253/0.4902, allocations: 74.2 kB / 469.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009913/0.4912, allocations: 1.053 MB / 470.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008941/0.4921, allocations: 0.7249 MB / 471.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.4923, allocations: 55.47 kB / 471.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002352/0.4925, allocations: 411.4 kB / 472 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.4942, allocations: 0.8251 MB / 472.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/0.4963, allocations: 1.362 MB / 474.2 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00232/0.4986, allocations: 1.059 MB / 475.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.4986, allocations: 4 kB / 475.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.01007/0.5087, allocations: 3.737 MB / 479 MB, free: 5.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002574/0.5113, allocations: 4.875 MB / 483.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/0.5114, allocations: 12 kB / 483.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/0.5163, allocations: 1.223 MB / 485.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/0.5189, allocations: 0.5166 MB / 485.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02748/0.5464, allocations: 21.14 MB / 0.4949 GB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003255/0.5497, allocations: 167.6 kB / 0.495 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/0.5499, allocations: 95.98 kB / 0.4951 GB, free: 7.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.5499, allocations: 4 kB / 0.4951 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006007/0.5559, allocations: 2.848 MB / 0.4979 GB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/0.556, allocations: 12 kB / 0.4979 GB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003378/0.5594, allocations: 0.9037 MB / 0.4988 GB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/0.5617, allocations: 0.5254 MB / 0.4993 GB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01747/0.5792, allocations: 16.54 MB / 0.5155 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003364/0.5826, allocations: 115.7 kB / 0.5156 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/0.5829, allocations: 99.97 kB / 0.5157 GB, free: 1.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,PSS.firstWashoutVsi2.integrator.local_reset,PSS.secondWashoutVsi1.integrator.local_reset,PSS.firstWashoutVsi1.integrator.local_reset,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 (282): * Single equations (assignments): 268 * 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: 10 * 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: 6 {(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 4 {5 33,1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002098/0.585, allocations: 0.6173 MB / 0.5163 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008301/0.5859, allocations: 249 kB / 0.5165 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005228/0.5911, allocations: 2.405 MB / 0.5189 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.398e-05/0.5912, allocations: 27.27 kB / 0.5189 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.5912, allocations: 7.953 kB / 0.5189 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.277e-05/0.5912, allocations: 11.95 kB / 0.5189 GB, free: 13.82 MB / 398.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.009439/0.6007, allocations: 4.818 MB / 0.5236 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.106e-06/0.6007, allocations: 0 / 0.5236 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/0.6024, allocations: 361.6 kB / 0.524 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.6039, allocations: 0.4925 MB / 0.5245 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.6041, allocations: 44 kB / 0.5245 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006153/0.6102, allocations: 3.886 MB / 0.5283 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6102, allocations: 0 / 0.5283 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006873/0.6171, allocations: 3.41 MB / 0.5316 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/0.6188, allocations: 465.9 kB / 0.5321 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003324/0.6191, allocations: 47.95 kB / 0.5321 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.6205, allocations: 115.9 kB / 0.5322 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003468/0.6208, allocations: 145.5 kB / 0.5324 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.621, allocations: 52 kB / 0.5324 GB, free: 15.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001929/0.6229, allocations: 1.087 MB / 0.5335 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6229, allocations: 0 / 0.5335 GB, free: 14.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005699/0.6286, allocations: 1.191 MB / 0.5346 GB, free: 13.5 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (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,PSS.firstWashoutVsi1.integrator.y,PSS.secondWashoutVsi1.integrator.y,PSS.firstWashoutVsi2.integrator.y,PSS.leadLag1.firstOrder.y,PSS.leadLag2.firstOrder.y,PSS.firstOrderVsi2.firstOrder1.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 (170): * Single equations (assignments): 167 * 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.00719/0.6358, allocations: 4.108 MB / 0.5386 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0128/0.6487, allocations: 6.966 MB / 0.5455 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.6487, allocations: 0.5625 kB / 0.5455 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002839/0.6516, allocations: 1.439 MB / 0.5469 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.6542, allocations: 358.6 kB / 0.5472 GB, free: 380 kB / 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.01511/0.6694, allocations: 14.15 MB / 0.561 GB, free: 1.934 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/0.6709, allocations: 1.645 MB / 0.5626 GB, free: 256 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002065/0.673, allocations: 332.8 kB / 0.5629 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.6743, allocations: 0.9679 MB / 0.5639 GB, free: 14.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6743, allocations: 7 kB / 0.5639 GB, free: 14.95 MB / 446.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).