Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop") translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08008/0.08008, allocations: 17.69 MB / 33.63 MB, free: 1.703 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009979/0.000998, allocations: 174.2 kB / 38.91 MB, free: 8 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.4 MB / 249.5 MB, free: 2.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008574/0.0008574, allocations: 100.6 kB / 302.2 MB, free: 4.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005135/0.0005137, allocations: 12 kB / 366.9 MB, free: 3.621 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.277, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1221/0.3992, allocations: 82.92 MB / 0.4901 GB, free: 5.344 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.3995, allocations: 75.95 kB / 0.4902 GB, free: 5.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2811/0.6806, allocations: 6.141 MB / 0.4962 GB, free: 81.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.6807, allocations: 2.078 kB / 0.4962 GB, free: 81.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.975e-05/0.6807, allocations: 8.625 kB / 0.4962 GB, free: 81.2 MB / 362.7 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.001365/0.6821, allocations: 0.677 MB / 0.4968 GB, free: 80.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.6822, allocations: 9.625 kB / 0.4968 GB, free: 80.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.6823, allocations: 47.78 kB / 0.4969 GB, free: 80.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007461/0.683, allocations: 392.2 kB / 0.4973 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.6831, allocations: 19.78 kB / 0.4973 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.311e-05/0.6832, allocations: 28.23 kB / 0.4973 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006732/0.6839, allocations: 315.9 kB / 0.4976 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.6839, allocations: 8.562 kB / 0.4976 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.6839, allocations: 9.562 kB / 0.4976 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.684, allocations: 7.234 kB / 0.4976 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005681/0.6845, allocations: 244.1 kB / 0.4979 GB, free: 80.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.6867, allocations: 1.154 MB / 0.499 GB, free: 79.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.6876, allocations: 332.7 kB / 0.4993 GB, free: 79.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.6879, allocations: 134.5 kB / 0.4994 GB, free: 79.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.688, allocations: 5.578 kB / 0.4994 GB, free: 79.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.688, allocations: 40.7 kB / 0.4995 GB, free: 79.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.384e-06/0.688, allocations: 0 / 0.4995 GB, free: 79.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.004708/0.6927, allocations: 1.319 MB / 0.5008 GB, free: 79.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.6928, allocations: 81.25 kB / 0.5008 GB, free: 79.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006229/0.6934, allocations: 367.3 kB / 0.5012 GB, free: 79.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.6935, allocations: 32.39 kB / 0.5012 GB, free: 79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.6936, allocations: 204 kB / 0.5014 GB, free: 78.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.179e-05/0.6937, allocations: 99.58 kB / 0.5015 GB, free: 78.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.457e-05/0.6937, allocations: 11.94 kB / 0.5015 GB, free: 78.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6938, allocations: 353.2 kB / 0.5019 GB, free: 78.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.6941, allocations: 107 kB / 0.502 GB, free: 78.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.6944, allocations: 150.8 kB / 0.5021 GB, free: 78.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00426/0.6986, allocations: 0.9267 MB / 0.503 GB, free: 78.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.6987, allocations: 0 / 0.503 GB, free: 78.06 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=38) (initialization): time 0.002216/0.7009, allocations: 0.7121 MB / 0.5037 GB, free: 77.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.139e-05/0.701, allocations: 115.3 kB / 0.5038 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.701, allocations: 0 / 0.5038 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.7024, allocations: 222.8 kB / 0.504 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.7028, allocations: 72.33 kB / 0.5041 GB, free: 77.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005355/0.7081, allocations: 4.779 MB / 0.5088 GB, free: 73.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.7085, allocations: 35.02 kB / 0.5088 GB, free: 73.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.7085, allocations: 12.31 kB / 0.5088 GB, free: 73.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.836e-06/0.7086, allocations: 3.562 kB / 0.5088 GB, free: 73.05 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001694/0.7103, allocations: 0.6297 MB / 0.5094 GB, free: 72.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.7103, allocations: 4.094 kB / 0.5094 GB, free: 72.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.7116, allocations: 218.5 kB / 0.5096 GB, free: 72.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.7119, allocations: 66.08 kB / 0.5097 GB, free: 72.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004698/0.7166, allocations: 4.77 MB / 0.5144 GB, free: 68.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.717, allocations: 22.77 kB / 0.5144 GB, free: 68.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.717, allocations: 10.66 kB / 0.5144 GB, free: 68.23 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] G.thetap:VARIABLE(unit = "rad" fixed = true ) "generator and port absolute angles" type: Real 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 (34): * Single equations (assignments): 32 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002821/0.7173, allocations: 238.1 kB / 0.5146 GB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.7174, allocations: 44.88 kB / 0.5147 GB, free: 67.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.7187, allocations: 0.4891 MB / 0.5151 GB, free: 67.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.7187, allocations: 2.25 kB / 0.5151 GB, free: 67.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.7187, allocations: 7.781 kB / 0.5152 GB, free: 67.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.7188, allocations: 3.422 kB / 0.5152 GB, free: 67.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.7206, allocations: 0.9614 MB / 0.5161 GB, free: 67.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.7206, allocations: 2.812 kB / 0.5161 GB, free: 67.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.7209, allocations: 57.23 kB / 0.5162 GB, free: 67.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008435/0.7217, allocations: 171.1 kB / 0.5163 GB, free: 67.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.7218, allocations: 10.86 kB / 0.5163 GB, free: 67.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00253/0.7243, allocations: 1.817 MB / 0.5181 GB, free: 65.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7243, allocations: 0 / 0.5181 GB, free: 65.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.7258, allocations: 0.7083 MB / 0.5188 GB, free: 65.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.726, allocations: 135.3 kB / 0.5189 GB, free: 65.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.726, allocations: 7.844 kB / 0.5189 GB, free: 65.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.7263, allocations: 26.89 kB / 0.519 GB, free: 65.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.7264, allocations: 19.14 kB / 0.519 GB, free: 65.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.7264, allocations: 15.39 kB / 0.519 GB, free: 65.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003538/0.7268, allocations: 258.1 kB / 0.5192 GB, free: 65.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7268, allocations: 0 / 0.5192 GB, free: 65.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007204/0.7275, allocations: 122 kB / 0.5193 GB, free: 65.14 MB / 362.7 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.thetag,G.thetap,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 (26): * Single equations (assignments): 25 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001363/0.7276, allocations: 115.5 kB / 0.5195 GB, free: 65.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.7287, allocations: 0.8764 MB / 0.5203 GB, free: 64.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.7287, allocations: 8 kB / 0.5203 GB, free: 64.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.729, allocations: 261.1 kB / 0.5206 GB, free: 63.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.7295, allocations: 67.75 kB / 0.5206 GB, free: 63.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.7308, allocations: 1.029 MB / 0.5216 GB, free: 62.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.731, allocations: 0.8078 MB / 0.5224 GB, free: 62.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.7312, allocations: 60.84 kB / 0.5225 GB, free: 62.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.19e-05/0.7313, allocations: 31.44 kB / 0.5225 GB, free: 62.1 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.7313, allocations: 4 kB / 0.5225 GB, free: 62.1 MB / 362.7 MB Notification: Performance of Templates: time 0.00778/0.7391, allocations: 4.711 MB / 0.5271 GB, free: 57.53 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.PA_islanded_generator_loadDroop.pipe 2>&1)