Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation,fileNamePrefix="PowerGrids_symb_jac_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.001182/0.001182, allocations: 96.81 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.001365/0.001365, allocations: 177.3 kB / 16.57 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.608/1.608, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05926/0.05926, allocations: 14.16 MB / 285.2 MB, free: 7.148 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.0004897/0.0004898, allocations: 12 kB / 349.6 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1053, allocations: 51.11 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculation): time 0.01326/0.1186, allocations: 13.55 MB / 414.2 MB, free: 384 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.1305, allocations: 6.442 MB / 420.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/0.1331, allocations: 67.56 kB / 420.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00196/0.1351, allocations: 0.555 MB / 421.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006455/0.1416, allocations: 2.272 MB / 423.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002728/0.1443, allocations: 1.134 MB / 424.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00695/0.1513, allocations: 3.402 MB / 428.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1524, allocations: 0.5855 MB / 428.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.1547, allocations: 1.327 MB / 430 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2178/0.3725, allocations: 1.362 MB / 431.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000741/0.3733, allocations: 93.25 kB / 431.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002313/0.3756, allocations: 452.1 kB / 431.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.376, allocations: 394.8 kB / 432.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009918/0.377, allocations: 0.5307 MB / 432.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004739/0.3818, allocations: 2.889 MB / 435.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3818, allocations: 1.188 kB / 435.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3818, allocations: 2.844 kB / 435.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.884e-05/0.3819, allocations: 1.469 kB / 435.7 MB, free: 13.84 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.01318/0.3951, allocations: 3.624 MB / 439.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/0.3952, allocations: 15.67 kB / 439.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009853/0.3962, allocations: 280.5 kB / 439.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001976/0.3982, allocations: 407.3 kB / 440 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003959/0.4021, allocations: 1.732 MB / 441.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.4023, allocations: 163.8 kB / 441.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003763/0.4027, allocations: 224.2 kB / 442.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003932/0.4066, allocations: 2.078 MB / 444.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.4066, allocations: 4.281 kB / 444.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/0.4068, allocations: 81.78 kB / 444.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.026e-05/0.4069, allocations: 48.62 kB / 444.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003622/0.4105, allocations: 1.968 MB / 446.3 MB, free: 11.46 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.01472/0.4252, allocations: 11.77 MB / 458.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003506/0.4288, allocations: 2.697 MB / 460.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.4289, allocations: 37.41 kB / 460.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.4289, allocations: 53.91 kB / 460.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 4.408e-06/0.429, allocations: 0 / 460.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01311/0.4421, allocations: 5.593 MB / 466.4 MB, free: 228 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.4422, allocations: 177.7 kB / 466.6 MB, free: 36 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.4448, allocations: 1.78 MB / 468.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000242/0.445, allocations: 68.05 kB / 468.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007287/0.4458, allocations: 1.094 MB / 469.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007193/0.4465, allocations: 0.6861 MB / 470.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.4466, allocations: 62 kB / 470.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.4468, allocations: 403.6 kB / 470.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.4484, allocations: 0.8469 MB / 471.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.4505, allocations: 1.486 MB / 473 MB, free: 11.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/0.4524, allocations: 1.045 MB / 474.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.4524, allocations: 4 kB / 474.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.00924/0.4617, allocations: 4.02 MB / 478.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002614/0.4643, allocations: 6.452 MB / 484.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.4643, allocations: 19.95 kB / 484.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004718/0.4691, allocations: 1.328 MB / 485.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002492/0.4716, allocations: 0.5389 MB / 486.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02508/0.4967, allocations: 20.84 MB / 0.4954 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003089/0.4998, allocations: 195.4 kB / 0.4956 GB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002131/0.5, allocations: 104 kB / 0.4957 GB, free: 7.559 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.5, allocations: 4 kB / 0.4957 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005399/0.5055, allocations: 2.716 MB / 0.4983 GB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.5055, allocations: 16.97 kB / 0.4983 GB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/0.5084, allocations: 0.7677 MB / 0.4991 GB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/0.5107, allocations: 0.6216 MB / 0.4997 GB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/0.5243, allocations: 14.29 MB / 0.5137 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/0.5273, allocations: 127.5 kB / 0.5138 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.5275, allocations: 99.98 kB / 0.5139 GB, free: 3.879 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): 2 * Torn equation systems: 9 * 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: 5 {(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 {6 32,1 1,1 1,3 7} Notification: Performance of prepare postOptimizeDAE: time 0.001777/0.5293, allocations: 0.565 MB / 0.5144 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005944/0.5299, allocations: 245 kB / 0.5147 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.5343, allocations: 2.174 MB / 0.5168 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/0.5343, allocations: 24 kB / 0.5168 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.5344, allocations: 4 kB / 0.5168 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.5344, allocations: 11.97 kB / 0.5168 GB, free: 0.8828 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.007393/0.5418, allocations: 4.511 MB / 0.5212 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.5418, allocations: 3.953 kB / 0.5212 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/0.5434, allocations: 356 kB / 0.5216 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.5448, allocations: 469.3 kB / 0.522 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.5449, allocations: 35.98 kB / 0.5221 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005676/0.5506, allocations: 3.707 MB / 0.5257 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5506, allocations: 0 / 0.5257 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04702/0.5976, allocations: 20.74 MB / 0.5459 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000994/0.5987, allocations: 457.9 kB / 0.5464 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.599, allocations: 40 kB / 0.5464 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.6002, allocations: 111.8 kB / 0.5465 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.6005, allocations: 133.8 kB / 0.5466 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.409e-05/0.6006, allocations: 44 kB / 0.5467 GB, free: 1.906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002232/0.6029, allocations: 1.128 MB / 0.5478 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6029, allocations: 0 / 0.5478 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006015/0.6089, allocations: 1.707 MB / 0.5495 GB, free: 15.05 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: 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 {(9,48.1%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006052/0.615, allocations: 3.801 MB / 0.5532 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01151/0.6265, allocations: 6.55 MB / 0.5596 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.6265, allocations: 0 / 0.5596 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002595/0.6292, allocations: 1.236 MB / 0.5608 GB, free: 3.332 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.6316, allocations: 371.6 kB / 0.5611 GB, free: 2.969 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.02097/0.6526, allocations: 18.32 MB / 0.579 GB, free: 276 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001739/0.6543, allocations: 1.691 MB / 0.5807 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002208/0.6565, allocations: 365.4 kB / 0.581 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/0.658, allocations: 0.9718 MB / 0.582 GB, free: 13.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.236e-05/0.658, allocations: 0 / 0.582 GB, free: 13.2 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).