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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 78.17 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 158.2 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09949/0.09949, allocations: 17.8 MB / 277.6 MB, free: 15.33 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,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=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003056/0.003056, allocations: 63.89 kB / 414.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1604, allocations: 59.57 MB / 474.2 MB, free: 8.812 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.006179/0.1665, allocations: 2.442 MB / 476.7 MB, free: 6.352 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.1689, allocations: 0.7913 MB / 477.4 MB, free: 5.559 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.1693, allocations: 7.938 kB / 477.5 MB, free: 5.551 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006495/0.1699, allocations: 111.2 kB / 477.6 MB, free: 5.441 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006503/0.1706, allocations: 139.1 kB / 477.7 MB, free: 5.301 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007694/0.1714, allocations: 227.6 kB / 477.9 MB, free: 5.078 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.1727, allocations: 0.5811 MB / 478.5 MB, free: 4.492 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.173, allocations: 97 kB / 478.6 MB, free: 4.395 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007334/0.1738, allocations: 251.1 kB / 478.8 MB, free: 4.148 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005939/0.1743, allocations: 242.8 kB / 479.1 MB, free: 3.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1745, allocations: 36 kB / 479.1 MB, free: 3.875 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.1746, allocations: 36 kB / 479.2 MB, free: 3.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.1748, allocations: 119.5 kB / 479.3 MB, free: 3.723 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.1751, allocations: 163 kB / 479.4 MB, free: 3.562 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006919/0.1758, allocations: 437.9 kB / 479.9 MB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1758, allocations: 0 / 479.9 MB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1758, allocations: 4 kB / 479.9 MB, free: 3.129 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.1758, allocations: 0 / 479.9 MB, free: 3.129 MB / 446.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.002777/0.1786, allocations: 0.7814 MB / 480.6 MB, free: 2.316 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1786, allocations: 12.92 kB / 480.7 MB, free: 2.305 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.1788, allocations: 48.61 kB / 480.7 MB, free: 2.258 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.18, allocations: 384.5 kB / 481.1 MB, free: 1.859 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/0.1801, allocations: 25.03 kB / 481.1 MB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.728e-05/0.1801, allocations: 35.94 kB / 481.1 MB, free: 1.801 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000805/0.1809, allocations: 313.9 kB / 481.4 MB, free: 1.477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.181, allocations: 4 kB / 481.4 MB, free: 1.473 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.181, allocations: 16 kB / 481.5 MB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.181, allocations: 8 kB / 481.5 MB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006485/0.1817, allocations: 234.4 kB / 481.7 MB, free: 1.219 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.1839, allocations: 0.9032 MB / 482.6 MB, free: 276 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2529/0.4368, allocations: 394.6 kB / 483 MB, free: 52.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.4371, allocations: 150.2 kB / 483.1 MB, free: 52.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.4371, allocations: 3.484 kB / 483.1 MB, free: 52.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.4371, allocations: 37.11 kB / 483.2 MB, free: 52.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=40): time 2.044e-06/0.4371, allocations: 2 kB / 483.2 MB, free: 52.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.002903/0.44, allocations: 1.123 MB / 484.3 MB, free: 52.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.4401, allocations: 54.97 kB / 484.4 MB, free: 52.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007069/0.4408, allocations: 440.7 kB / 484.8 MB, free: 51.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.4408, allocations: 35.42 kB / 484.8 MB, free: 51.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.4409, allocations: 205.7 kB / 485 MB, free: 51.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.242e-05/0.441, allocations: 153.6 kB / 485.2 MB, free: 51.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.826e-05/0.441, allocations: 79.56 kB / 485.2 MB, free: 51.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.039e-05/0.4411, allocations: 353.7 kB / 485.6 MB, free: 51.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.4413, allocations: 121.3 kB / 485.7 MB, free: 51.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.4415, allocations: 173.3 kB / 485.9 MB, free: 51.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004005/0.4455, allocations: 0.9148 MB / 486.8 MB, free: 51.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4455, allocations: 0 / 486.8 MB, free: 51.25 MB / 446.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.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm 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.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.002047/0.4476, allocations: 0.6541 MB / 487.4 MB, free: 51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.4476, allocations: 6.375 kB / 487.5 MB, free: 51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4476, allocations: 3.594 kB / 487.5 MB, free: 51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.4492, allocations: 262.5 kB / 487.7 MB, free: 50.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.4495, allocations: 79.12 kB / 487.8 MB, free: 50.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006701/0.4562, allocations: 8.202 MB / 496 MB, free: 43.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.4567, allocations: 47.61 kB / 496 MB, free: 43.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.4567, allocations: 16.38 kB / 496.1 MB, free: 43.29 MB / 446.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001957/0.4569, allocations: 173.6 kB / 496.2 MB, free: 43.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.596e-05/0.457, allocations: 42.31 kB / 496.3 MB, free: 43.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.4584, allocations: 0.5342 MB / 496.8 MB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.4584, allocations: 3.219 kB / 496.8 MB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.4584, allocations: 0 / 496.8 MB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4584, allocations: 6.281 kB / 496.8 MB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.4602, allocations: 0.9007 MB / 497.7 MB, free: 42.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4602, allocations: 7.125 kB / 497.7 MB, free: 42.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.4605, allocations: 62.67 kB / 497.8 MB, free: 42.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009788/0.4614, allocations: 186.4 kB / 498 MB, free: 42.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.4615, allocations: 11.19 kB / 498 MB, free: 42.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.4653, allocations: 2.262 MB / 0.4885 GB, free: 40.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4653, allocations: 0 / 0.4885 GB, free: 40.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.4669, allocations: 0.7661 MB / 0.4893 GB, free: 40.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.776e-05/0.467, allocations: 44.22 kB / 0.4893 GB, free: 40.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.467, allocations: 15.09 kB / 0.4893 GB, free: 40.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003948/0.4674, allocations: 41.02 kB / 0.4894 GB, free: 40.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/0.4675, allocations: 36.56 kB / 0.4894 GB, free: 40.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.4675, allocations: 10.47 kB / 0.4894 GB, free: 40.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005906/0.4681, allocations: 332.1 kB / 0.4897 GB, free: 40.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4681, allocations: 0 / 0.4897 GB, free: 40.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005807/0.4687, allocations: 91.53 kB / 0.4898 GB, free: 40.16 MB / 446.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 (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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001176/0.4688, allocations: 110.5 kB / 0.4899 GB, free: 40.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008387/0.4697, allocations: 0.6579 MB / 0.4906 GB, free: 39.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4697, allocations: 0 / 0.4906 GB, free: 39.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003531/0.47, allocations: 301.2 kB / 0.4908 GB, free: 39.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.4704, allocations: 66.95 kB / 0.4909 GB, free: 39.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.4718, allocations: 1.055 MB / 0.4919 GB, free: 38.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.472, allocations: 238.3 kB / 0.4922 GB, free: 38.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.4721, allocations: 45.89 kB / 0.4922 GB, free: 38.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.321e-05/0.4722, allocations: 31.14 kB / 0.4922 GB, free: 38.68 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4722, allocations: 2.062 kB / 0.4922 GB, free: 38.68 MB / 446.1 MB Notification: Performance of Templates: time 0.009098/0.4813, allocations: 4.991 MB / 0.4971 GB, free: 38.12 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.504195451037958] Failed to read output from testmodel.py, exit status != 0: 0.4923002760624513 0.501816836 0.322895947 Calling exit ...