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.001421/0.001421, allocations: 84.23 kB / 20.23 MB, free: 4.211 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.00157/0.00157, allocations: 157.7 kB / 23.53 MB, free: 0.9062 MB / 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.483/1.483, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 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.1094/0.1094, allocations: 18.13 MB / 278.5 MB, free: 11.33 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.813e-06/1.813e-06, allocations: 0 / 356.5 MB, free: 9.363 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.119e-05, allocations: 2.312 kB / 356.5 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004309/0.00434, allocations: 2.438 MB / 359 MB, free: 6.902 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.006244, allocations: 0.795 MB / 359.8 MB, free: 6.105 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.00642, allocations: 4 kB / 359.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004893/0.00691, allocations: 103.1 kB / 359.9 MB, free: 6 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.007328, allocations: 151 kB / 360 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006841/0.008012, allocations: 291.3 kB / 360.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006651/0.008677, allocations: 0.4912 MB / 360.8 MB, free: 5.074 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.008913, allocations: 93 kB / 360.9 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003967/0.00931, allocations: 207.4 kB / 361.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.009661, allocations: 199.3 kB / 361.3 MB, free: 4.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.465e-05/0.009735, allocations: 36 kB / 361.3 MB, free: 4.547 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.926e-05/0.009805, allocations: 40 kB / 361.4 MB, free: 4.508 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.009961, allocations: 115.5 kB / 361.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.01016, allocations: 131.6 kB / 361.6 MB, free: 4.266 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005698/0.01073, allocations: 438.4 kB / 362 MB, free: 3.836 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.01073, allocations: 0 / 362 MB, free: 3.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01073, allocations: 0 / 362 MB, free: 3.836 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.01074, allocations: 0 / 362 MB, free: 3.836 MB / 330.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.002218/0.01296, allocations: 0.7775 MB / 362.8 MB, free: 3.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.01302, allocations: 8.922 kB / 362.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.0132, allocations: 76.61 kB / 362.9 MB, free: 2.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.01422, allocations: 379.8 kB / 363.3 MB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.01426, allocations: 29.03 kB / 363.3 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-05/0.01434, allocations: 36.33 kB / 363.3 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006512/0.01499, allocations: 326.2 kB / 363.6 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.01501, allocations: 0 / 363.6 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.01504, allocations: 16 kB / 363.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.01506, allocations: 7.938 kB / 363.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005163/0.01557, allocations: 230.5 kB / 363.9 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.0174, allocations: 0.911 MB / 364.8 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009438/0.01835, allocations: 395.4 kB / 365.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.01863, allocations: 147.7 kB / 365.3 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.01867, allocations: 4.328 kB / 365.3 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.0187, allocations: 38.89 kB / 365.4 MB, free: 368 kB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.693e-06/0.01871, allocations: 0 / 365.4 MB, free: 368 kB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.003466/0.02217, allocations: 1.131 MB / 366.5 MB, free: 15.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.02222, allocations: 55.41 kB / 366.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009095/0.02313, allocations: 441.5 kB / 367 MB, free: 14.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.02317, allocations: 29.7 kB / 367 MB, free: 14.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.02336, allocations: 204.7 kB / 367.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.02352, allocations: 162.6 kB / 367.4 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.02365, allocations: 78.19 kB / 367.5 MB, free: 14.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.02387, allocations: 346.8 kB / 367.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.02411, allocations: 120.9 kB / 367.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.02439, allocations: 173.7 kB / 368.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004534/0.02893, allocations: 0.9182 MB / 369 MB, free: 12.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.02893, allocations: 0.6562 kB / 369 MB, free: 12.62 MB / 346.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.002435/0.03136, allocations: 0.6834 MB / 369.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.03138, allocations: 4 kB / 369.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.03139, allocations: 7.922 kB / 369.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00268/0.03407, allocations: 354.3 kB / 370 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.03445, allocations: 83.84 kB / 370.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.04496, allocations: 8.219 MB / 378.3 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004963/0.04546, allocations: 40.06 kB / 378.4 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.04549, allocations: 19.94 kB / 378.4 MB, free: 2.758 MB / 346.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.0002846/0.04577, allocations: 161.8 kB / 378.6 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.04589, allocations: 55.7 kB / 378.6 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.04763, allocations: 0.5374 MB / 379.1 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-06/0.04763, allocations: 4 kB / 379.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.04764, allocations: 0 / 379.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.04765, allocations: 3.984 kB / 379.2 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.04998, allocations: 0.9055 MB / 380.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.04999, allocations: 0 / 380.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.05032, allocations: 59.97 kB / 380.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/0.0521, allocations: 280.4 kB / 380.4 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/0.05214, allocations: 8 kB / 380.4 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005248/0.05738, allocations: 2.274 MB / 382.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.05739, allocations: 0 / 382.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002103/0.05949, allocations: 0.7842 MB / 383.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.05963, allocations: 39.75 kB / 383.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.209e-05/0.05969, allocations: 15.98 kB / 383.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.06011, allocations: 39.95 kB / 383.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-05/0.06021, allocations: 27.94 kB / 383.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.06024, allocations: 12 kB / 383.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007761/0.06101, allocations: 331 kB / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06101, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006278/0.06164, allocations: 92 kB / 384 MB, free: 12.96 MB / 362.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.0001644/0.0618, allocations: 111.2 kB / 384.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.06295, allocations: 0.6661 MB / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.06296, allocations: 0 / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005136/0.06347, allocations: 302.2 kB / 385.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.06397, allocations: 76.14 kB / 385.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.0658, allocations: 0.9304 MB / 386.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.06608, allocations: 240.2 kB / 386.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.06624, allocations: 47.2 kB / 386.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.06635, allocations: 32.48 kB / 386.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of SimCode: time 8.22e-07/0.06635, allocations: 0 / 386.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of Templates: time 0.01171/0.07807, allocations: 5.021 MB / 391.4 MB, free: 5.473 MB / 362.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=480 -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: 4.7550583040574566]