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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 77.97 kB / 21.46 MB, free: 3.043 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 161.9 kB / 24.86 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07507/0.07507, allocations: 18.13 MB / 280 MB, free: 11.16 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 358.5 MB, free: 7.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.421e-05/2.6e-05, allocations: 2.312 kB / 358.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001634/0.00166, allocations: 0.9949 MB / 359.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.002991, allocations: 1.276 MB / 360.8 MB, free: 5.223 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.162e-05/0.003073, allocations: 4 kB / 360.8 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003353/0.003408, allocations: 39.66 kB / 360.9 MB, free: 5.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.003536, allocations: 47.75 kB / 360.9 MB, free: 5.133 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.003756, allocations: 119.7 kB / 361 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.003935, allocations: 155.6 kB / 361.2 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.778e-05/0.004033, allocations: 17.69 kB / 361.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.185e-05/0.004115, allocations: 67.8 kB / 361.3 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.004242, allocations: 79.75 kB / 361.3 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.004267, allocations: 12 kB / 361.4 MB, free: 4.688 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.004283, allocations: 8 kB / 361.4 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.004338, allocations: 47.83 kB / 361.4 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.527e-05/0.004373, allocations: 27.92 kB / 361.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.004509, allocations: 99.56 kB / 361.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.004511, allocations: 0 / 361.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.004512, allocations: 0 / 361.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.004516, allocations: 0 / 361.5 MB, free: 4.508 MB / 282.7 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.0006085/0.005124, allocations: 499.8 kB / 362 MB, free: 3.984 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.005158, allocations: 8.922 kB / 362 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.005197, allocations: 24.84 kB / 362.1 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.00542, allocations: 205.7 kB / 362.3 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.005436, allocations: 4.375 kB / 362.3 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.005454, allocations: 8.375 kB / 362.3 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.005595, allocations: 109.2 kB / 362.4 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.005602, allocations: 192 / 362.4 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.005612, allocations: 8.375 kB / 362.4 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.005617, allocations: 3.938 kB / 362.4 MB, free: 3.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.469e-05/0.005682, allocations: 27.97 kB / 362.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004865/0.006169, allocations: 0.5878 MB / 363 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.006361, allocations: 94.89 kB / 363.1 MB, free: 2.812 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.554e-05/0.006397, allocations: 23.67 kB / 363.1 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.006406, allocations: 3.938 kB / 363.1 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.006429, allocations: 41.39 kB / 363.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.00643, allocations: 0 / 363.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.000172/0.006602, allocations: 89.7 kB / 363.2 MB, free: 2.637 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.006634, allocations: 63.41 kB / 363.3 MB, free: 2.562 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.006758, allocations: 242.2 kB / 363.5 MB, free: 2.309 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.006768, allocations: 25.7 kB / 363.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.006909, allocations: 166.8 kB / 363.7 MB, free: 2.109 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.006934, allocations: 43.75 kB / 363.8 MB, free: 2.066 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.006973, allocations: 35.36 kB / 363.8 MB, free: 2.023 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.007115, allocations: 0.5001 MB / 364.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.171e-05/0.007137, allocations: 11.98 kB / 364.3 MB, free: 1.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.716e-05/0.007174, allocations: 49.42 kB / 364.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.905e-05/0.007263, allocations: 86.97 kB / 364.5 MB, free: 1.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.007265, allocations: 0 / 364.5 MB, free: 1.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001088/0.007374, allocations: 97.53 kB / 364.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.007384, allocations: 7.938 kB / 364.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.007387, allocations: 0 / 364.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.436e-06/0.007396, allocations: 4 kB / 364.6 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/0.007464, allocations: 23.98 kB / 364.6 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.007467, allocations: 4 kB / 364.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.948e-05/0.007516, allocations: 12.02 kB / 364.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.007522, allocations: 0 / 364.6 MB, free: 1.195 MB / 282.7 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.957e-05/0.007622, allocations: 181 kB / 364.8 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.007648, allocations: 19.91 kB / 364.8 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.618e-05/0.007674, allocations: 21.47 kB / 364.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.007676, allocations: 0 / 364.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.007677, allocations: 0 / 364.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.007682, allocations: 3.984 kB / 364.8 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.007801, allocations: 145.1 kB / 365 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.007802, allocations: 4 kB / 365 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.307e-05/0.007865, allocations: 19.88 kB / 365 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.007866, allocations: 0 / 365 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.007876, allocations: 4 kB / 365 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.007877, allocations: 0 / 365 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.007878, allocations: 0 / 365 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.008052, allocations: 256.1 kB / 365.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.008072, allocations: 19.84 kB / 365.3 MB, free: 496 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.008087, allocations: 4 kB / 365.3 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.633e-05/0.008143, allocations: 8 kB / 365.3 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.008167, allocations: 3.984 kB / 365.3 MB, free: 480 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.00817, allocations: 4 kB / 365.3 MB, free: 476 kB / 282.7 MB Notification: Performance of sorting global known variables: time 7.617e-05/0.008247, allocations: 172.2 kB / 365.4 MB, free: 304 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008247, allocations: 4 kB / 365.5 MB, free: 300 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001493/0.008396, allocations: 20 kB / 365.5 MB, free: 280 kB / 282.7 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 7.04e-05/0.008466, allocations: 103.2 kB / 365.6 MB, free: 164 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.008575, allocations: 55.64 kB / 365.6 MB, free: 104 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.008576, allocations: 8.125 kB / 365.6 MB, free: 96 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.008608, allocations: 31.61 kB / 365.7 MB, free: 60 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.00881, allocations: 31.91 kB / 365.7 MB, free: 28 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.009155, allocations: 293.8 kB / 366 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.22e-05/0.009227, allocations: 75.81 kB / 366.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.677e-05/0.009263, allocations: 13.14 kB / 366.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.009331, allocations: 86.2 kB / 366.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.009331, allocations: 0 / 366.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of Templates: time 0.002905/0.01224, allocations: 1.51 MB / 367.7 MB, free: 14.04 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile [Timeout 660] (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=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8611703971400857]