Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",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.0008871/0.0008871, allocations: 91.61 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.0009619/0.000962, 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.453/1.453, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06129/0.06129, allocations: 14.17 MB / 284.6 MB, free: 7.125 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.0008189/0.0008189, allocations: 20 kB / 349 MB, free: 17.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1144, allocations: 51.13 MB / 400.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01573/0.1302, allocations: 14.58 MB / 414.7 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01308/0.1433, allocations: 6.468 MB / 421.1 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003665/0.147, allocations: 71.56 kB / 421.2 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003101/0.1501, allocations: 0.6054 MB / 421.8 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007907/0.1581, allocations: 2.024 MB / 423.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003559/0.1617, allocations: 1.114 MB / 425 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007641/0.1693, allocations: 4.72 MB / 429.7 MB, free: 244 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2221/0.3914, allocations: 0.5781 MB / 430.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003223/0.3947, allocations: 1.261 MB / 431.5 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.398, allocations: 1.39 MB / 432.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005856/0.3986, allocations: 93.38 kB / 433 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.4009, allocations: 464.9 kB / 433.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005923/0.4015, allocations: 402.7 kB / 433.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001742/0.4032, allocations: 0.5368 MB / 434.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005862/0.4091, allocations: 2.913 MB / 437.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.4091, allocations: 0 / 437.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.089e-06/0.4092, allocations: 3.875 kB / 437.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001376/0.4093, allocations: 0 / 437.3 MB, free: 14.1 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01238/0.4217, allocations: 3.63 MB / 440.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/0.4218, allocations: 14.23 kB / 440.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008506/0.4226, allocations: 276.1 kB / 441.2 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.4247, allocations: 408.4 kB / 441.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006959/0.4316, allocations: 1.735 MB / 443.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003226/0.432, allocations: 169.2 kB / 443.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006687/0.4327, allocations: 218.1 kB / 443.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004719/0.4374, allocations: 2.094 MB / 445.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.14e-05/0.4375, allocations: 4.75 kB / 445.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001647/0.4377, allocations: 81.16 kB / 445.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.913e-05/0.4377, allocations: 48.97 kB / 445.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003919/0.4416, allocations: 1.967 MB / 447.9 MB, free: 11.66 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.0143/0.456, allocations: 11.68 MB / 459.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003557/0.4595, allocations: 2.683 MB / 462.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.4608, allocations: 0.8382 MB / 463.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.4609, allocations: 31.12 kB / 463.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.461, allocations: 53.78 kB / 463.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 4.017e-06/0.461, allocations: 0 / 463.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01286/0.4738, allocations: 5.722 MB / 468.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.474, allocations: 180.2 kB / 469.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002778/0.4768, allocations: 1.764 MB / 470.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002616/0.4771, allocations: 73.7 kB / 470.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009318/0.478, allocations: 1.091 MB / 472 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007883/0.4788, allocations: 0.6899 MB / 472.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.4789, allocations: 56 kB / 472.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.4792, allocations: 407.5 kB / 473.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.4809, allocations: 0.8546 MB / 474 MB, free: 10.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/0.483, allocations: 1.485 MB / 475.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/0.4849, allocations: 1.039 MB / 476.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.485, allocations: 4 kB / 476.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.009102/0.4941, allocations: 4.02 MB / 480.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004636/0.4946, allocations: 0.5598 MB / 481.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.961e-05/0.4946, allocations: 21.64 kB / 481.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007844/0.5025, allocations: 1.7 MB / 482.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/0.5049, allocations: 0.54 MB / 483.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02472/0.5296, allocations: 20.31 MB / 0.4919 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/0.5325, allocations: 195.2 kB / 0.4921 GB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.5327, allocations: 112 kB / 0.4922 GB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.5327, allocations: 7.938 kB / 0.4922 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00517/0.5379, allocations: 2.719 MB / 0.4948 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.587e-05/0.538, allocations: 17.02 kB / 0.4949 GB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005879/0.5438, allocations: 1.278 MB / 0.4961 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.5466, allocations: 0.6152 MB / 0.4967 GB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/0.561, allocations: 15.26 MB / 0.5116 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00309/0.5641, allocations: 119.6 kB / 0.5117 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/0.5644, allocations: 108 kB / 0.5118 GB, free: 5.641 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 5 (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 (287): * Single equations (assignments): 276 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(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,10 0} Notification: Performance of prepare postOptimizeDAE: time 0.001987/0.5664, allocations: 0.5556 MB / 0.5124 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007484/0.5672, allocations: 249 kB / 0.5126 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.5714, allocations: 2.174 MB / 0.5147 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.5714, allocations: 20 kB / 0.5148 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.5714, allocations: 8 kB / 0.5148 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/0.5714, allocations: 11.97 kB / 0.5148 GB, free: 2.652 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.007209/0.5786, allocations: 4.508 MB / 0.5192 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.5787, allocations: 4 kB / 0.5192 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.5802, allocations: 354.1 kB / 0.5195 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.5812, allocations: 288.5 kB / 0.5198 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.5813, allocations: 39.98 kB / 0.5198 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006019/0.5874, allocations: 3.824 MB / 0.5236 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5874, allocations: 0 / 0.5236 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005866/0.5933, allocations: 3.105 MB / 0.5266 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.5946, allocations: 461.9 kB / 0.527 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/0.5948, allocations: 36 kB / 0.5271 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.596, allocations: 115.7 kB / 0.5272 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002777/0.5963, allocations: 133.8 kB / 0.5273 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.915e-05/0.5964, allocations: 47.98 kB / 0.5274 GB, free: 5.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001665/0.598, allocations: 1.128 MB / 0.5285 GB, free: 4.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.598, allocations: 0 / 0.5285 GB, free: 4.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003423/0.6015, allocations: 1.133 MB / 0.5296 GB, free: 3.289 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 161 * 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.005671/0.6071, allocations: 3.82 MB / 0.5333 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0127/0.6199, allocations: 7.363 MB / 0.5405 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/0.6199, allocations: 4 kB / 0.5405 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003275/0.6232, allocations: 1.531 MB / 0.542 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.6256, allocations: 380.9 kB / 0.5423 GB, free: 5.984 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.03251/0.6581, allocations: 16.73 MB / 0.5587 GB, free: 4.012 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.6597, allocations: 1.613 MB / 0.5603 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00232/0.6621, allocations: 349.3 kB / 0.5606 GB, free: 2.016 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001502/0.6636, allocations: 0.964 MB / 0.5615 GB, free: 1.051 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6636, allocations: 0 / 0.5615 GB, free: 1.051 MB / 430.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).