Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation,fileNamePrefix="PowerGrids_symb_jac_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.001151/0.001151, allocations: 88.17 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.00153, allocations: 176 kB / 16.59 MB, free: 6.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.4 MB / 222.8 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06564/0.06564, allocations: 14.17 MB / 285.2 MB, free: 7.145 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.0005696/0.0005696, allocations: 16 kB / 349.6 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1169, allocations: 51.12 MB / 400.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation): time 0.01707/0.134, allocations: 14.58 MB / 415.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.1481, allocations: 6.46 MB / 421.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003541/0.1516, allocations: 75.56 kB / 421.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002748/0.1544, allocations: 0.6015 MB / 422.5 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007827/0.1623, allocations: 2.017 MB / 424.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003643/0.1659, allocations: 1.117 MB / 425.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008288/0.1742, allocations: 4.724 MB / 430.3 MB, free: 264 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2411/0.4154, allocations: 0.574 MB / 430.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003163/0.4186, allocations: 1.268 MB / 432.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004078/0.4227, allocations: 1.385 MB / 433.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001427/0.4242, allocations: 97.5 kB / 433.6 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003455/0.4276, allocations: 463.7 kB / 434.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006839/0.4284, allocations: 395.9 kB / 434.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.4297, allocations: 0.5365 MB / 435 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.4349, allocations: 2.913 MB / 437.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.4349, allocations: 0 / 437.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.4349, allocations: 0 / 437.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.4351, allocations: 0 / 437.9 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01232/0.4474, allocations: 3.634 MB / 441.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/0.4475, allocations: 14.48 kB / 441.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008158/0.4483, allocations: 281.4 kB / 441.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/0.4502, allocations: 403 kB / 442.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003725/0.4539, allocations: 1.732 MB / 444 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.4541, allocations: 162.7 kB / 444.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.4545, allocations: 225.6 kB / 444.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00403/0.4585, allocations: 2.09 MB / 446.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.469e-05/0.4586, allocations: 5.438 kB / 446.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001827/0.4588, allocations: 83.56 kB / 446.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.188e-05/0.4589, allocations: 55.27 kB / 446.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/0.4625, allocations: 1.961 MB / 448.5 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.01402/0.4766, allocations: 11.67 MB / 460.2 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/0.4801, allocations: 2.687 MB / 462.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.4813, allocations: 0.8357 MB / 463.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.4814, allocations: 27.14 kB / 463.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.4814, allocations: 60.02 kB / 463.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 3.727e-06/0.4814, allocations: 6.516 kB / 463.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01394/0.4954, allocations: 5.719 MB / 469.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.4955, allocations: 180.2 kB / 469.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003797/0.4993, allocations: 1.764 MB / 471.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002861/0.4997, allocations: 65.7 kB / 471.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.5007, allocations: 1.099 MB / 472.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/0.5017, allocations: 0.689 MB / 473.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.5019, allocations: 50.16 kB / 473.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002822/0.5022, allocations: 411.5 kB / 473.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.504, allocations: 0.8486 MB / 474.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002586/0.5066, allocations: 1.494 MB / 476.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002075/0.5087, allocations: 1.044 MB / 477.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.5088, allocations: 4 kB / 477.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.009358/0.5181, allocations: 4.017 MB / 481.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006027/0.5187, allocations: 0.5607 MB / 481.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.162e-05/0.5188, allocations: 16 kB / 481.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007736/0.5265, allocations: 1.694 MB / 483.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.5291, allocations: 0.5443 MB / 484 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02713/0.5562, allocations: 20.31 MB / 0.4925 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/0.5602, allocations: 195.3 kB / 0.4927 GB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006124/0.5608, allocations: 104 kB / 0.4928 GB, free: 11.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.5608, allocations: 4 kB / 0.4928 GB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008444/0.5693, allocations: 2.712 MB / 0.4954 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.48e-05/0.5694, allocations: 16 kB / 0.4955 GB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006112/0.5755, allocations: 1.284 MB / 0.4967 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.5781, allocations: 0.6167 MB / 0.4973 GB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/0.5941, allocations: 15.27 MB / 0.5122 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003056/0.5972, allocations: 119.6 kB / 0.5123 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005743/0.5978, allocations: 99.98 kB / 0.5124 GB, free: 5.695 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.002659/0.6005, allocations: 0.5678 MB / 0.513 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/0.6017, allocations: 252.3 kB / 0.5132 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.6071, allocations: 2.176 MB / 0.5154 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.6071, allocations: 20 kB / 0.5154 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.6071, allocations: 4 kB / 0.5154 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.6072, allocations: 11.97 kB / 0.5154 GB, free: 2.699 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.00941/0.6166, allocations: 4.507 MB / 0.5198 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.6166, allocations: 0 / 0.5198 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.6183, allocations: 357 kB / 0.5201 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.6194, allocations: 284.5 kB / 0.5204 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.6196, allocations: 43.98 kB / 0.5204 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006513/0.6261, allocations: 3.823 MB / 0.5242 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.6261, allocations: 0 / 0.5242 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04312/0.6693, allocations: 19.35 MB / 0.5431 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/0.6711, allocations: 453.9 kB / 0.5435 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009341/0.672, allocations: 40 kB / 0.5435 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002113/0.6741, allocations: 99.84 kB / 0.5436 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00047/0.6746, allocations: 137.8 kB / 0.5438 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001786/0.6748, allocations: 51.98 kB / 0.5438 GB, free: 5.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002654/0.6775, allocations: 1.128 MB / 0.5449 GB, free: 4.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6775, allocations: 0 / 0.5449 GB, free: 4.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.009262/0.6868, allocations: 1.641 MB / 0.5465 GB, free: 2.402 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: 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.007509/0.6943, allocations: 3.817 MB / 0.5503 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0155/0.7099, allocations: 7.372 MB / 0.5575 GB, free: 6.941 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/0.7099, allocations: 4 kB / 0.5575 GB, free: 6.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003802/0.7137, allocations: 1.523 MB / 0.5589 GB, free: 5.402 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004113/0.7179, allocations: 384.5 kB / 0.5593 GB, free: 5.023 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.04896/0.7669, allocations: 18.47 MB / 0.5773 GB, free: 1.285 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003396/0.7703, allocations: 1.668 MB / 0.579 GB, free: 15.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003844/0.7742, allocations: 380.3 kB / 0.5793 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002401/0.7766, allocations: 0.9678 MB / 0.5803 GB, free: 14.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7767, allocations: 0 / 0.5803 GB, free: 14.23 MB / 462.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).