Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange.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.ControlledGridParametersChange,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridParametersChange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridParametersChange",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.0007695/0.0007695, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.00086/0.00086, allocations: 172.7 kB / 15.95 MB, free: 208 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.455/1.455, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06259/0.06259, allocations: 14.17 MB / 284.6 MB, free: 7.129 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.0005234/0.0005235, allocations: 22.81 kB / 349 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1014, allocations: 51.12 MB / 400.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange): time 0.01409/0.1156, allocations: 14.61 MB / 414.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.127, allocations: 6.437 MB / 421.1 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00268/0.1297, allocations: 75.5 kB / 421.2 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.1318, allocations: 0.6054 MB / 421.8 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006707/0.1385, allocations: 2.021 MB / 423.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00325/0.1418, allocations: 1.119 MB / 425 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007232/0.1491, allocations: 4.7 MB / 429.7 MB, free: 256 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2012/0.3503, allocations: 0.5665 MB / 430.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002833/0.3532, allocations: 1.255 MB / 431.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.3559, allocations: 1.38 MB / 432.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004727/0.3564, allocations: 92.09 kB / 433 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002084/0.3585, allocations: 457 kB / 433.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005004/0.359, allocations: 389.6 kB / 433.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.3602, allocations: 0.5447 MB / 434.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00487/0.3651, allocations: 2.912 MB / 437.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3652, allocations: 0 / 437.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3652, allocations: 0 / 437.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001349/0.3653, allocations: 0 / 437.2 MB, free: 14.12 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.01186/0.3772, allocations: 3.666 MB / 440.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.888e-05/0.3773, allocations: 11.91 kB / 440.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007955/0.3781, allocations: 283.2 kB / 441.2 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001973/0.38, allocations: 425.9 kB / 441.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004255/0.3843, allocations: 1.715 MB / 443.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.3845, allocations: 165.3 kB / 443.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003955/0.3849, allocations: 225.4 kB / 443.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/0.389, allocations: 2.125 MB / 445.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/0.3891, allocations: 1.5 kB / 445.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001627/0.3892, allocations: 89.62 kB / 445.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.195e-05/0.3893, allocations: 53.17 kB / 446 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003993/0.3933, allocations: 1.979 MB / 448 MB, free: 11.67 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.01465/0.408, allocations: 11.58 MB / 459.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/0.4119, allocations: 2.768 MB / 462.3 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.4137, allocations: 0.8815 MB / 463.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.4138, allocations: 33.7 kB / 463.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001789/0.4156, allocations: 1.12 MB / 464.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=209): time 6.162e-06/0.4156, allocations: 0 / 464.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=210): time 0.01698/0.4326, allocations: 6.319 MB / 470.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002135/0.4329, allocations: 368.1 kB / 471 MB, free: 13.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/0.4363, allocations: 1.698 MB / 472.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003507/0.4366, allocations: 69.7 kB / 472.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001201/0.4379, allocations: 1.055 MB / 473.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/0.4389, allocations: 0.7218 MB / 474.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.4392, allocations: 52 kB / 474.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002485/0.4395, allocations: 411.3 kB / 475 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001898/0.4414, allocations: 0.8251 MB / 475.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00236/0.4438, allocations: 1.377 MB / 477.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.4465, allocations: 1.058 MB / 478.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.561e-05/0.4465, allocations: 4 kB / 478.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.009443/0.456, allocations: 3.733 MB / 482 MB, free: 2.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004514/0.4564, allocations: 0.4945 MB / 482.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.4565, allocations: 12 kB / 482.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007957/0.4645, allocations: 1.631 MB / 484.1 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002437/0.4669, allocations: 0.5245 MB / 484.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02583/0.4928, allocations: 20.84 MB / 0.4937 GB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003232/0.4961, allocations: 171.5 kB / 0.4938 GB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006021/0.4967, allocations: 95.98 kB / 0.4939 GB, free: 9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.4967, allocations: 4 kB / 0.4939 GB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007754/0.5045, allocations: 2.85 MB / 0.4967 GB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/0.5046, allocations: 18.83 kB / 0.4967 GB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007087/0.5117, allocations: 1.455 MB / 0.4981 GB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/0.5141, allocations: 0.5258 MB / 0.4987 GB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/0.5331, allocations: 17.56 MB / 0.5158 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/0.536, allocations: 115.7 kB / 0.5159 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000546/0.5366, allocations: 95.98 kB / 0.516 GB, free: 1.012 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): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,66.7%) 0,(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0,(3,66.7%) 0,(3,66.7%) 0} * Non-linear torn systems: 6 {38 0,2 0,2 0,2 0,2 0,4 0} Notification: Performance of prepare postOptimizeDAE: time 0.002108/0.5387, allocations: 0.628 MB / 0.5166 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000885/0.5396, allocations: 253 kB / 0.5169 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005539/0.5452, allocations: 2.389 MB / 0.5192 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.5452, allocations: 20 kB / 0.5192 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.5453, allocations: 8 kB / 0.5192 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.5453, allocations: 11.95 kB / 0.5192 GB, free: 13.73 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.009595/0.5549, allocations: 4.835 MB / 0.524 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/0.5549, allocations: 4 kB / 0.524 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.5566, allocations: 364.6 kB / 0.5243 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.5577, allocations: 308.5 kB / 0.5246 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/0.5579, allocations: 40 kB / 0.5246 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007467/0.5654, allocations: 4.003 MB / 0.5286 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5654, allocations: 4 kB / 0.5286 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007779/0.5732, allocations: 3.411 MB / 0.5319 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/0.5755, allocations: 469.9 kB / 0.5323 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009887/0.5765, allocations: 48 kB / 0.5324 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/0.5786, allocations: 114.2 kB / 0.5325 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.5789, allocations: 141.8 kB / 0.5326 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.579, allocations: 55.98 kB / 0.5327 GB, free: 15.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002573/0.5816, allocations: 1.087 MB / 0.5337 GB, free: 14.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5816, allocations: 0 / 0.5337 GB, free: 14.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005194/0.5868, allocations: 1.152 MB / 0.5349 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 {(38,7.8%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006571/0.5934, allocations: 4.119 MB / 0.5389 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01388/0.6073, allocations: 7.919 MB / 0.5466 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.6073, allocations: 0 / 0.5466 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003343/0.6107, allocations: 1.748 MB / 0.5483 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002936/0.6136, allocations: 388.2 kB / 0.5487 GB, free: 15.05 MB / 430.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.03179/0.6454, allocations: 16.32 MB / 0.5646 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/0.647, allocations: 1.629 MB / 0.5662 GB, free: 11.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002004/0.649, allocations: 332.8 kB / 0.5665 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.6504, allocations: 0.9718 MB / 0.5675 GB, free: 10.58 MB / 446.1 MB Notification: Performance of SimCode: time 2.795e-06/0.6505, allocations: 0 / 0.5675 GB, free: 10.58 MB / 446.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).