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.0008346/0.0008396, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001802/0.001802, allocations: 168.7 kB / 15.95 MB, free: 204 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.609/1.609, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2415/0.2415, allocations: 22.35 MB / 313.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000496/0.0004962, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4174, allocations: 55.97 MB / 437.9 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002256/0.4197, allocations: 2.173 MB / 440.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.4209, allocations: 0.7652 MB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.4211, allocations: 2.969 kB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003723/0.4214, allocations: 75.52 kB / 440.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.4217, allocations: 120.1 kB / 441 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.422, allocations: 157.3 kB / 441.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.4225, allocations: 488.3 kB / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.4227, allocations: 106 kB / 441.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.4229, allocations: 213.5 kB / 442 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.4232, allocations: 213.7 kB / 442.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.4233, allocations: 14.16 kB / 442.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.524e-05/0.4233, allocations: 16.28 kB / 442.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.4234, allocations: 88.83 kB / 442.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.521e-05/0.4235, allocations: 85.02 kB / 442.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.4238, allocations: 300.9 kB / 442.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4238, allocations: 0 / 442.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4238, allocations: 0 / 442.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.4238, allocations: 3 kB / 442.7 MB, free: 36.59 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.00158/0.4254, allocations: 0.7812 MB / 443.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4254, allocations: 11.47 kB / 443.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.4255, allocations: 45.94 kB / 443.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/0.4262, allocations: 425.9 kB / 443.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.4263, allocations: 25.72 kB / 444 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.4263, allocations: 43.06 kB / 444 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.4268, allocations: 314 kB / 444.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4268, allocations: 0 / 444.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.4269, allocations: 10.81 kB / 444.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.4269, allocations: 8.625 kB / 444.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/0.4272, allocations: 232.7 kB / 444.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.4286, allocations: 1.077 MB / 445.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007252/0.4293, allocations: 422.2 kB / 446.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.4296, allocations: 163.5 kB / 446.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.4296, allocations: 10.48 kB / 446.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.4296, allocations: 34.89 kB / 446.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.362e-06/0.4297, allocations: 0 / 446.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002649/0.4323, allocations: 1.207 MB / 447.5 MB, free: 33.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.4323, allocations: 58.47 kB / 447.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.433, allocations: 433.4 kB / 447.9 MB, free: 33.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.433, allocations: 36.36 kB / 448 MB, free: 33.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4331, allocations: 207.8 kB / 448.2 MB, free: 33.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.4332, allocations: 148 kB / 448.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.4333, allocations: 9.438 kB / 448.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.076e-05/0.4334, allocations: 350.6 kB / 448.7 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.4336, allocations: 114.6 kB / 448.8 MB, free: 32.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.4338, allocations: 179.7 kB / 449 MB, free: 32.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.434, allocations: 135.8 kB / 449.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.434, allocations: 0 / 449.1 MB, free: 32.77 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.001921/0.4359, allocations: 0.9761 MB / 450.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.436, allocations: 6.375 kB / 450.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.436, allocations: 0 / 450.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.4374, allocations: 273.6 kB / 450.3 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.4377, allocations: 87.12 kB / 450.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005767/0.4435, allocations: 7.955 MB / 458.4 MB, free: 24.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000439/0.444, allocations: 47.61 kB / 458.4 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.444, allocations: 9.062 kB / 458.4 MB, free: 24.51 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.0002307/0.4443, allocations: 177.4 kB / 458.6 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.4e-05/0.4443, allocations: 37.91 kB / 458.7 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.4456, allocations: 0.5589 MB / 459.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4457, allocations: 2.688 kB / 459.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.4457, allocations: 3.953 kB / 459.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4457, allocations: 6.062 kB / 459.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.4474, allocations: 1.044 MB / 460.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.4474, allocations: 11.89 kB / 460.3 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.4477, allocations: 59.14 kB / 460.3 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009533/0.4486, allocations: 230.8 kB / 460.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.4487, allocations: 8 kB / 460.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003288/0.452, allocations: 2.205 MB / 462.8 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.452, allocations: 3.938 kB / 462.8 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.4536, allocations: 0.7775 MB / 463.6 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.087e-05/0.4537, allocations: 117.5 kB / 463.7 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.671e-05/0.4537, allocations: 11.62 kB / 463.7 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.4541, allocations: 43.64 kB / 463.7 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.4541, allocations: 29.62 kB / 463.8 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.4542, allocations: 18.48 kB / 463.8 MB, free: 21.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005769/0.4548, allocations: 331.7 kB / 464.1 MB, free: 21.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4548, allocations: 0 / 464.1 MB, free: 21.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005979/0.4554, allocations: 91.84 kB / 464.2 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.0001315/0.4555, allocations: 110.1 kB / 464.3 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000857/0.4564, allocations: 0.6749 MB / 465 MB, free: 20.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4564, allocations: 0 / 465 MB, free: 20.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003748/0.4568, allocations: 323 kB / 465.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.4572, allocations: 59.62 kB / 465.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.4589, allocations: 1.251 MB / 466.6 MB, free: 19.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.4592, allocations: 0.8349 MB / 467.4 MB, free: 18.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.4594, allocations: 49.73 kB / 467.5 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.218e-05/0.4595, allocations: 30.08 kB / 467.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4595, allocations: 0 / 467.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of Templates: time 0.01008/0.4696, allocations: 4.579 MB / 472.1 MB, free: 18.55 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)