Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005905/0.005905, allocations: 170.5 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2674/0.2674, allocations: 22.33 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003507, allocations: 12 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3336, allocations: 55.98 MB / 438.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.002147/0.3358, allocations: 2.265 MB / 440.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.337, allocations: 0.8509 MB / 441.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.3372, allocations: 9.125 kB / 441.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.3375, allocations: 41.61 kB / 441.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.3377, allocations: 78.42 kB / 441.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.338, allocations: 184.3 kB / 442 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.3384, allocations: 434.4 kB / 442.4 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.3386, allocations: 122.2 kB / 442.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.3388, allocations: 139.5 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.3391, allocations: 169 kB / 442.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.3391, allocations: 11 kB / 442.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.497e-05/0.3392, allocations: 12.53 kB / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.271e-05/0.3393, allocations: 70.59 kB / 442.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.3394, allocations: 176.8 kB / 443.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.3396, allocations: 369.5 kB / 443.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3396, allocations: 4 kB / 443.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3397, allocations: 0 / 443.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.3397, allocations: 0 / 443.5 MB, free: 36.24 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001191/0.3409, allocations: 0.6694 MB / 444.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3409, allocations: 6.844 kB / 444.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.125e-05/0.341, allocations: 47.31 kB / 444.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.3415, allocations: 379.7 kB / 444.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3415, allocations: 21.28 kB / 444.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.3416, allocations: 33.19 kB / 444.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.342, allocations: 319 kB / 444.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.342, allocations: 0 / 444.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.3421, allocations: 8 kB / 444.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.577e-06/0.3421, allocations: 6.906 kB / 444.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.3425, allocations: 244.2 kB / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.3438, allocations: 1.033 MB / 446.2 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005236/0.3443, allocations: 315 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.3445, allocations: 136.8 kB / 446.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.3446, allocations: 6.969 kB / 446.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.3446, allocations: 40.88 kB / 446.7 MB, free: 34.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.3446, allocations: 0 / 446.7 MB, free: 34.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.004811/0.3494, allocations: 1.37 MB / 448.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.3495, allocations: 87.86 kB / 448.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004356/0.3499, allocations: 359.3 kB / 448.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.35, allocations: 32.2 kB / 448.5 MB, free: 33.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.3501, allocations: 194.6 kB / 448.7 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/0.3501, allocations: 121 kB / 448.8 MB, free: 33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.3502, allocations: 33.77 kB / 448.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.3502, allocations: 344.5 kB / 449.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.3504, allocations: 107.2 kB / 449.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.3507, allocations: 169.2 kB / 449.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004112/0.3548, allocations: 0.8991 MB / 450.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3548, allocations: 0 / 450.4 MB, free: 32.3 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=39) (initialization): time 0.002021/0.3569, allocations: 0.724 MB / 451.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/0.3569, allocations: 116.5 kB / 451.2 MB, free: 31.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.3569, allocations: 0 / 451.2 MB, free: 31.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.3585, allocations: 220.3 kB / 451.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.3589, allocations: 81.89 kB / 451.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005551/0.3644, allocations: 4.867 MB / 456.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.3648, allocations: 30 kB / 456.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.3648, allocations: 9.219 kB / 456.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.3649, allocations: 2.875 kB / 456.4 MB, free: 27.24 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001765/0.3666, allocations: 0.6389 MB / 457.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.3666, allocations: 0 / 457.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.3682, allocations: 232.5 kB / 457.3 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.3685, allocations: 61.11 kB / 457.4 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.3735, allocations: 4.882 MB / 462.2 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.3739, allocations: 27.94 kB / 462.3 MB, free: 22.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.3739, allocations: 14.59 kB / 462.3 MB, free: 22.32 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real g.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (Cps.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.3741, allocations: 229.6 kB / 462.5 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.3742, allocations: 38.16 kB / 462.5 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.3757, allocations: 0.5069 MB / 463 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3757, allocations: 11.78 kB / 463.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.3757, allocations: 0 / 463.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3757, allocations: 0 / 463.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.3775, allocations: 0.9512 MB / 464 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3776, allocations: 0 / 464 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.3778, allocations: 51.56 kB / 464.1 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.3789, allocations: 185.3 kB / 464.2 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.379, allocations: 9.922 kB / 464.2 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003338/0.3823, allocations: 1.954 MB / 466.2 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3823, allocations: 160 / 466.2 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.3839, allocations: 0.7045 MB / 466.9 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.3841, allocations: 137.5 kB / 467 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.461e-05/0.3841, allocations: 10.44 kB / 467 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.3844, allocations: 34.67 kB / 467.1 MB, free: 19.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.444e-05/0.3845, allocations: 23.34 kB / 467.1 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.3845, allocations: 10.22 kB / 467.1 MB, free: 19.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004282/0.385, allocations: 264 kB / 467.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.385, allocations: 0 / 467.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007688/0.3858, allocations: 118.4 kB / 467.5 MB, free: 19.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (g.x_scaled[1],g.x_scaled[2],Cps.I.y,G.thetap,G.deltag,G.wg) * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001376/0.3859, allocations: 112.8 kB / 467.6 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.3871, allocations: 0.9035 MB / 468.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3871, allocations: 0 / 468.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.3875, allocations: 274.5 kB / 468.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.388, allocations: 67.69 kB / 468.8 MB, free: 18.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.3895, allocations: 1.068 MB / 469.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.3898, allocations: 0.8026 MB / 470.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000223/0.39, allocations: 64.91 kB / 470.8 MB, free: 16.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.03e-05/0.3901, allocations: 24.28 kB / 470.8 MB, free: 16.84 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3901, allocations: 0 / 470.8 MB, free: 16.84 MB / 350.1 MB Notification: Performance of Templates: time 0.01051/0.4006, allocations: 5.07 MB / 475.9 MB, free: 16.55 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe 2>&1)