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.001596/0.001596, allocations: 102.1 kB / 19.7 MB, free: 2.246 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.001965/0.001965, allocations: 222.5 kB / 23.01 MB, free: 5.086 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1231/0.1231, allocations: 24.12 MB / 337.3 MB, free: 11.43 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.002857/0.002857, allocations: 71.91 kB / 474.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4166, allocations: 59.6 MB / 0.5216 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002314/0.4189, allocations: 1.018 MB / 0.5226 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.4207, allocations: 1.274 MB / 0.5239 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.4208, allocations: 6.125 kB / 0.5239 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003469/0.4212, allocations: 47.86 kB / 0.5239 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.4214, allocations: 42.19 kB / 0.524 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.4216, allocations: 98.09 kB / 0.5241 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.4221, allocations: 260.9 kB / 0.5243 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.4222, allocations: 26.41 kB / 0.5243 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.4223, allocations: 95.25 kB / 0.5244 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.4226, allocations: 100 kB / 0.5245 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.302e-05/0.4226, allocations: 9.219 kB / 0.5245 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.318e-05/0.4226, allocations: 11.22 kB / 0.5245 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.4227, allocations: 46.75 kB / 0.5246 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.4228, allocations: 56.91 kB / 0.5246 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.423, allocations: 130.4 kB / 0.5248 GB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.423, allocations: 3.938 kB / 0.5248 GB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.423, allocations: 1.188 kB / 0.5248 GB, free: 8.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.423, allocations: 4 kB / 0.5248 GB, free: 8.449 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.001057/0.424, allocations: 446.4 kB / 0.5252 GB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.4241, allocations: 9.672 kB / 0.5252 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.4241, allocations: 16.84 kB / 0.5252 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.4247, allocations: 235.8 kB / 0.5254 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.4247, allocations: 7.969 kB / 0.5255 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.4248, allocations: 9.969 kB / 0.5255 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.425, allocations: 122.8 kB / 0.5256 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.425, allocations: 0 / 0.5256 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.425, allocations: 0.7812 kB / 0.5256 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.425, allocations: 6.75 kB / 0.5256 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.4252, allocations: 89.03 kB / 0.5257 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007757/0.426, allocations: 0.5482 MB / 0.5262 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.4264, allocations: 142 kB / 0.5263 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.4265, allocations: 50.38 kB / 0.5264 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.4265, allocations: 5.281 kB / 0.5264 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.4265, allocations: 35.75 kB / 0.5264 GB, free: 7.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.4265, allocations: 0 / 0.5264 GB, free: 7.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003936/0.4269, allocations: 161.6 kB / 0.5266 GB, free: 7.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.4269, allocations: 58.28 kB / 0.5266 GB, free: 7.082 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004835/0.4274, allocations: 259.5 kB / 0.5269 GB, free: 6.941 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.4274, allocations: 25.7 kB / 0.5269 GB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/0.4275, allocations: 116 kB / 0.527 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.4275, allocations: 35.2 kB / 0.5271 GB, free: 6.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.4276, allocations: 30.36 kB / 0.5271 GB, free: 6.754 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.689e-05/0.4276, allocations: 328.3 kB / 0.5274 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.943e-05/0.4277, allocations: 43.19 kB / 0.5274 GB, free: 6.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.4278, allocations: 60.8 kB / 0.5275 GB, free: 6.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.4287, allocations: 251.9 kB / 0.5277 GB, free: 6.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4287, allocations: 0 / 0.5277 GB, free: 6.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000271/0.4289, allocations: 173.8 kB / 0.5279 GB, free: 6.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.4289, allocations: 5.625 kB / 0.5279 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.429, allocations: 1.156 kB / 0.5279 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.429, allocations: 6.094 kB / 0.5279 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4291, allocations: 29.92 kB / 0.5279 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.4291, allocations: 5.125 kB / 0.528 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.4293, allocations: 24.53 kB / 0.528 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.4293, allocations: 6.406 kB / 0.528 GB, free: 6.184 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.0001375/0.4294, allocations: 136.5 kB / 0.5281 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.4295, allocations: 15.12 kB / 0.5281 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.001e-05/0.4295, allocations: 20.45 kB / 0.5281 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4295, allocations: 1.094 kB / 0.5281 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4295, allocations: 3.938 kB / 0.5282 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4295, allocations: 9.984 kB / 0.5282 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.4298, allocations: 214.4 kB / 0.5284 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4298, allocations: 0 / 0.5284 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.4299, allocations: 21.52 kB / 0.5284 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4299, allocations: 0 / 0.5284 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.4299, allocations: 6.344 kB / 0.5284 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4299, allocations: 0 / 0.5284 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4299, allocations: 5.125 kB / 0.5284 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003562/0.4303, allocations: 281.7 kB / 0.5287 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.4303, allocations: 17.05 kB / 0.5287 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.4303, allocations: 2.25 kB / 0.5287 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.4306, allocations: 30.22 kB / 0.5287 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.4306, allocations: 13.12 kB / 0.5287 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.4306, allocations: 2.281 kB / 0.5287 GB, free: 5.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000375/0.431, allocations: 193.9 kB / 0.5289 GB, free: 5.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.431, allocations: 0 / 0.5289 GB, free: 5.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002537/0.4312, allocations: 22.09 kB / 0.5289 GB, free: 5.512 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 8.622e-05/0.4313, allocations: 105 kB / 0.529 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.4316, allocations: 104.6 kB / 0.5291 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4316, allocations: 0 / 0.5291 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.096e-05/0.4317, allocations: 45.53 kB / 0.5292 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.432, allocations: 24.84 kB / 0.5292 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005964/0.4326, allocations: 380.1 kB / 0.5296 GB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.4328, allocations: 0.7246 MB / 0.5303 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.694e-05/0.4329, allocations: 14.88 kB / 0.5303 GB, free: 4.391 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4329, allocations: 1.344 kB / 0.5303 GB, free: 4.391 MB / 382.1 MB Notification: Performance of Templates: time 0.004368/0.4372, allocations: 1.91 MB / 0.5321 GB, free: 4.238 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: 7.637958645122126] Failed to read output from testmodel.py, exit status != 0: 0.4479029350914061 0.46159733199999997 0.035296133 Calling exit ...