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.001159/0.001159, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001119/0.001119, allocations: 193.3 kB / 16.14 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2242/0.2242, allocations: 22.36 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 63.89 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2836, allocations: 54.95 MB / 435 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003442/0.2871, allocations: 2.637 MB / 437.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2883, allocations: 0.7948 MB / 438.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.2885, allocations: 6.938 kB / 438.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.2889, allocations: 64.05 kB / 438.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.2891, allocations: 128.4 kB / 438.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.2894, allocations: 187.3 kB / 438.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.2898, allocations: 0.5223 MB / 439.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.29, allocations: 126 kB / 439.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.2903, allocations: 209 kB / 439.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.2905, allocations: 244.9 kB / 439.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.2906, allocations: 21.44 kB / 440 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.2906, allocations: 22.44 kB / 440 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.2907, allocations: 95.78 kB / 440.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.2909, allocations: 186.7 kB / 440.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.2912, allocations: 403.8 kB / 440.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2912, allocations: 7.875 kB / 440.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.2912, allocations: 0 / 440.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.2912, allocations: 0 / 440.7 MB, free: 36.23 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.001708/0.2929, allocations: 0.8442 MB / 441.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2929, allocations: 9.031 kB / 441.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.178e-05/0.293, allocations: 51.44 kB / 441.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007235/0.2938, allocations: 434 kB / 442 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.2938, allocations: 24.16 kB / 442 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.2938, allocations: 38.28 kB / 442.1 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/0.2943, allocations: 317.4 kB / 442.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2943, allocations: 0 / 442.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.2943, allocations: 14.62 kB / 442.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2943, allocations: 8.219 kB / 442.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000371/0.2947, allocations: 226.5 kB / 442.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2961, allocations: 1.074 MB / 443.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000743/0.2968, allocations: 418.8 kB / 444.1 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.2971, allocations: 158.7 kB / 444.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.2971, allocations: 7.047 kB / 444.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.2971, allocations: 42.3 kB / 444.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 3.116e-06/0.2971, allocations: 0 / 444.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002878/0.3, allocations: 1.193 MB / 445.5 MB, free: 33.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.3, allocations: 54.31 kB / 445.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.3007, allocations: 434.4 kB / 446 MB, free: 33.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3007, allocations: 34.86 kB / 446 MB, free: 33.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.3008, allocations: 213.5 kB / 446.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.797e-05/0.3009, allocations: 144.7 kB / 446.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.099e-05/0.301, allocations: 74.39 kB / 446.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.476e-05/0.3011, allocations: 356.4 kB / 446.8 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.3013, allocations: 121.8 kB / 446.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.3015, allocations: 176.9 kB / 447.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00404/0.3055, allocations: 0.9147 MB / 448 MB, free: 32.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3055, allocations: 2.375 kB / 448 MB, free: 32.12 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.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.002021/0.3076, allocations: 0.9532 MB / 448.9 MB, free: 31.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3076, allocations: 5.25 kB / 448.9 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3076, allocations: 3.938 kB / 448.9 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.3092, allocations: 264.4 kB / 449.2 MB, free: 31.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.3095, allocations: 83.33 kB / 449.3 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006064/0.3156, allocations: 7.919 MB / 457.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.316, allocations: 36.47 kB / 457.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.316, allocations: 13.53 kB / 457.2 MB, free: 23.88 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 (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.0001808/0.3162, allocations: 175.8 kB / 457.4 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3163, allocations: 38.03 kB / 457.5 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.3176, allocations: 0.5386 MB / 458 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3176, allocations: 6.312 kB / 458 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.3177, allocations: 0 / 458 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3177, allocations: 4 kB / 458 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.3195, allocations: 1.037 MB / 459 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3195, allocations: 0 / 459 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.3198, allocations: 60.14 kB / 459.1 MB, free: 22.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.3209, allocations: 218.9 kB / 459.3 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.3209, allocations: 10.78 kB / 459.3 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003517/0.3244, allocations: 2.187 MB / 461.5 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3244, allocations: 1.125 kB / 461.5 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.3261, allocations: 0.7739 MB / 462.3 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.3262, allocations: 118.2 kB / 462.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.3263, allocations: 9.703 kB / 462.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003795/0.3266, allocations: 38.69 kB / 462.4 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.3267, allocations: 30.27 kB / 462.5 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.3268, allocations: 10.66 kB / 462.5 MB, free: 20.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006046/0.3274, allocations: 329.5 kB / 462.8 MB, free: 20.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3274, allocations: 4 kB / 462.8 MB, free: 20.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005647/0.328, allocations: 92.72 kB / 462.9 MB, free: 20.55 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 (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.0001158/0.3281, allocations: 109.2 kB / 463 MB, free: 20.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008384/0.3289, allocations: 0.6661 MB / 463.7 MB, free: 20 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3289, allocations: 3.938 kB / 463.7 MB, free: 20 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.3293, allocations: 315.8 kB / 464 MB, free: 19.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.3298, allocations: 65.03 kB / 464.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.3314, allocations: 1.222 MB / 465.3 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.3316, allocations: 0.8328 MB / 466.1 MB, free: 18.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.3318, allocations: 46 kB / 466.2 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.523e-05/0.3319, allocations: 26.47 kB / 466.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3319, allocations: 0 / 466.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of Templates: time 0.01015/0.3421, allocations: 4.803 MB / 471 MB, free: 17.89 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (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)