Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange.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.ControlledGridParametersChange,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridParametersChange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridParametersChange",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.001101/0.001101, allocations: 100.2 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.001255/0.001255, 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.588/1.588, allocations: 205.4 MB / 222.1 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.05792/0.05792, allocations: 14.16 MB / 284.5 MB, free: 7.133 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.0006163/0.0006164, allocations: 18.75 kB / 348.9 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1216, allocations: 51.11 MB / 400 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridParametersChange): time 0.01579/0.1374, allocations: 13.57 MB / 413.6 MB, free: 348 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01359/0.1511, allocations: 6.423 MB / 420 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004257/0.1554, allocations: 71.5 kB / 420.1 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003363/0.1588, allocations: 0.5551 MB / 420.7 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008902/0.1677, allocations: 2.257 MB / 422.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003933/0.1717, allocations: 1.146 MB / 424.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009216/0.1809, allocations: 3.398 MB / 427.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.1829, allocations: 0.5773 MB / 428 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00386/0.1867, allocations: 1.319 MB / 429.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2589/0.4456, allocations: 1.357 MB / 430.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008526/0.4465, allocations: 93.5 kB / 430.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00264/0.4492, allocations: 444.3 kB / 431.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004334/0.4496, allocations: 385.5 kB / 431.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.451, allocations: 0.5417 MB / 432.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005754/0.4568, allocations: 2.883 MB / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4568, allocations: 0 / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4568, allocations: 1.344 kB / 435 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.457, allocations: 0 / 435 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01441/0.4714, allocations: 3.658 MB / 438.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.4715, allocations: 14.03 kB / 438.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001277/0.4727, allocations: 284 kB / 439 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002594/0.4754, allocations: 426.1 kB / 439.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005697/0.4811, allocations: 1.717 MB / 441.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.4813, allocations: 162.5 kB / 441.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000461/0.4818, allocations: 222.8 kB / 441.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00463/0.4864, allocations: 2.104 MB / 443.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.4865, allocations: 4.344 kB / 443.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001776/0.4867, allocations: 79.44 kB / 443.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.135e-05/0.4867, allocations: 48.69 kB / 443.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003925/0.4907, allocations: 1.986 MB / 445.7 MB, free: 11.81 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.01665/0.5073, allocations: 11.69 MB / 457.4 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004615/0.512, allocations: 2.775 MB / 460.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/0.5121, allocations: 27.55 kB / 460.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002378/0.5145, allocations: 1.108 MB / 461.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=209): time 4.919e-06/0.5146, allocations: 0 / 461.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=210): time 0.01644/0.531, allocations: 6.378 MB / 467.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002484/0.5313, allocations: 374.5 kB / 468.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.5344, allocations: 1.686 MB / 469.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000283/0.5347, allocations: 71.02 kB / 469.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.5357, allocations: 1.052 MB / 470.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009186/0.5366, allocations: 0.7246 MB / 471.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.5368, allocations: 56 kB / 471.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.5371, allocations: 403.4 kB / 472 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.5387, allocations: 0.8329 MB / 472.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002026/0.5408, allocations: 1.357 MB / 474.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.5427, allocations: 1.06 MB / 475.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.5427, allocations: 4 kB / 475.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.008839/0.5515, allocations: 3.743 MB / 479 MB, free: 5.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002227/0.5538, allocations: 4.872 MB / 483.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.5539, allocations: 16.59 kB / 483.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004529/0.5584, allocations: 1.227 MB / 485.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/0.5611, allocations: 0.5156 MB / 485.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02464/0.5858, allocations: 21.14 MB / 0.4949 GB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/0.5892, allocations: 167.6 kB / 0.4951 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003383/0.5896, allocations: 95.98 kB / 0.4952 GB, free: 7.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.5896, allocations: 4 kB / 0.4952 GB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006263/0.5958, allocations: 2.856 MB / 0.498 GB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.853e-05/0.596, allocations: 12 kB / 0.498 GB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003717/0.5997, allocations: 0.899 MB / 0.4989 GB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/0.6023, allocations: 0.5295 MB / 0.4994 GB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01794/0.6202, allocations: 16.54 MB / 0.5155 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003029/0.6233, allocations: 118.2 kB / 0.5156 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/0.6235, allocations: 91.98 kB / 0.5157 GB, free: 1.082 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (282): * Single equations (assignments): 268 * 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%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 4 {5 33,1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001723/0.6252, allocations: 0.6204 MB / 0.5163 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/0.6258, allocations: 245 kB / 0.5166 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004779/0.6306, allocations: 2.396 MB / 0.5189 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.6307, allocations: 20 kB / 0.5189 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.6307, allocations: 11.95 kB / 0.5189 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.6307, allocations: 14.58 kB / 0.519 GB, free: 13.81 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.008257/0.639, allocations: 4.823 MB / 0.5237 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.639, allocations: 0 / 0.5237 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/0.6407, allocations: 370.6 kB / 0.524 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.6421, allocations: 492.5 kB / 0.5245 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.6423, allocations: 44 kB / 0.5245 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006194/0.6485, allocations: 3.884 MB / 0.5283 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6485, allocations: 0 / 0.5283 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006917/0.6554, allocations: 3.405 MB / 0.5316 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/0.6572, allocations: 469.9 kB / 0.5321 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003426/0.6575, allocations: 55.88 kB / 0.5321 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/0.659, allocations: 115.4 kB / 0.5323 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004093/0.6594, allocations: 141.5 kB / 0.5324 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.6595, allocations: 55.98 kB / 0.5324 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.6617, allocations: 1.083 MB / 0.5335 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.92e-07/0.6617, allocations: 0 / 0.5335 GB, free: 14.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004796/0.6665, allocations: 1.195 MB / 0.5347 GB, free: 13.48 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 (170): * Single equations (assignments): 167 * 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.006806/0.6733, allocations: 4.107 MB / 0.5387 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01248/0.6858, allocations: 6.965 MB / 0.5455 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.6859, allocations: 0.625 kB / 0.5455 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003/0.6889, allocations: 1.432 MB / 0.5469 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.6915, allocations: 356.3 kB / 0.5472 GB, free: 368 kB / 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.01383/0.7053, allocations: 14.15 MB / 0.561 GB, free: 1.926 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.7067, allocations: 1.645 MB / 0.5626 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002054/0.7087, allocations: 336.8 kB / 0.563 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.7101, allocations: 0.9739 MB / 0.5639 GB, free: 14.94 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7101, allocations: 4 kB / 0.5639 GB, free: 14.93 MB / 446.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).