Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS.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.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithoutPSS",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.001005/0.001005, allocations: 92.86 kB / 15.71 MB, free: 464 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.001312/0.001312, allocations: 177.4 kB / 16.59 MB, free: 6.398 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.894/1.894, allocations: 205.4 MB / 222.8 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06299/0.06299, allocations: 14.16 MB / 285.2 MB, free: 7.121 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.000518/0.0005181, allocations: 16 kB / 349.6 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 51.13 MB / 400.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS): time 0.01401/0.1265, allocations: 12.82 MB / 413.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.1379, allocations: 5.7 MB / 419.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002438/0.1403, allocations: 47.75 kB / 419.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.1422, allocations: 0.5165 MB / 419.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006475/0.1487, allocations: 1.922 MB / 421.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002539/0.1513, allocations: 0.9498 MB / 422.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006627/0.1579, allocations: 4.123 MB / 426.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.159, allocations: 387.1 kB / 427.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002881/0.1619, allocations: 1.1 MB / 428.3 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001697/0.1636, allocations: 1.229 MB / 429.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.1638, allocations: 80 kB / 429.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.1652, allocations: 447.7 kB / 430 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.1655, allocations: 334.2 kB / 430.4 MB, free: 168 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2439/0.4094, allocations: 462.4 kB / 430.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004861/0.4143, allocations: 2.405 MB / 433.2 MB, free: 16.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4144, allocations: 2.375 kB / 433.2 MB, free: 16.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4144, allocations: 0.7812 kB / 433.2 MB, free: 16.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.819e-05/0.4144, allocations: 3.219 kB / 433.2 MB, free: 16.08 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: 418 * Number of variables: 418 Notification: Performance of Generate backend data structure: time 0.01077/0.4252, allocations: 3.206 MB / 436.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.4253, allocations: 13.86 kB / 436.5 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005894/0.4259, allocations: 233.9 kB / 436.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/0.4274, allocations: 364.9 kB / 437 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.4304, allocations: 1.389 MB / 438.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.4305, allocations: 133.9 kB / 438.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.4308, allocations: 184.9 kB / 438.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003249/0.4341, allocations: 1.758 MB / 440.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.4341, allocations: 3.75 kB / 440.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.4343, allocations: 69.28 kB / 440.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.101e-05/0.4343, allocations: 40.22 kB / 440.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003317/0.4376, allocations: 1.728 MB / 442.3 MB, free: 14.01 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.0133/0.451, allocations: 9.983 MB / 452.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004804/0.4558, allocations: 2.534 MB / 454.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.4577, allocations: 0.764 MB / 455.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001444/0.4579, allocations: 25 kB / 455.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002043/0.4599, allocations: 1.009 MB / 456.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=184): time 6.502e-06/0.46, allocations: 0 / 456.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.02032/0.4803, allocations: 5.752 MB / 462.4 MB, free: 3.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4804, allocations: 342 kB / 462.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/0.4833, allocations: 1.359 MB / 464.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002524/0.4836, allocations: 61.64 kB / 464.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008118/0.4844, allocations: 0.8235 MB / 465 MB, free: 2.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009116/0.4854, allocations: 0.6385 MB / 465.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.4857, allocations: 49.25 kB / 465.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.4859, allocations: 393.2 kB / 466 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00207/0.488, allocations: 0.7357 MB / 466.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.4905, allocations: 1.201 MB / 468 MB, free: 0.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.493, allocations: 0.9404 MB / 468.9 MB, free: 124 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/0.4931, allocations: 6.844 kB / 468.9 MB, free: 120 kB / 318.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0117/0.5048, allocations: 3.368 MB / 472.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006391/0.5055, allocations: 458 kB / 472.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.872e-05/0.5056, allocations: 12 kB / 472.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01029/0.5159, allocations: 1.518 MB / 474.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003072/0.519, allocations: 468.3 kB / 474.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02799/0.547, allocations: 18.04 MB / 492.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002933/0.55, allocations: 155.4 kB / 492.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005118/0.5505, allocations: 87.98 kB / 493 MB, free: 6.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.5505, allocations: 4 kB / 493 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006518/0.5571, allocations: 2.554 MB / 495.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.612e-05/0.5571, allocations: 19.89 kB / 495.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006465/0.5636, allocations: 1.336 MB / 496.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002246/0.5659, allocations: 483.7 kB / 497.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01793/0.5838, allocations: 14.77 MB / 0.5002 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002851/0.5867, allocations: 107.6 kB / 0.5003 GB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005091/0.5873, allocations: 87.98 kB / 0.5003 GB, free: 2.352 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im,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 (248): * Single equations (assignments): 236 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,66.7%) 0,(2,100.0%) 0,(2,100.0%) 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.001965/0.5892, allocations: 0.5439 MB / 0.5009 GB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008335/0.5901, allocations: 197.7 kB / 0.5011 GB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/0.595, allocations: 2.155 MB / 0.5032 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.595, allocations: 16 kB / 0.5032 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.595, allocations: 8 kB / 0.5032 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.5951, allocations: 7.969 kB / 0.5032 GB, free: 15.43 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.009159/0.6042, allocations: 4.275 MB / 0.5074 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.6043, allocations: 8 kB / 0.5074 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.6057, allocations: 319.6 kB / 0.5077 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.6068, allocations: 308.5 kB / 0.508 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001384/0.607, allocations: 39.7 kB / 0.508 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006591/0.6136, allocations: 4.007 MB / 0.5119 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6136, allocations: 0 / 0.5119 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05358/0.6672, allocations: 18.07 MB / 0.5296 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/0.6691, allocations: 414.4 kB / 0.53 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008793/0.67, allocations: 36 kB / 0.53 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002264/0.6723, allocations: 103.7 kB / 0.5301 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006189/0.673, allocations: 129.8 kB / 0.5302 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000215/0.6732, allocations: 47.98 kB / 0.5303 GB, free: 3.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002434/0.6756, allocations: 0.8649 MB / 0.5311 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6757, allocations: 0 / 0.5311 GB, free: 2.402 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006946/0.6826, allocations: 1.492 MB / 0.5326 GB, free: 0.9102 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (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) * 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 (145): * Single equations (assignments): 142 * 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.006718/0.6893, allocations: 3.73 MB / 0.5362 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01381/0.7032, allocations: 7.001 MB / 0.5431 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.7032, allocations: 0 / 0.5431 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/0.7068, allocations: 1.636 MB / 0.5447 GB, free: 4.352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/0.7102, allocations: 283.3 kB / 0.5449 GB, free: 4.074 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.0377/0.7479, allocations: 14.89 MB / 0.5595 GB, free: 4.375 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/0.7498, allocations: 1.506 MB / 0.5609 GB, free: 2.828 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002081/0.7519, allocations: 294 kB / 0.5612 GB, free: 2.535 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/0.7535, allocations: 0.7726 MB / 0.562 GB, free: 1.762 MB / 430.1 MB Notification: Performance of SimCode: time 2.885e-06/0.7535, allocations: 0 / 0.562 GB, free: 1.762 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).