Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation.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.ControlledGridWithReferenceCalculation,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculation",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.0009954/0.0009954, allocations: 99.16 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.001086/0.001086, allocations: 177.3 kB / 15.95 MB, free: 216 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.542/1.542, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05828/0.05828, allocations: 14.17 MB / 284.5 MB, free: 7.137 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.0005461/0.0005461, allocations: 14.66 kB / 348.9 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1257, allocations: 51.11 MB / 400 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation): time 0.01453/0.1402, allocations: 13.55 MB / 413.6 MB, free: 380 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01469/0.155, allocations: 6.434 MB / 420 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003755/0.1588, allocations: 71.5 kB / 420.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002653/0.1615, allocations: 0.559 MB / 420.6 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008256/0.1698, allocations: 2.276 MB / 422.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003982/0.1738, allocations: 1.129 MB / 424 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008742/0.1825, allocations: 3.403 MB / 427.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.184, allocations: 0.5855 MB / 428 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003325/0.1873, allocations: 1.327 MB / 429.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2609/0.4482, allocations: 1.362 MB / 430.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009342/0.4492, allocations: 95.75 kB / 430.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.4521, allocations: 455 kB / 431.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006187/0.4527, allocations: 390.8 kB / 431.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.4541, allocations: 0.534 MB / 432.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005857/0.46, allocations: 2.888 MB / 435.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.46, allocations: 0 / 435.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.46, allocations: 1.344 kB / 435.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001074/0.4601, allocations: 0 / 435.1 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01339/0.4735, allocations: 3.627 MB / 438.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.4736, allocations: 11.77 kB / 438.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008355/0.4744, allocations: 282 kB / 439 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001789/0.4762, allocations: 405.6 kB / 439.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003904/0.4801, allocations: 1.728 MB / 441.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.4803, allocations: 168.9 kB / 441.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003841/0.4807, allocations: 222.2 kB / 441.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004176/0.4849, allocations: 2.083 MB / 443.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.4849, allocations: 1.031 kB / 443.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.4851, allocations: 79.66 kB / 443.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.358e-05/0.4852, allocations: 52.94 kB / 443.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004021/0.4892, allocations: 1.968 MB / 445.7 MB, free: 11.84 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.01714/0.5064, allocations: 11.77 MB / 457.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004027/0.5104, allocations: 2.694 MB / 460.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.5106, allocations: 28.72 kB / 460.2 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.5106, allocations: 58.89 kB / 460.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 3.637e-06/0.5106, allocations: 0 / 460.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.0144/0.525, allocations: 5.591 MB / 465.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/0.5252, allocations: 178 kB / 466 MB, free: 380 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/0.5281, allocations: 1.778 MB / 467.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002879/0.5284, allocations: 63.17 kB / 467.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009276/0.5294, allocations: 1.099 MB / 468.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008628/0.5303, allocations: 0.6831 MB / 469.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.5304, allocations: 56.31 kB / 469.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002382/0.5306, allocations: 403.3 kB / 470.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/0.5325, allocations: 0.8546 MB / 470.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.5348, allocations: 1.491 MB / 472.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/0.5367, allocations: 1.039 MB / 473.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.5367, allocations: 4 kB / 473.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.009536/0.5463, allocations: 4.024 MB / 477.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002881/0.5492, allocations: 6.452 MB / 483.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.3e-05/0.5492, allocations: 16 kB / 483.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004726/0.554, allocations: 1.326 MB / 485.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/0.5566, allocations: 0.5452 MB / 485.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02673/0.5833, allocations: 20.84 MB / 0.4948 GB, free: 7.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003537/0.5869, allocations: 191.4 kB / 0.495 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003551/0.5873, allocations: 99.98 kB / 0.495 GB, free: 7.637 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5873, allocations: 8 kB / 0.4951 GB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005713/0.593, allocations: 2.719 MB / 0.4977 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.233e-05/0.5931, allocations: 16 kB / 0.4977 GB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002943/0.596, allocations: 0.7707 MB / 0.4985 GB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/0.5984, allocations: 0.6118 MB / 0.4991 GB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/0.613, allocations: 14.29 MB / 0.513 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00439/0.6174, allocations: 123.6 kB / 0.5132 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004771/0.6179, allocations: 104 kB / 0.5133 GB, free: 3.953 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): 2 * Torn equation systems: 9 * 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: 5 {(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 {6 32,1 1,1 1,3 7} Notification: Performance of prepare postOptimizeDAE: time 0.002089/0.62, allocations: 0.5587 MB / 0.5138 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006908/0.6207, allocations: 245 kB / 0.514 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004456/0.6252, allocations: 2.178 MB / 0.5162 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.085e-05/0.6252, allocations: 23.98 kB / 0.5162 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.6252, allocations: 8 kB / 0.5162 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.6253, allocations: 7.969 kB / 0.5162 GB, free: 0.9609 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.008402/0.6337, allocations: 4.506 MB / 0.5206 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.6337, allocations: 0 / 0.5206 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/0.6354, allocations: 362.7 kB / 0.5209 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.6368, allocations: 465.3 kB / 0.5214 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.637, allocations: 36 kB / 0.5214 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006177/0.6432, allocations: 3.713 MB / 0.525 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6432, allocations: 0 / 0.525 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006739/0.6499, allocations: 3.115 MB / 0.5281 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/0.6518, allocations: 457.9 kB / 0.5285 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003019/0.6522, allocations: 36 kB / 0.5286 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.6534, allocations: 103.9 kB / 0.5287 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/0.6538, allocations: 141 kB / 0.5288 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.473e-05/0.6539, allocations: 44 kB / 0.5288 GB, free: 3.828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001957/0.6558, allocations: 1.132 MB / 0.5299 GB, free: 2.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6558, allocations: 0 / 0.5299 GB, free: 2.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004813/0.6607, allocations: 1.176 MB / 0.5311 GB, free: 1.504 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 {(9,48.1%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006956/0.6676, allocations: 3.805 MB / 0.5348 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01355/0.6812, allocations: 6.545 MB / 0.5412 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.6813, allocations: 0 / 0.5412 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.6841, allocations: 1.237 MB / 0.5424 GB, free: 5.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.6867, allocations: 367.7 kB / 0.5428 GB, free: 5.414 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.0175/0.7042, allocations: 16.87 MB / 0.5592 GB, free: 4.211 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.706, allocations: 1.636 MB / 0.5608 GB, free: 2.535 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00243/0.7085, allocations: 353.3 kB / 0.5612 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.71, allocations: 0.9679 MB / 0.5621 GB, free: 1.219 MB / 430.1 MB Notification: Performance of SimCode: time 1.443e-06/0.71, allocations: 0 / 0.5621 GB, free: 1.219 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).