Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Examples_ENTSOE_TestCase3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.ENTSOE.TestCase3,fileNamePrefix="PowerGrids_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.0008256/0.0008255, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.000903/0.000903, allocations: 168.7 kB / 15.95 MB, free: 204 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.391/1.391, allocations: 205.4 MB / 222.1 MB, free: 5.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06349/0.06349, allocations: 14.16 MB / 284.6 MB, free: 7.098 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.0005864/0.0005867, allocations: 16 kB / 349 MB, free: 17.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1036, allocations: 51.11 MB / 400.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase3): time 0.01581/0.1195, allocations: 14.68 MB / 414.8 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.1325, allocations: 6.456 MB / 421.2 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003604/0.1362, allocations: 71.56 kB / 421.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003016/0.1392, allocations: 0.6093 MB / 421.9 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007547/0.1468, allocations: 2.012 MB / 423.9 MB, free: 6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003386/0.1502, allocations: 1.114 MB / 425 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008153/0.1584, allocations: 4.712 MB / 429.7 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2099/0.3683, allocations: 0.6145 MB / 430.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003051/0.3714, allocations: 1.254 MB / 431.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003352/0.3748, allocations: 1.395 MB / 433 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006455/0.3755, allocations: 92.38 kB / 433.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.378, allocations: 458 kB / 433.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005511/0.3786, allocations: 393.2 kB / 433.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001414/0.38, allocations: 0.5429 MB / 434.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005221/0.3852, allocations: 2.912 MB / 437.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.3853, allocations: 0 / 437.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3853, allocations: 0 / 437.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001382/0.3854, allocations: 2.938 kB / 437.4 MB, free: 13.99 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.01269/0.3981, allocations: 3.685 MB / 441.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.3982, allocations: 13.45 kB / 441.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009348/0.3991, allocations: 284.1 kB / 441.4 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002277/0.4014, allocations: 432.8 kB / 441.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004276/0.4057, allocations: 1.714 MB / 443.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.4059, allocations: 165.4 kB / 443.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003649/0.4062, allocations: 227 kB / 443.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004141/0.4104, allocations: 2.137 MB / 446 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/0.4105, allocations: 4.062 kB / 446 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.4106, allocations: 87.5 kB / 446.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.214e-05/0.4107, allocations: 49.44 kB / 446.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003898/0.4146, allocations: 2.011 MB / 448.2 MB, free: 11.45 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.01497/0.4296, allocations: 11.63 MB / 459.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.4336, allocations: 2.82 MB / 462.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.435, allocations: 0.8827 MB / 463.5 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.4352, allocations: 31.14 kB / 463.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001676/0.4368, allocations: 1.135 MB / 464.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=213): time 4.528e-06/0.4369, allocations: 0 / 464.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=214): time 0.01644/0.4533, allocations: 6.398 MB / 471 MB, free: 13.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.4536, allocations: 364.1 kB / 471.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.457, allocations: 1.683 MB / 473.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003149/0.4573, allocations: 69.7 kB / 473.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4586, allocations: 1.059 MB / 474.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/0.4596, allocations: 0.7407 MB / 475 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/0.4599, allocations: 56 kB / 475 MB, free: 9.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.4601, allocations: 406.1 kB / 475.4 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.462, allocations: 0.8427 MB / 476.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.4644, allocations: 1.39 MB / 477.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.4667, allocations: 1.068 MB / 478.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.859e-05/0.4667, allocations: 6.438 kB / 478.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009303/0.476, allocations: 3.767 MB / 482.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005427/0.4766, allocations: 0.5138 MB / 483 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/0.4767, allocations: 13.69 kB / 483 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00782/0.4845, allocations: 1.622 MB / 484.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/0.4869, allocations: 0.5316 MB / 485.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02541/0.5124, allocations: 20.8 MB / 0.4941 GB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/0.5152, allocations: 171.5 kB / 0.4943 GB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004831/0.5157, allocations: 105.5 kB / 0.4944 GB, free: 8.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.5157, allocations: 4 kB / 0.4944 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007103/0.5228, allocations: 2.875 MB / 0.4972 GB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.454e-05/0.5229, allocations: 12 kB / 0.4972 GB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006902/0.5298, allocations: 1.45 MB / 0.4986 GB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002388/0.5322, allocations: 0.5349 MB / 0.4991 GB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01802/0.5503, allocations: 17.54 MB / 0.5163 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/0.553, allocations: 122.5 kB / 0.5164 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004985/0.5535, allocations: 99.98 kB / 0.5165 GB, free: 392 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): 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,(3,66.7%) 0,(3,66.7%) 0,(2,100.0%) 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.001861/0.5554, allocations: 0.6299 MB / 0.5171 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008281/0.5562, allocations: 241.1 kB / 0.5173 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005429/0.5617, allocations: 2.417 MB / 0.5197 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.5617, allocations: 20 kB / 0.5197 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/0.5617, allocations: 4 kB / 0.5197 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.313e-05/0.5618, allocations: 15.61 kB / 0.5197 GB, free: 13.07 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.009797/0.5716, allocations: 4.859 MB / 0.5245 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.5716, allocations: 0 / 0.5245 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.5733, allocations: 376.3 kB / 0.5248 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.5744, allocations: 308.3 kB / 0.5251 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001577/0.5746, allocations: 40 kB / 0.5252 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006869/0.5814, allocations: 4 MB / 0.5291 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.5815, allocations: 12 kB / 0.5291 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007328/0.5888, allocations: 3.423 MB / 0.5324 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/0.5903, allocations: 477.9 kB / 0.5329 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006972/0.591, allocations: 44 kB / 0.5329 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001736/0.5928, allocations: 103.9 kB / 0.533 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/0.5931, allocations: 146.1 kB / 0.5331 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.5932, allocations: 54.8 kB / 0.5332 GB, free: 15.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002037/0.5953, allocations: 1.086 MB / 0.5343 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5953, allocations: 0 / 0.5343 GB, free: 13.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004986/0.6003, allocations: 1.16 MB / 0.5354 GB, free: 12.78 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 (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 {(38,7.8%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007199/0.6075, allocations: 4.138 MB / 0.5394 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01406/0.6216, allocations: 7.958 MB / 0.5472 GB, free: 444 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.6217, allocations: 0 / 0.5472 GB, free: 444 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/0.6255, allocations: 1.757 MB / 0.5489 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003467/0.629, allocations: 407.8 kB / 0.5493 GB, free: 14.23 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.03697/0.666, allocations: 16.37 MB / 0.5653 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/0.6679, allocations: 1.633 MB / 0.5669 GB, free: 11.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002187/0.6701, allocations: 345 kB / 0.5672 GB, free: 10.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/0.6716, allocations: 0.9757 MB / 0.5682 GB, free: 9.695 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6717, allocations: 0 / 0.5682 GB, free: 9.695 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).