Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009999/0.0009998, allocations: 110.4 kB / 15.99 MB, free: 5.891 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.0009849/0.000985, allocations: 195.7 kB / 16.91 MB, free: 5.746 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.231/1.231, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1833/0.1833, allocations: 22.37 MB / 313.1 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.91 kB / 381 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.236, allocations: 54.94 MB / 435.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001811/0.2379, allocations: 1.067 MB / 437 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009528/0.2388, allocations: 1.22 MB / 438.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.877e-05/0.2389, allocations: 2.719 kB / 438.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.2392, allocations: 33.27 kB / 438.2 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.2393, allocations: 39.02 kB / 438.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.2394, allocations: 76.14 kB / 438.4 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2396, allocations: 217.1 kB / 438.6 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.391e-05/0.2397, allocations: 34.28 kB / 438.6 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.489e-05/0.2398, allocations: 84.23 kB / 438.7 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.24, allocations: 94.08 kB / 438.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.24, allocations: 9.031 kB / 438.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.79e-05/0.24, allocations: 11.19 kB / 438.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.2401, allocations: 46.69 kB / 438.8 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.327e-05/0.2401, allocations: 61.66 kB / 438.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.234e-05/0.2402, allocations: 97.94 kB / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2402, allocations: 0 / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2402, allocations: 0 / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.2402, allocations: 0 / 439 MB, free: 37.98 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008666/0.2411, allocations: 0.5092 MB / 439.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.2411, allocations: 13.47 kB / 439.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.2412, allocations: 16.31 kB / 439.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.2416, allocations: 286.4 kB / 439.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.2416, allocations: 9.906 kB / 439.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.2416, allocations: 12.98 kB / 439.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.2418, allocations: 128.3 kB / 440 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.2418, allocations: 0 / 440 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2419, allocations: 2.719 kB / 440 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2419, allocations: 0 / 440 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.242, allocations: 94.03 kB / 440.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005321/0.2426, allocations: 0.579 MB / 440.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.2429, allocations: 138.7 kB / 440.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.243, allocations: 45.88 kB / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.243, allocations: 2.875 kB / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.158e-05/0.243, allocations: 38.69 kB / 440.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.243, allocations: 4 kB / 440.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002875/0.2433, allocations: 161.1 kB / 441 MB, free: 36.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.303e-05/0.2433, allocations: 57.81 kB / 441.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.2437, allocations: 249.9 kB / 441.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.2437, allocations: 29.7 kB / 441.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.057e-05/0.2438, allocations: 120.4 kB / 441.5 MB, free: 36.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.2438, allocations: 41.64 kB / 441.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.2438, allocations: 32.52 kB / 441.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.2439, allocations: 321.1 kB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.244, allocations: 39.77 kB / 441.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.974e-05/0.244, allocations: 66.14 kB / 441.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006566/0.2447, allocations: 247.4 kB / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2447, allocations: 7.25 kB / 442.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002058/0.2449, allocations: 163.7 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.2449, allocations: 8.125 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.245, allocations: 4 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.245, allocations: 0 / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.2451, allocations: 21.47 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.2451, allocations: 6.688 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.2453, allocations: 43.91 kB / 442.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.2453, allocations: 2.75 kB / 442.4 MB, free: 35.53 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.676e-05/0.2454, allocations: 133.2 kB / 442.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.2454, allocations: 14.47 kB / 442.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.114e-05/0.2455, allocations: 30.47 kB / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2455, allocations: 0 / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2455, allocations: 0 / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2455, allocations: 11.92 kB / 442.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.2457, allocations: 230 kB / 442.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2457, allocations: 0 / 442.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.2458, allocations: 20.06 kB / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2458, allocations: 0 / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2458, allocations: 6.844 kB / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2458, allocations: 0 / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2458, allocations: 0 / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.2461, allocations: 288.8 kB / 443.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.372e-05/0.2462, allocations: 95.89 kB / 443.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.2462, allocations: 7.188 kB / 443.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.2464, allocations: 19.02 kB / 443.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.2464, allocations: 10.5 kB / 443.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.2464, allocations: 2.875 kB / 443.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003145/0.2468, allocations: 202.4 kB / 443.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2468, allocations: 0 / 443.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.247, allocations: 22.81 kB / 443.5 MB, free: 34.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.338e-05/0.2471, allocations: 101 kB / 443.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001949/0.2473, allocations: 110 kB / 443.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2473, allocations: 6.688 kB / 443.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.119e-05/0.2474, allocations: 46.06 kB / 443.8 MB, free: 34.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.2477, allocations: 32.33 kB / 443.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004716/0.2481, allocations: 408.7 kB / 444.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2483, allocations: 0.7301 MB / 444.9 MB, free: 33.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.2483, allocations: 15.38 kB / 444.9 MB, free: 33.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2483, allocations: 4 kB / 445 MB, free: 33.58 MB / 350.1 MB Notification: Performance of Templates: time 0.002584/0.2509, allocations: 1.898 MB / 446.8 MB, free: 33.43 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)