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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009816/0.0009816, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.0009937/0.0009936, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2187/0.2187, allocations: 22.34 MB / 313.3 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 8 kB / 381.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3123, allocations: 55.98 MB / 437.9 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002242/0.3146, allocations: 2.128 MB / 440 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3158, allocations: 0.7785 MB / 440.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.3159, allocations: 2.531 kB / 440.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.3163, allocations: 74.34 kB / 440.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.3165, allocations: 129.6 kB / 441 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.3168, allocations: 158 kB / 441.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003312/0.3172, allocations: 332.9 kB / 441.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.3173, allocations: 111.3 kB / 441.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.3176, allocations: 215.5 kB / 441.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.3178, allocations: 201.3 kB / 442 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.3179, allocations: 20.16 kB / 442 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.285e-05/0.3179, allocations: 16.22 kB / 442 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.549e-05/0.318, allocations: 83.77 kB / 442.1 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.565e-05/0.3181, allocations: 84.89 kB / 442.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.3183, allocations: 304.6 kB / 442.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.3183, allocations: 0 / 442.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3183, allocations: 0 / 442.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3183, allocations: 0 / 442.5 MB, free: 36.62 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.001571/0.3199, allocations: 0.7865 MB / 443.3 MB, free: 36.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3199, allocations: 8.875 kB / 443.3 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.379e-05/0.32, allocations: 65.77 kB / 443.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.057e-05/0.3201, allocations: 50.44 kB / 443.4 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007204/0.3208, allocations: 424.9 kB / 443.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3209, allocations: 27.03 kB / 443.9 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.3209, allocations: 39.77 kB / 443.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.3213, allocations: 310.9 kB / 444.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3213, allocations: 3.938 kB / 444.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.3214, allocations: 14.62 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3214, allocations: 8.75 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000348/0.3217, allocations: 226.5 kB / 444.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.3231, allocations: 1.081 MB / 445.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006909/0.3238, allocations: 420.8 kB / 445.9 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3238, allocations: 5.547 kB / 445.9 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.3239, allocations: 45.09 kB / 446 MB, free: 34.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.904e-06/0.3239, allocations: 0 / 446 MB, free: 34.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.00276/0.3266, allocations: 1.202 MB / 447.2 MB, free: 33.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.3267, allocations: 53.88 kB / 447.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006439/0.3273, allocations: 438.3 kB / 447.7 MB, free: 33.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.3274, allocations: 32.48 kB / 447.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.711e-05/0.3275, allocations: 213.6 kB / 447.9 MB, free: 33.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.991e-05/0.3276, allocations: 147.7 kB / 448 MB, free: 33.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.3276, allocations: 11 kB / 448.1 MB, free: 33.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.3277, allocations: 352.8 kB / 448.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.3278, allocations: 111.9 kB / 448.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.328, allocations: 167.5 kB / 448.7 MB, free: 32.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/0.3283, allocations: 149.5 kB / 448.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3283, allocations: 2.469 kB / 448.8 MB, free: 32.79 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.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd 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.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm 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.002099/0.3304, allocations: 0.9677 MB / 449.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3304, allocations: 5.953 kB / 449.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.3304, allocations: 2.625 kB / 449.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.332, allocations: 278.6 kB / 450.1 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.3324, allocations: 79.38 kB / 450.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007907/0.3403, allocations: 8.016 MB / 458.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.3408, allocations: 40.83 kB / 458.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.3409, allocations: 14.94 kB / 458.2 MB, free: 24.53 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.3411, allocations: 173.8 kB / 458.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.297e-05/0.3411, allocations: 39.12 kB / 458.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.3425, allocations: 0.5605 MB / 459 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.3425, allocations: 6.188 kB / 459 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.3426, allocations: 0 / 459 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3426, allocations: 7.234 kB / 459 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.3443, allocations: 1.036 MB / 460 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3444, allocations: 0 / 460 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.3446, allocations: 67.61 kB / 460.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.3457, allocations: 227.2 kB / 460.3 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.3457, allocations: 14.91 kB / 460.3 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00385/0.3496, allocations: 2.282 MB / 462.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3496, allocations: 0 / 462.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.3513, allocations: 0.7786 MB / 463.4 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.3515, allocations: 119 kB / 463.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.36e-05/0.3515, allocations: 11 kB / 463.5 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.3519, allocations: 35.36 kB / 463.6 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.323e-05/0.352, allocations: 30.47 kB / 463.6 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.352, allocations: 19.7 kB / 463.6 MB, free: 21.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006458/0.3527, allocations: 330.7 kB / 463.9 MB, free: 21.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3527, allocations: 0 / 463.9 MB, free: 21.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000611/0.3533, allocations: 93.38 kB / 464 MB, free: 21.18 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 (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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001849/0.3552, allocations: 1.331 MB / 465.4 MB, free: 20.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008891/0.3561, allocations: 0.6747 MB / 466 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3561, allocations: 1.406 kB / 466 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.3565, allocations: 317.4 kB / 466.3 MB, free: 19.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.3568, allocations: 46.56 kB / 466.4 MB, free: 19.61 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.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd 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 simCode: created linear, non-linear and system jacobian parts: time 0.008122/0.365, allocations: 4.135 MB / 470.5 MB, free: 17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.3653, allocations: 0.8394 MB / 471.4 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001975/0.3655, allocations: 46.11 kB / 471.4 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.3657, allocations: 138.8 kB / 471.5 MB, free: 16.2 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3657, allocations: 1.344 kB / 471.5 MB, free: 16.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.3931, allocations: 8.445 MB / 480 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/0.3933, allocations: 235.2 kB / 480.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/2.185, allocations: 1.062 kB / 480.2 MB, free: 15.02 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) Environment - environmentSimulation: