Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase3.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.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_ENTSOE_TestCase3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_ENTSOE_TestCase3",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.001011/0.001011, allocations: 97.36 kB / 15.7 MB, free: 472 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.001275/0.001275, allocations: 182.5 kB / 16.58 MB, free: 6.395 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.541/1.541, allocations: 205.4 MB / 222.7 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.06129/0.06129, 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.0005341/0.0005342, allocations: 16 kB / 349.5 MB, free: 17.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.106, allocations: 51.12 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase3): time 0.01497/0.121, allocations: 13.63 MB / 414.3 MB, free: 320 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.1338, allocations: 6.427 MB / 420.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002858/0.1367, allocations: 67.56 kB / 420.8 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002003/0.1387, allocations: 0.5589 MB / 421.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007092/0.1458, allocations: 2.264 MB / 423.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003025/0.1488, allocations: 1.145 MB / 424.7 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006792/0.1556, allocations: 3.402 MB / 428.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1567, allocations: 0.6087 MB / 428.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.1593, allocations: 1.335 MB / 430.1 MB, free: 464 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2405/0.3998, allocations: 1.359 MB / 431.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000835/0.4007, allocations: 93.09 kB / 431.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.4033, allocations: 450.8 kB / 432 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000604/0.4039, allocations: 388.4 kB / 432.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002703/0.4067, allocations: 0.541 MB / 432.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007798/0.4145, allocations: 2.883 MB / 435.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4145, allocations: 3.219 kB / 435.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.4145, allocations: 0 / 435.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001231/0.4146, allocations: 0 / 435.8 MB, free: 14.24 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01424/0.4289, allocations: 3.677 MB / 439.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.429, allocations: 14.02 kB / 439.5 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001019/0.43, allocations: 288 kB / 439.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002403/0.4324, allocations: 427.7 kB / 440.2 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004737/0.4372, allocations: 1.715 MB / 441.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.4373, allocations: 165.5 kB / 442.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000476/0.4378, allocations: 230.8 kB / 442.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004764/0.4426, allocations: 2.124 MB / 444.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/0.4426, allocations: 7.812 kB / 444.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002021/0.4428, allocations: 88.56 kB / 444.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.775e-05/0.4429, allocations: 49 kB / 444.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004075/0.447, allocations: 2.005 MB / 446.5 MB, free: 11.75 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.01517/0.4622, allocations: 11.73 MB / 458.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.4659, allocations: 2.812 MB / 461.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.4661, allocations: 37.22 kB / 461.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001722/0.4678, allocations: 1.118 MB / 462.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=213): time 4.227e-06/0.4678, allocations: 0 / 462.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=214): time 0.01584/0.4837, allocations: 6.404 MB / 468.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002488/0.484, allocations: 371.2 kB / 469 MB, free: 15.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/0.487, allocations: 1.673 MB / 470.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003947/0.4874, allocations: 74.33 kB / 470.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.4884, allocations: 1.063 MB / 471.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009585/0.4894, allocations: 0.7408 MB / 472.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.4895, allocations: 54.62 kB / 472.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.4897, allocations: 403.5 kB / 473 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.4914, allocations: 0.8408 MB / 473.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/0.4934, allocations: 1.379 MB / 475.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.4953, allocations: 1.067 MB / 476.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.4953, allocations: 8 kB / 476.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.008515/0.5038, allocations: 3.764 MB / 480.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002166/0.5061, allocations: 5.056 MB / 485.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/0.5061, allocations: 12 kB / 485.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00453/0.5106, allocations: 1.228 MB / 486.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/0.5131, allocations: 0.5315 MB / 486.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02447/0.5376, allocations: 21.12 MB / 0.4961 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/0.5412, allocations: 159.5 kB / 0.4963 GB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005571/0.5418, allocations: 104 kB / 0.4964 GB, free: 6.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.5418, allocations: 4 kB / 0.4964 GB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007806/0.5496, allocations: 2.875 MB / 0.4992 GB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.236e-05/0.5497, allocations: 12.69 kB / 0.4992 GB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003493/0.5532, allocations: 0.8967 MB / 0.5001 GB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002449/0.5557, allocations: 0.5368 MB / 0.5006 GB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/0.5734, allocations: 16.51 MB / 0.5167 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/0.5763, allocations: 115.6 kB / 0.5168 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005383/0.5768, allocations: 95.98 kB / 0.5169 GB, free: 500 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (288): * Single equations (assignments): 274 * 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%) 2,(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 4 {5 33,1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002178/0.579, allocations: 0.6296 MB / 0.5175 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009193/0.58, allocations: 241.1 kB / 0.5177 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005686/0.5857, allocations: 2.419 MB / 0.5201 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.5857, allocations: 20 kB / 0.5201 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/0.5858, allocations: 4 kB / 0.5201 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.054e-05/0.5858, allocations: 11.95 kB / 0.5201 GB, free: 13.17 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.01021/0.596, allocations: 4.861 MB / 0.5249 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.596, allocations: 0 / 0.5249 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/0.5978, allocations: 376.4 kB / 0.5253 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00154/0.5994, allocations: 484.5 kB / 0.5257 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/0.5996, allocations: 44 kB / 0.5258 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006447/0.606, allocations: 3.893 MB / 0.5296 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.606, allocations: 7.953 kB / 0.5296 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05183/0.6579, allocations: 22.33 MB / 0.5514 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/0.6597, allocations: 473.9 kB / 0.5518 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008144/0.6605, allocations: 42.3 kB / 0.5519 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/0.6625, allocations: 119.8 kB / 0.552 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004399/0.6629, allocations: 145.8 kB / 0.5521 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.6631, allocations: 48 kB / 0.5522 GB, free: 11.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002343/0.6655, allocations: 1.079 MB / 0.5532 GB, free: 10.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6655, allocations: 4 kB / 0.5532 GB, free: 10.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008507/0.674, allocations: 1.734 MB / 0.5549 GB, free: 9.098 MB / 430.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 (174): * Single equations (assignments): 171 * 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.00746/0.6815, allocations: 4.129 MB / 0.5589 GB, free: 4.969 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/0.6937, allocations: 7.013 MB / 0.5658 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.6938, allocations: 0 / 0.5658 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002921/0.6967, allocations: 1.451 MB / 0.5672 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/0.6995, allocations: 355.8 kB / 0.5676 GB, free: 11.9 MB / 446.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.02013/0.7196, allocations: 16.09 MB / 0.5833 GB, free: 11.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002509/0.7222, allocations: 1.716 MB / 0.5849 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002854/0.725, allocations: 365 kB / 0.5853 GB, free: 9.355 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/0.7273, allocations: 0.983 MB / 0.5863 GB, free: 8.375 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7273, allocations: 4 kB / 0.5863 GB, free: 8.371 MB / 462.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).