Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation,fileNamePrefix="PowerGrids_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.0009003/0.0009003, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.00101/0.00101, allocations: 172.7 kB / 15.95 MB, free: 208 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.46/1.46, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0631/0.0631, allocations: 14.17 MB / 284.6 MB, free: 7 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.0005328/0.000533, allocations: 12 kB / 349 MB, free: 17.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09822, allocations: 51.13 MB / 400.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation): time 0.01478/0.113, allocations: 14.57 MB / 414.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.1252, allocations: 6.46 MB / 421.1 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003467/0.1287, allocations: 71.56 kB / 421.2 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.1314, allocations: 0.6093 MB / 421.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007325/0.1388, allocations: 2.019 MB / 423.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003278/0.1421, allocations: 1.118 MB / 425 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007386/0.1495, allocations: 4.713 MB / 429.7 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2034/0.3529, allocations: 0.5787 MB / 430.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002817/0.3558, allocations: 1.263 MB / 431.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003118/0.3589, allocations: 1.387 MB / 432.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006277/0.3596, allocations: 96.06 kB / 433 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.3622, allocations: 457.9 kB / 433.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006015/0.3628, allocations: 397.4 kB / 433.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.3644, allocations: 0.5402 MB / 434.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00522/0.3696, allocations: 2.915 MB / 437.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3696, allocations: 1.75 kB / 437.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3696, allocations: 0 / 437.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000143/0.3698, allocations: 0 / 437.3 MB, free: 14.11 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.01231/0.3821, allocations: 3.635 MB / 440.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.3822, allocations: 13.36 kB / 440.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009483/0.3831, allocations: 279.5 kB / 441.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00208/0.3852, allocations: 406.5 kB / 441.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/0.3893, allocations: 1.728 MB / 443.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.3895, allocations: 165 kB / 443.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004758/0.39, allocations: 225.1 kB / 443.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00414/0.3941, allocations: 2.096 MB / 445.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.3942, allocations: 3.469 kB / 445.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.3944, allocations: 87.27 kB / 445.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.123e-05/0.3944, allocations: 49.53 kB / 445.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003999/0.3984, allocations: 1.964 MB / 447.9 MB, free: 11.66 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.0143/0.4127, allocations: 11.67 MB / 459.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003622/0.4164, allocations: 2.689 MB / 462.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.4177, allocations: 0.8331 MB / 463.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/0.4178, allocations: 28.64 kB / 463.1 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.4178, allocations: 56.31 kB / 463.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 3.677e-06/0.4178, allocations: 0 / 463.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01331/0.4312, allocations: 5.72 MB / 468.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.4313, allocations: 182.5 kB / 469.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/0.4343, allocations: 1.764 MB / 470.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.4345, allocations: 72.44 kB / 470.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009652/0.4355, allocations: 1.093 MB / 472 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007108/0.4362, allocations: 0.6844 MB / 472.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.4363, allocations: 52 kB / 472.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.4365, allocations: 407.5 kB / 473.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4381, allocations: 0.8526 MB / 474 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.4402, allocations: 1.5 MB / 475.5 MB, free: 8.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002018/0.4422, allocations: 1.035 MB / 476.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4422, allocations: 8 kB / 476.5 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.008816/0.4511, allocations: 4.02 MB / 480.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00041/0.4515, allocations: 0.5585 MB / 481.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.4515, allocations: 16 kB / 481.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0077/0.4592, allocations: 1.698 MB / 482.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/0.4616, allocations: 0.5426 MB / 483.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0266/0.4882, allocations: 20.32 MB / 0.4919 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003038/0.4913, allocations: 195.3 kB / 0.4921 GB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004347/0.4918, allocations: 104 kB / 0.4922 GB, free: 10.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/0.4918, allocations: 0 / 0.4922 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00677/0.4986, allocations: 2.717 MB / 0.4948 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.843e-05/0.4986, allocations: 18.19 kB / 0.4948 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006139/0.5048, allocations: 1.278 MB / 0.4961 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/0.5072, allocations: 0.6133 MB / 0.4967 GB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/0.523, allocations: 15.27 MB / 0.5116 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.5261, allocations: 123.6 kB / 0.5117 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004878/0.5266, allocations: 104 kB / 0.5118 GB, free: 5.645 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.002346/0.529, allocations: 0.5614 MB / 0.5124 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009861/0.53, allocations: 249 kB / 0.5126 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005065/0.5351, allocations: 2.177 MB / 0.5147 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.5351, allocations: 24 kB / 0.5148 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.5351, allocations: 8 kB / 0.5148 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.44e-05/0.5351, allocations: 7.969 kB / 0.5148 GB, free: 2.648 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.008985/0.5441, allocations: 4.515 MB / 0.5192 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.5442, allocations: 0 / 0.5192 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.5457, allocations: 349.8 kB / 0.5195 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.5469, allocations: 288.5 kB / 0.5198 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.547, allocations: 39.98 kB / 0.5198 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006554/0.5536, allocations: 3.824 MB / 0.5236 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5536, allocations: 4 kB / 0.5236 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006622/0.5602, allocations: 3.104 MB / 0.5266 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/0.5619, allocations: 453.9 kB / 0.527 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007835/0.5627, allocations: 43.94 kB / 0.5271 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001811/0.5645, allocations: 107.8 kB / 0.5272 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003686/0.5649, allocations: 133.8 kB / 0.5273 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.565, allocations: 47.98 kB / 0.5273 GB, free: 5.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00286/0.5679, allocations: 1.128 MB / 0.5284 GB, free: 4.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5679, allocations: 0 / 0.5284 GB, free: 4.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007042/0.575, allocations: 1.133 MB / 0.5296 GB, free: 3.289 MB / 398.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.007995/0.583, allocations: 3.809 MB / 0.5333 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01465/0.5977, allocations: 7.378 MB / 0.5405 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.5977, allocations: 4.188 kB / 0.5405 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004582/0.6023, allocations: 1.527 MB / 0.542 GB, free: 6.367 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005247/0.6077, allocations: 380.5 kB / 0.5423 GB, free: 5.992 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.04192/0.6496, allocations: 16.72 MB / 0.5587 GB, free: 4.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.6516, allocations: 1.617 MB / 0.5602 GB, free: 2.363 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002353/0.6539, allocations: 345.4 kB / 0.5606 GB, free: 2.023 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001682/0.6556, allocations: 0.964 MB / 0.5615 GB, free: 1.059 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6557, allocations: 0 / 0.5615 GB, free: 1.059 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).