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.001338/0.001338, allocations: 99.39 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.000918/0.0009182, allocations: 177.3 kB / 15.95 MB, free: 216 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.365/1.365, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2549/0.2549, allocations: 22.33 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003035, allocations: 4 kB / 381.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3014, allocations: 55.97 MB / 437.8 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001448/0.3029, allocations: 0.7124 MB / 438.5 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.3046, allocations: 1.193 MB / 439.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.467e-05/0.3047, allocations: 0 / 439.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.305, allocations: 29.61 kB / 439.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.3052, allocations: 48.02 kB / 439.8 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.3054, allocations: 58.59 kB / 439.8 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.3056, allocations: 120.8 kB / 440 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3057, allocations: 31.22 kB / 440 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.3058, allocations: 88.27 kB / 440.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.306, allocations: 77.12 kB / 440.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.306, allocations: 6 kB / 440.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.306, allocations: 3.531 kB / 440.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.986e-05/0.3061, allocations: 34.44 kB / 440.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.3061, allocations: 47.52 kB / 440.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.897e-05/0.3062, allocations: 88.11 kB / 440.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.3062, allocations: 2.438 kB / 440.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3062, allocations: 0 / 440.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.3063, allocations: 0 / 440.3 MB, free: 37.42 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.0009202/0.3072, allocations: 0.4954 MB / 440.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3072, allocations: 11.12 kB / 440.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.3073, allocations: 13.69 kB / 440.8 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/0.3079, allocations: 286.1 kB / 441.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.3079, allocations: 2.625 kB / 441.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.308, allocations: 15.53 kB / 441.1 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002428/0.3082, allocations: 114.3 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3082, allocations: 2.906 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.3082, allocations: 7.953 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3083, allocations: 3.094 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.3084, allocations: 89.05 kB / 441.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007299/0.3092, allocations: 0.5826 MB / 441.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.3095, allocations: 135.2 kB / 442.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.3096, allocations: 6.734 kB / 442.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.3096, allocations: 38.5 kB / 442.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3096, allocations: 0 / 442.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003287/0.3099, allocations: 168.4 kB / 442.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.31, allocations: 54.47 kB / 442.3 MB, free: 35.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.3104, allocations: 247.6 kB / 442.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.3104, allocations: 33.7 kB / 442.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.3105, allocations: 116.8 kB / 442.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.3105, allocations: 36.12 kB / 442.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.3105, allocations: 0 / 442.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.3106, allocations: 331 kB / 443.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.057e-05/0.3107, allocations: 36.91 kB / 443.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.721e-05/0.3108, allocations: 61.34 kB / 443.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.385e-05/0.3109, allocations: 56.16 kB / 443.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3109, allocations: 0 / 443.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002301/0.3111, allocations: 166.3 kB / 443.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3111, allocations: 5.688 kB / 443.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3111, allocations: 0 / 443.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3112, allocations: 2.781 kB / 443.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3113, allocations: 24.62 kB / 443.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3113, allocations: 6.812 kB / 443.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.3115, allocations: 36.38 kB / 443.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.3115, allocations: 7.344 kB / 443.5 MB, free: 35.11 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.0001284/0.3116, allocations: 133.2 kB / 443.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.229e-05/0.3117, allocations: 21.16 kB / 443.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.3117, allocations: 26.5 kB / 443.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3117, allocations: 2.875 kB / 443.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3117, allocations: 4 kB / 443.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3117, allocations: 0 / 443.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.3119, allocations: 236 kB / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.3119, allocations: 3.953 kB / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.3121, allocations: 14.72 kB / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3121, allocations: 2.531 kB / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.3121, allocations: 0 / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3121, allocations: 0 / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3121, allocations: 3 kB / 443.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003288/0.3124, allocations: 285 kB / 444.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.3125, allocations: 101.7 kB / 444.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.3125, allocations: 2.938 kB / 444.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.3127, allocations: 27.36 kB / 444.3 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.3128, allocations: 2.594 kB / 444.3 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.3128, allocations: 10.53 kB / 444.3 MB, free: 34.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000364/0.3132, allocations: 199.5 kB / 444.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3132, allocations: 0 / 444.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.3135, allocations: 24.91 kB / 444.6 MB, free: 34.31 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 0.0001099/0.3136, allocations: 104.7 kB / 444.7 MB, free: 34.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.3138, allocations: 103.7 kB / 444.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3139, allocations: 2.812 kB / 444.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.399e-05/0.3139, allocations: 48.55 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.3142, allocations: 24.41 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006419/0.3149, allocations: 365.9 kB / 445.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.3151, allocations: 0.7332 MB / 445.9 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.113e-05/0.3152, allocations: 30.41 kB / 446 MB, free: 33.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.4e-05/0.3152, allocations: 13.81 kB / 446 MB, free: 33.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3152, allocations: 0 / 446 MB, free: 33.21 MB / 350.1 MB Notification: Performance of Templates: time 0.003802/0.3191, allocations: 1.162 MB / 447.1 MB, free: 33.11 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: