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.001172/0.001172, allocations: 87.56 kB / 20.97 MB, free: 3.582 MB / 18.57 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.001182/0.001182, allocations: 177 kB / 24.28 MB, free: 280 kB / 18.57 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.065/1.065, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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.06582/0.06582, allocations: 18.14 MB / 279.2 MB, free: 11.38 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 357.2 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.648e-05/2.778e-05, allocations: 5.266 kB / 357.2 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002812/0.002839, allocations: 2.553 MB / 359.8 MB, free: 5.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.0041, allocations: 0.8143 MB / 360.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.004256, allocations: 7.938 kB / 360.6 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.004624, allocations: 99.2 kB / 360.7 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.00486, allocations: 151 kB / 360.9 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.005264, allocations: 291.3 kB / 361.2 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.005689, allocations: 0.4912 MB / 361.6 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.00586, allocations: 92.98 kB / 361.7 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.006125, allocations: 211.3 kB / 361.9 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.006347, allocations: 207.4 kB / 362.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.006389, allocations: 36 kB / 362.2 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.358e-05/0.006433, allocations: 36 kB / 362.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-05/0.006523, allocations: 115.5 kB / 362.3 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.006622, allocations: 131.6 kB / 362.5 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.006898, allocations: 298.7 kB / 362.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.0069, allocations: 0 / 362.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.0069, allocations: 0 / 362.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.006905, allocations: 0 / 362.7 MB, free: 2.66 MB / 282.7 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.001024/0.007928, allocations: 0.8229 MB / 363.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.007965, allocations: 12.86 kB / 363.6 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.752e-05/0.008052, allocations: 72.61 kB / 363.7 MB, free: 1.719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.008451, allocations: 347.4 kB / 364 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.008477, allocations: 25.03 kB / 364 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.008518, allocations: 36.33 kB / 364.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.008823, allocations: 262.7 kB / 364.3 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.008834, allocations: 0 / 364.3 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.008856, allocations: 16 kB / 364.3 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.008868, allocations: 8 kB / 364.3 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.009069, allocations: 135.8 kB / 364.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009878/0.01006, allocations: 0.9977 MB / 365.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.01051, allocations: 293.7 kB / 365.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.01063, allocations: 100.3 kB / 365.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.01066, allocations: 8.984 kB / 365.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.01068, allocations: 41.66 kB / 365.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.332e-06/0.01068, allocations: 0 / 365.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001366/0.01205, allocations: 0.8571 MB / 366.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.01208, allocations: 63.39 kB / 366.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.01234, allocations: 382.7 kB / 367.2 MB, free: 13.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.01236, allocations: 33.7 kB / 367.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.01247, allocations: 259.3 kB / 367.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.01255, allocations: 158.7 kB / 367.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.428e-05/0.01262, allocations: 83.84 kB / 367.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.01273, allocations: 0.5196 MB / 368.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.259e-05/0.01283, allocations: 60.95 kB / 368.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.01295, allocations: 131.9 kB / 368.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.01328, allocations: 300.8 kB / 368.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01328, allocations: 0 / 368.7 MB, free: 12.39 MB / 298.7 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.0008115/0.01409, allocations: 0.5032 MB / 369.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.01411, allocations: 8 kB / 369.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.01412, allocations: 0 / 369.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007922/0.01491, allocations: 246.8 kB / 369.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.01509, allocations: 83.89 kB / 369.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/0.0191, allocations: 11.01 MB / 380.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.01923, allocations: 23.97 kB / 380.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.01924, allocations: 12 kB / 380.6 MB, free: 15.96 MB / 314.7 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.0001614/0.0194, allocations: 196.3 kB / 380.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.01947, allocations: 59.69 kB / 380.8 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005862/0.02005, allocations: 397.3 kB / 381.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.02006, allocations: 4 kB / 381.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.02006, allocations: 4 kB / 381.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.02007, allocations: 3.984 kB / 381.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009083/0.02098, allocations: 0.7943 MB / 382 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.02098, allocations: 112 / 382 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.02115, allocations: 71.91 kB / 382.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005224/0.02167, allocations: 191.4 kB / 382.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.0217, allocations: 12 kB / 382.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.02324, allocations: 2.419 MB / 384.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02324, allocations: 8.078 kB / 384.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.02393, allocations: 0.6156 MB / 385.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.02397, allocations: 43.75 kB / 385.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.02401, allocations: 12 kB / 385.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.02413, allocations: 15.98 kB / 385.4 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.694e-05/0.02423, allocations: 35.88 kB / 385.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.02424, allocations: 11.98 kB / 385.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001741/0.02442, allocations: 267.1 kB / 385.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02442, allocations: 0 / 385.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003415/0.02476, allocations: 92 kB / 385.8 MB, free: 10.52 MB / 314.7 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.0001044/0.02486, allocations: 107.2 kB / 385.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.02547, allocations: 0.7501 MB / 386.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.02548, allocations: 0 / 386.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.02573, allocations: 337.4 kB / 387 MB, free: 9.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.02603, allocations: 68.66 kB / 387.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.02723, allocations: 0.8934 MB / 388 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.943e-05/0.02733, allocations: 129.8 kB / 388.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.986e-05/0.02742, allocations: 43.25 kB / 388.1 MB, free: 8.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.02748, allocations: 28.5 kB / 388.2 MB, free: 8.043 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02749, allocations: 0 / 388.2 MB, free: 8.043 MB / 314.7 MB Notification: Performance of Templates: time 0.00906/0.03655, allocations: 5.146 MB / 393.3 MB, free: 2.926 MB / 314.7 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=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2074308898299932]