Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Controlled_ControlledGridWithReferenceCalculationSat",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.0009361/0.0009269, allocations: 95.33 kB / 15.69 MB, free: 480 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.001089/0.001089, allocations: 179.1 kB / 16.57 MB, free: 6.391 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.628/1.628, allocations: 205.4 MB / 222.7 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05896/0.05896, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.0005275/0.0005275, allocations: 12 kB / 349.5 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 51.11 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.0132/0.119, allocations: 13.56 MB / 414.2 MB, free: 380 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.1315, allocations: 6.446 MB / 420.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003288/0.1348, allocations: 67.56 kB / 420.7 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002646/0.1375, allocations: 0.555 MB / 421.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008189/0.1457, allocations: 2.27 MB / 423.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003593/0.1493, allocations: 1.155 MB / 424.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007982/0.1573, allocations: 3.391 MB / 428.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.1585, allocations: 0.5816 MB / 428.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002851/0.1614, allocations: 1.335 MB / 430 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2145/0.3759, allocations: 1.362 MB / 431.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007873/0.3767, allocations: 93.53 kB / 431.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002303/0.3791, allocations: 450.6 kB / 431.9 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004174/0.3795, allocations: 397.4 kB / 432.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.3805, allocations: 0.5321 MB / 432.8 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004909/0.3855, allocations: 2.892 MB / 435.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3855, allocations: 0 / 435.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3855, allocations: 0 / 435.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001137/0.3856, allocations: 1.156 kB / 435.7 MB, free: 14.26 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.01321/0.3988, allocations: 3.622 MB / 439.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.3989, allocations: 11.8 kB / 439.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008612/0.3998, allocations: 276 kB / 439.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001942/0.4017, allocations: 415.8 kB / 440 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004157/0.4059, allocations: 1.731 MB / 441.8 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.4061, allocations: 162.9 kB / 441.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003992/0.4065, allocations: 223.3 kB / 442.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004276/0.4108, allocations: 2.078 MB / 444.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.738e-05/0.4108, allocations: 4.875 kB / 444.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001709/0.411, allocations: 81.25 kB / 444.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.485e-05/0.411, allocations: 49.16 kB / 444.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003896/0.415, allocations: 1.969 MB / 446.3 MB, free: 11.88 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.01517/0.4301, allocations: 11.77 MB / 458.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.434, allocations: 2.7 MB / 460.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.4341, allocations: 22.14 kB / 460.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.4342, allocations: 56.22 kB / 460.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=194): time 4.719e-06/0.4342, allocations: 0 / 460.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=195): time 0.01394/0.4481, allocations: 5.594 MB / 466.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.4482, allocations: 186.5 kB / 466.6 MB, free: 428 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.451, allocations: 1.766 MB / 468.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002869/0.4513, allocations: 68.55 kB / 468.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008231/0.4521, allocations: 1.095 MB / 469.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007877/0.4529, allocations: 0.6913 MB / 470.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.453, allocations: 51.94 kB / 470.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000249/0.4533, allocations: 404 kB / 470.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/0.4552, allocations: 0.8511 MB / 471.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002479/0.4577, allocations: 1.485 MB / 473 MB, free: 11.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.4597, allocations: 1.039 MB / 474.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.4598, allocations: 4 kB / 474.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=344) (initialization): time 0.00979/0.4696, allocations: 4.023 MB / 478.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002725/0.4723, allocations: 6.453 MB / 484.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/0.4724, allocations: 20 kB / 484.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004718/0.4771, allocations: 1.325 MB / 485.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/0.4796, allocations: 0.542 MB / 486.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02651/0.5061, allocations: 20.84 MB / 0.4954 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003372/0.5095, allocations: 191.4 kB / 0.4956 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/0.5098, allocations: 99.98 kB / 0.4957 GB, free: 7.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.5098, allocations: 4 kB / 0.4957 GB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005675/0.5155, allocations: 2.722 MB / 0.4983 GB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.249e-05/0.5156, allocations: 16 kB / 0.4983 GB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002849/0.5184, allocations: 0.7681 MB / 0.4991 GB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.5209, allocations: 0.6173 MB / 0.4997 GB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/0.5359, allocations: 14.3 MB / 0.5137 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003132/0.5391, allocations: 126.4 kB / 0.5138 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004982/0.5396, allocations: 104 kB / 0.5139 GB, free: 3.926 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.002037/0.5417, allocations: 0.558 MB / 0.5144 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008515/0.5425, allocations: 245 kB / 0.5147 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005068/0.5476, allocations: 2.173 MB / 0.5168 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2e-05/0.5477, allocations: 24 kB / 0.5168 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.5477, allocations: 8 kB / 0.5168 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.5477, allocations: 11.95 kB / 0.5168 GB, free: 0.9336 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.009296/0.557, allocations: 4.511 MB / 0.5212 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.557, allocations: 0 / 0.5212 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.5587, allocations: 353.9 kB / 0.5216 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.5602, allocations: 469.3 kB / 0.522 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.5603, allocations: 32 kB / 0.5221 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006049/0.5664, allocations: 3.707 MB / 0.5257 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5664, allocations: 0 / 0.5257 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04615/0.6126, allocations: 20.75 MB / 0.5459 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.6143, allocations: 462 kB / 0.5464 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007366/0.615, allocations: 40 kB / 0.5464 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.6168, allocations: 103.6 kB / 0.5465 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003788/0.6172, allocations: 137.8 kB / 0.5466 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.6173, allocations: 47.38 kB / 0.5467 GB, free: 1.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.6196, allocations: 1.128 MB / 0.5478 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6196, allocations: 0 / 0.5478 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006399/0.6261, allocations: 1.707 MB / 0.5495 GB, free: 15.1 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.00615/0.6322, allocations: 3.795 MB / 0.5532 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01197/0.6442, allocations: 6.554 MB / 0.5596 GB, free: 4.605 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.85e-06/0.6442, allocations: 0 / 0.5596 GB, free: 4.605 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.6468, allocations: 1.232 MB / 0.5608 GB, free: 3.387 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.6492, allocations: 364.2 kB / 0.5611 GB, free: 3.031 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.01744/0.6666, allocations: 18.33 MB / 0.579 GB, free: 340 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.6683, allocations: 1.692 MB / 0.5807 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002283/0.6706, allocations: 365.3 kB / 0.581 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/0.672, allocations: 0.9678 MB / 0.582 GB, free: 13.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.492e-06/0.6721, allocations: 0 / 0.582 GB, free: 13.27 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).