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.001509/0.001509, allocations: 106.2 kB / 16.45 MB, free: 6.5 MB / 14.72 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.001635/0.001635, allocations: 212 kB / 19.43 MB, free: 3.656 MB / 14.72 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.635/1.635, allocations: 230.5 MB / 252.8 MB, free: 9.016 MB / 206.1 MB " [Timeout remaining time 178] 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.1062/0.1062, allocations: 22.93 MB / 331.8 MB, free: 13.8 MB / 270.1 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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 67.89 kB / 466.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3835, allocations: 59.25 MB / 0.5135 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002453/0.3859, allocations: 1.017 MB / 0.5144 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.3876, allocations: 1.273 MB / 0.5157 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.646e-05/0.3877, allocations: 9.125 kB / 0.5157 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003256/0.388, allocations: 49.12 kB / 0.5157 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.3881, allocations: 42.16 kB / 0.5158 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.3883, allocations: 81.83 kB / 0.5159 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.3886, allocations: 210.5 kB / 0.5161 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.3887, allocations: 28.98 kB / 0.5161 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.3889, allocations: 91.44 kB / 0.5162 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.3891, allocations: 100.2 kB / 0.5163 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.551e-05/0.3891, allocations: 9.812 kB / 0.5163 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.3891, allocations: 10.94 kB / 0.5163 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.759e-05/0.3892, allocations: 42.66 kB / 0.5163 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.863e-05/0.3893, allocations: 58.72 kB / 0.5164 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.3895, allocations: 124.8 kB / 0.5165 GB, free: 9.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3895, allocations: 0.5 kB / 0.5165 GB, free: 9.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3895, allocations: 0 / 0.5165 GB, free: 9.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3895, allocations: 0.875 kB / 0.5165 GB, free: 9.152 MB / 382.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.001134/0.3907, allocations: 0.5213 MB / 0.517 GB, free: 8.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3907, allocations: 10.09 kB / 0.517 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.3908, allocations: 17.33 kB / 0.517 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.3913, allocations: 292.9 kB / 0.5173 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3913, allocations: 10.94 kB / 0.5173 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.3913, allocations: 6.625 kB / 0.5173 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.3916, allocations: 121.7 kB / 0.5175 GB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3916, allocations: 2.391 kB / 0.5175 GB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.3916, allocations: 4 kB / 0.5175 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3916, allocations: 2.625 kB / 0.5175 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.3918, allocations: 89.94 kB / 0.5176 GB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006709/0.3925, allocations: 0.5739 MB / 0.5181 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.3928, allocations: 146 kB / 0.5183 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.613e-05/0.3929, allocations: 45.7 kB / 0.5183 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.393, allocations: 1.469 kB / 0.5183 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.393, allocations: 40.19 kB / 0.5183 GB, free: 7.734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.393, allocations: 3.938 kB / 0.5183 GB, free: 7.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004065/0.3934, allocations: 161.7 kB / 0.5185 GB, free: 7.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.3934, allocations: 54.75 kB / 0.5185 GB, free: 7.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004642/0.3939, allocations: 257.2 kB / 0.5188 GB, free: 7.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.3939, allocations: 30.61 kB / 0.5188 GB, free: 7.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.154e-05/0.394, allocations: 120.3 kB / 0.5189 GB, free: 7.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.394, allocations: 36.09 kB / 0.519 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.394, allocations: 29.44 kB / 0.519 GB, free: 7.258 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.3941, allocations: 328.3 kB / 0.5193 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.3942, allocations: 39.31 kB / 0.5193 GB, free: 6.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.383e-05/0.3943, allocations: 63.12 kB / 0.5194 GB, free: 6.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007719/0.3951, allocations: 254.9 kB / 0.5197 GB, free: 6.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3951, allocations: 1.125 kB / 0.5197 GB, free: 6.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002654/0.3953, allocations: 163.6 kB / 0.5198 GB, free: 6.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3954, allocations: 4.562 kB / 0.5198 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3954, allocations: 5.094 kB / 0.5198 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3954, allocations: 1.25 kB / 0.5198 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.3955, allocations: 26.61 kB / 0.5198 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3955, allocations: 5.062 kB / 0.5198 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.3957, allocations: 30.86 kB / 0.5199 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.3957, allocations: 3.188 kB / 0.5199 GB, free: 6.699 MB / 382.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 0.0001206/0.3958, allocations: 134 kB / 0.52 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.3959, allocations: 13.84 kB / 0.52 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.3959, allocations: 26.16 kB / 0.52 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.3959, allocations: 2.516 kB / 0.52 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3959, allocations: 4.312 kB / 0.5201 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3959, allocations: 1.5 kB / 0.5201 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.3962, allocations: 234.7 kB / 0.5203 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.3962, allocations: 4.812 kB / 0.5203 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.3963, allocations: 24.38 kB / 0.5203 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3963, allocations: 4 kB / 0.5203 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3963, allocations: 6.031 kB / 0.5203 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.3963, allocations: 2 kB / 0.5203 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3963, allocations: 3.938 kB / 0.5203 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.3967, allocations: 290.2 kB / 0.5206 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.3968, allocations: 92.95 kB / 0.5207 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.3968, allocations: 6.156 kB / 0.5207 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.397, allocations: 26.75 kB / 0.5207 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.3971, allocations: 9.859 kB / 0.5207 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.3971, allocations: 2.188 kB / 0.5207 GB, free: 5.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004249/0.3975, allocations: 204.6 kB / 0.5209 GB, free: 5.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3975, allocations: 0 / 0.5209 GB, free: 5.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.3978, allocations: 23.28 kB / 0.5209 GB, free: 5.883 MB / 382.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 0.000128/0.3979, allocations: 101.4 kB / 0.521 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003333/0.3983, allocations: 104.9 kB / 0.5211 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3983, allocations: 0 / 0.5211 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.3984, allocations: 45.06 kB / 0.5212 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.3987, allocations: 25.44 kB / 0.5212 GB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007309/0.3995, allocations: 342.2 kB / 0.5215 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.3997, allocations: 0.7229 MB / 0.5222 GB, free: 4.816 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.83e-05/0.3998, allocations: 29.75 kB / 0.5223 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.3998, allocations: 18.69 kB / 0.5223 GB, free: 4.801 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3998, allocations: 1.125 kB / 0.5223 GB, free: 4.801 MB / 382.1 MB Notification: Performance of Templates: time 0.005024/0.4049, allocations: 1.328 MB / 0.5236 GB, free: 4.684 MB / 382.1 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=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.163430217653513] Failed to read output from testmodel.py, exit status != 0: 0.4132285173982382 0.424510409 0.032117949 Calling exit ...