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.0008666/0.0008666, allocations: 86.33 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.0009648/0.0009648, 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2453/0.2453, allocations: 22.34 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3691/0.3695, allocations: 55.98 MB / 437.9 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001419/0.371, allocations: 0.7005 MB / 438.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3724, allocations: 1.182 MB / 439.8 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3725, allocations: 6.625 kB / 439.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003586/0.3729, allocations: 32.27 kB / 439.8 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.3731, allocations: 43.34 kB / 439.9 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.3732, allocations: 66.2 kB / 439.9 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.3735, allocations: 179 kB / 440.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3736, allocations: 24.48 kB / 440.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.3737, allocations: 92.38 kB / 440.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.3739, allocations: 87.05 kB / 440.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.3739, allocations: 2.812 kB / 440.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.3739, allocations: 5.531 kB / 440.3 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.374, allocations: 36.17 kB / 440.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.471e-05/0.374, allocations: 43.33 kB / 440.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.3742, allocations: 81.88 kB / 440.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3742, allocations: 0 / 440.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3742, allocations: 0 / 440.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.3742, allocations: 0 / 440.5 MB, free: 37.66 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.000929/0.3751, allocations: 0.505 MB / 441 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3752, allocations: 11.03 kB / 441 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.662e-05/0.3752, allocations: 15.81 kB / 441 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.3757, allocations: 272.9 kB / 441.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3757, allocations: 10.09 kB / 441.3 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.3758, allocations: 13.25 kB / 441.3 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.376, allocations: 122.2 kB / 441.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.376, allocations: 0 / 441.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.376, allocations: 6.391 kB / 441.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.376, allocations: 3.531 kB / 441.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.3762, allocations: 88.12 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006847/0.3769, allocations: 0.5854 MB / 442.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.3773, allocations: 147.6 kB / 442.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.375e-05/0.3774, allocations: 51.38 kB / 442.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.3774, allocations: 6.859 kB / 442.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.3774, allocations: 30.56 kB / 442.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3774, allocations: 0 / 442.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000349/0.3778, allocations: 163.5 kB / 442.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3778, allocations: 55.34 kB / 442.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.3782, allocations: 255.6 kB / 442.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.3783, allocations: 25.7 kB / 442.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.3783, allocations: 120.9 kB / 442.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.3784, allocations: 32.77 kB / 443 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-06/0.3784, allocations: 4 kB / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.3785, allocations: 333.3 kB / 443.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.628e-05/0.3786, allocations: 40.12 kB / 443.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.089e-05/0.3786, allocations: 62.61 kB / 443.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.765e-05/0.3788, allocations: 50.75 kB / 443.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3788, allocations: 0 / 443.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002367/0.379, allocations: 170.1 kB / 443.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.379, allocations: 2.812 kB / 443.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.379, allocations: 2.781 kB / 443.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3791, allocations: 0 / 443.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.3792, allocations: 26.3 kB / 443.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3792, allocations: 2.875 kB / 443.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.3794, allocations: 35.84 kB / 443.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.3794, allocations: 5.5 kB / 443.7 MB, free: 35.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.3795, allocations: 136.5 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.3796, allocations: 16.91 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.3796, allocations: 20.84 kB / 443.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3796, allocations: 0 / 443.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3796, allocations: 2.531 kB / 443.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3796, allocations: 3.422 kB / 443.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.3799, allocations: 238.9 kB / 444.1 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3799, allocations: 4 kB / 444.1 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.38, allocations: 19.53 kB / 444.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.38, allocations: 3.125 kB / 444.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.38, allocations: 8 kB / 444.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.38, allocations: 0 / 444.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.38, allocations: 0 / 444.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.3804, allocations: 279.8 kB / 444.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.3804, allocations: 98.25 kB / 444.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.3805, allocations: 14.28 kB / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.3806, allocations: 21.02 kB / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.3807, allocations: 5.688 kB / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.3807, allocations: 3.125 kB / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003116/0.381, allocations: 207.1 kB / 444.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.381, allocations: 0 / 444.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00024/0.3813, allocations: 21.84 kB / 444.8 MB, free: 34.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.194e-05/0.3814, allocations: 100.8 kB / 444.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3816, allocations: 111.9 kB / 445 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3816, allocations: 0 / 445 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.022e-05/0.3817, allocations: 46.38 kB / 445 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.382, allocations: 28.22 kB / 445 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006497/0.3827, allocations: 363.7 kB / 445.4 MB, free: 34.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.3829, allocations: 0.7286 MB / 446.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.448e-05/0.383, allocations: 26.67 kB / 446.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.383, allocations: 16.16 kB / 446.2 MB, free: 33.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.383, allocations: 3.938 kB / 446.2 MB, free: 33.41 MB / 350.1 MB Notification: Performance of Templates: time 0.003704/0.3867, allocations: 1.172 MB / 447.3 MB, free: 33.31 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)