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.001513/0.001513, allocations: 104.3 kB / 19.72 MB, free: 1.926 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.001906/0.001906, allocations: 209.1 kB / 23.01 MB, free: 4.98 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.586/1.586, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1129/0.1129, allocations: 24.03 MB / 337.2 MB, free: 11.34 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.002548/0.002548, allocations: 63.91 kB / 474.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4793/0.4818, allocations: 59.58 MB / 0.5214 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002723/0.4846, allocations: 0.9727 MB / 0.5223 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.4865, allocations: 1.23 MB / 0.5235 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.4866, allocations: 10.44 kB / 0.5235 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003331/0.4869, allocations: 43.91 kB / 0.5236 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.4871, allocations: 47.55 kB / 0.5236 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.4873, allocations: 88.59 kB / 0.5237 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.4877, allocations: 258.5 kB / 0.524 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.4878, allocations: 21.27 kB / 0.524 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.488, allocations: 95.2 kB / 0.5241 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.4882, allocations: 100.8 kB / 0.5242 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.4882, allocations: 8.906 kB / 0.5242 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.624e-05/0.4883, allocations: 11.28 kB / 0.5242 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.4883, allocations: 46.31 kB / 0.5242 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.28e-05/0.4884, allocations: 43.38 kB / 0.5243 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.4886, allocations: 129.2 kB / 0.5244 GB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4886, allocations: 1.188 kB / 0.5244 GB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4886, allocations: 0 / 0.5244 GB, free: 8.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.4886, allocations: 0.7969 kB / 0.5244 GB, free: 8.527 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.001197/0.4898, allocations: 461.3 kB / 0.5248 GB, free: 8.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4899, allocations: 11.14 kB / 0.5248 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.4899, allocations: 21.62 kB / 0.5249 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/0.4905, allocations: 230.2 kB / 0.5251 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.4905, allocations: 3.781 kB / 0.5251 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.4906, allocations: 10.12 kB / 0.5251 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.4909, allocations: 127.1 kB / 0.5252 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.4909, allocations: 0.5156 kB / 0.5252 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.4909, allocations: 5.156 kB / 0.5252 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.4909, allocations: 2.375 kB / 0.5252 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.4912, allocations: 89.17 kB / 0.5253 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009292/0.4921, allocations: 0.4955 MB / 0.5258 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.4925, allocations: 137.4 kB / 0.5259 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.4927, allocations: 46.89 kB / 0.526 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.4927, allocations: 5.188 kB / 0.526 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.4927, allocations: 36.56 kB / 0.526 GB, free: 7.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.4927, allocations: 0 / 0.526 GB, free: 7.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006541/0.4934, allocations: 169.8 kB / 0.5262 GB, free: 7.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.4934, allocations: 54.64 kB / 0.5262 GB, free: 7.199 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007216/0.4942, allocations: 250.2 kB / 0.5265 GB, free: 7.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.4942, allocations: 35.14 kB / 0.5265 GB, free: 7.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.4943, allocations: 112 kB / 0.5266 GB, free: 6.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.586e-05/0.4943, allocations: 43.72 kB / 0.5266 GB, free: 6.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.803e-05/0.4944, allocations: 33.73 kB / 0.5267 GB, free: 6.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.4945, allocations: 328.3 kB / 0.527 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.4946, allocations: 43.86 kB / 0.527 GB, free: 6.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.4948, allocations: 70.67 kB / 0.5271 GB, free: 6.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.4958, allocations: 246.5 kB / 0.5273 GB, free: 6.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4958, allocations: 0 / 0.5273 GB, free: 6.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003663/0.4962, allocations: 162 kB / 0.5275 GB, free: 6.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.4962, allocations: 10.47 kB / 0.5275 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4962, allocations: 5.125 kB / 0.5275 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4962, allocations: 1.031 kB / 0.5275 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.4964, allocations: 21.31 kB / 0.5275 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.4964, allocations: 1.125 kB / 0.5275 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.4967, allocations: 33.53 kB / 0.5276 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.4967, allocations: 3.406 kB / 0.5276 GB, free: 6.309 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.0001321/0.4968, allocations: 140 kB / 0.5277 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.689e-05/0.4969, allocations: 10.05 kB / 0.5277 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.224e-05/0.4969, allocations: 28 kB / 0.5277 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.4969, allocations: 1.438 kB / 0.5277 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4969, allocations: 1.641 kB / 0.5277 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4969, allocations: 5.375 kB / 0.5277 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.4971, allocations: 173 kB / 0.5279 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4971, allocations: 0 / 0.5279 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.4973, allocations: 13.91 kB / 0.5279 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4973, allocations: 2.344 kB / 0.5279 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.4973, allocations: 5.5 kB / 0.5279 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4973, allocations: 9.297 kB / 0.5279 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4973, allocations: 0 / 0.5279 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/0.4976, allocations: 291.2 kB / 0.5282 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.4977, allocations: 15.91 kB / 0.5282 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.4977, allocations: 2.328 kB / 0.5282 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.4979, allocations: 28.73 kB / 0.5283 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.124e-05/0.498, allocations: 8 kB / 0.5283 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.498, allocations: 4.219 kB / 0.5283 GB, free: 5.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003744/0.4983, allocations: 199.7 kB / 0.5285 GB, free: 5.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4983, allocations: 0 / 0.5285 GB, free: 5.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.4986, allocations: 26.22 kB / 0.5285 GB, free: 5.664 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 9.268e-05/0.4987, allocations: 101.1 kB / 0.5286 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.499, allocations: 103.4 kB / 0.5287 GB, free: 5.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.499, allocations: 0 / 0.5287 GB, free: 5.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/0.4991, allocations: 50.36 kB / 0.5287 GB, free: 5.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.4994, allocations: 24.23 kB / 0.5288 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000732/0.5002, allocations: 335 kB / 0.5291 GB, free: 5.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.5003, allocations: 120.3 kB / 0.5292 GB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.516e-05/0.5004, allocations: 25.39 kB / 0.5292 GB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.5004, allocations: 13.91 kB / 0.5292 GB, free: 5.211 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5004, allocations: 1.312 kB / 0.5292 GB, free: 5.211 MB / 382.1 MB Notification: Performance of Templates: time 0.005425/0.5059, allocations: 1.438 MB / 0.5306 GB, free: 5.043 MB / 382.1 MB " [Timeout remaining time 659] 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.3267154190689325] Failed to read output from testmodel.py, exit status != 0: 0.5154661908745766 0.529529348 0.036759578 Calling exit ...