Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_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_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009916/0.0009919, allocations: 99.86 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.001183/0.001183, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 239.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2667/0.2667, allocations: 22.33 MB / 313.3 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.0003011, allocations: 8 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3472, allocations: 55.99 MB / 437.8 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002386/0.3497, allocations: 2.133 MB / 439.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.3508, allocations: 0.7765 MB / 440.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.351, allocations: 6.875 kB / 440.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000361/0.3513, allocations: 72.27 kB / 440.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002988/0.3516, allocations: 132.9 kB / 440.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.352, allocations: 151.5 kB / 441.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004403/0.3525, allocations: 340.9 kB / 441.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.3528, allocations: 110.2 kB / 441.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.3531, allocations: 207.1 kB / 441.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.3535, allocations: 207.1 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.3535, allocations: 21.06 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.977e-05/0.3536, allocations: 17.53 kB / 442 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.3537, allocations: 88.19 kB / 442 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.712e-05/0.3538, allocations: 79.23 kB / 442.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003237/0.3542, allocations: 298.7 kB / 442.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3542, allocations: 0 / 442.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3542, allocations: 3.938 kB / 442.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.3542, allocations: 0 / 442.4 MB, free: 36.5 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001766/0.356, allocations: 0.7811 MB / 443.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.356, allocations: 10.38 kB / 443.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.203e-05/0.3561, allocations: 49.62 kB / 443.3 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.3568, allocations: 426.3 kB / 443.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3569, allocations: 19.22 kB / 443.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.3569, allocations: 44.19 kB / 443.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.3574, allocations: 318.4 kB / 444 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.3575, allocations: 0 / 444 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.3575, allocations: 10.59 kB / 444.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3575, allocations: 7.562 kB / 444.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003943/0.3579, allocations: 228.7 kB / 444.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.3594, allocations: 1.084 MB / 445.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.3601, allocations: 416.5 kB / 445.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.3602, allocations: 5.922 kB / 445.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3602, allocations: 41.67 kB / 445.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.422e-06/0.3602, allocations: 0 / 445.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002838/0.3631, allocations: 1.203 MB / 447 MB, free: 33.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.3631, allocations: 55.03 kB / 447.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.3638, allocations: 433.3 kB / 447.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.3638, allocations: 36.67 kB / 447.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3639, allocations: 206.9 kB / 447.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.898e-05/0.364, allocations: 152.7 kB / 447.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.3641, allocations: 8 kB / 447.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.3641, allocations: 351.9 kB / 448.2 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3643, allocations: 117.6 kB / 448.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.3645, allocations: 169 kB / 448.5 MB, free: 32.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.3648, allocations: 146.6 kB / 448.7 MB, free: 32.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3648, allocations: 0 / 448.7 MB, free: 32.74 MB / 350.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.002105/0.3669, allocations: 0.9711 MB / 449.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3669, allocations: 6.281 kB / 449.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3669, allocations: 0 / 449.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/0.3685, allocations: 269.7 kB / 449.9 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003239/0.3689, allocations: 91.56 kB / 450 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006579/0.3755, allocations: 8.012 MB / 458 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.3759, allocations: 46.98 kB / 458.1 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.376, allocations: 15.62 kB / 458.1 MB, free: 24.48 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.3762, allocations: 176.3 kB / 458.2 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.3762, allocations: 38.12 kB / 458.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.3776, allocations: 0.552 MB / 458.8 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3776, allocations: 5.25 kB / 458.8 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.3776, allocations: 0 / 458.8 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3776, allocations: 5.906 kB / 458.8 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.3794, allocations: 1.044 MB / 459.9 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3795, allocations: 0 / 459.9 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.3798, allocations: 68.08 kB / 460 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3808, allocations: 229.8 kB / 460.2 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.3809, allocations: 15.41 kB / 460.2 MB, free: 23.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.3849, allocations: 2.278 MB / 462.5 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3849, allocations: 1.562 kB / 462.5 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.3866, allocations: 0.7774 MB / 463.2 MB, free: 21.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3868, allocations: 120.9 kB / 463.4 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.3868, allocations: 7.406 kB / 463.4 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000394/0.3872, allocations: 40.23 kB / 463.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.164e-05/0.3873, allocations: 29.39 kB / 463.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.3873, allocations: 7.75 kB / 463.4 MB, free: 21.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006093/0.3879, allocations: 336.7 kB / 463.8 MB, free: 21.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.388, allocations: 5.344 kB / 463.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005957/0.3886, allocations: 91.66 kB / 463.9 MB, free: 21.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.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 (32): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001374/0.3887, allocations: 113.1 kB / 464 MB, free: 21.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008972/0.3896, allocations: 0.6756 MB / 464.7 MB, free: 20.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3896, allocations: 1.188 kB / 464.7 MB, free: 20.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004048/0.39, allocations: 319.3 kB / 465 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.3904, allocations: 51.62 kB / 465 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.392, allocations: 1.245 MB / 466.3 MB, free: 19.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.3923, allocations: 0.8486 MB / 467.1 MB, free: 18.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.3925, allocations: 53.39 kB / 467.2 MB, free: 18.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.368e-05/0.3926, allocations: 30.5 kB / 467.2 MB, free: 18.83 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3926, allocations: 3.938 kB / 467.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of Templates: time 0.0107/0.4033, allocations: 4.562 MB / 471.8 MB, free: 18.52 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) Environment - environmentSimulation: