Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.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.001407/0.001407, allocations: 103 kB / 16.45 MB, free: 6.449 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.001415/0.001415, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.529/1.529, allocations: 230.6 MB / 252.8 MB, free: 9 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.1008/0.1008, allocations: 24.11 MB / 333 MB, free: 12.64 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_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") [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.002434/0.002434, allocations: 71.83 kB / 468.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.4546, allocations: 59.56 MB / 0.5155 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004673/0.4593, allocations: 3.03 MB / 0.5185 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.4616, allocations: 1.068 MB / 0.5195 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.4619, allocations: 24.41 kB / 0.5196 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002903/0.4622, allocations: 84.39 kB / 0.5196 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.4624, allocations: 87.78 kB / 0.5197 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008164/0.4633, allocations: 321.6 kB / 0.52 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.4639, allocations: 0.55 MB / 0.5206 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.4643, allocations: 173.3 kB / 0.5207 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.4645, allocations: 196.4 kB / 0.5209 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.4648, allocations: 208.2 kB / 0.5211 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.417e-05/0.4649, allocations: 49.75 kB / 0.5212 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.419e-05/0.4649, allocations: 45.53 kB / 0.5212 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-05/0.465, allocations: 102 kB / 0.5213 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.4652, allocations: 235.7 kB / 0.5215 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007503/0.466, allocations: 0.5442 MB / 0.5221 GB, free: 5.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.466, allocations: 0 / 0.5221 GB, free: 5.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.466, allocations: 1.25 kB / 0.5221 GB, free: 5.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.466, allocations: 0 / 0.5221 GB, free: 5.762 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001233/0.4672, allocations: 0.8368 MB / 0.5229 GB, free: 5.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.4673, allocations: 10.22 kB / 0.5229 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.4674, allocations: 62.28 kB / 0.5229 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006818/0.4681, allocations: 437.4 kB / 0.5234 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.4681, allocations: 28.62 kB / 0.5234 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.401e-05/0.4682, allocations: 34.91 kB / 0.5234 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000828/0.4691, allocations: 447.7 kB / 0.5238 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.4691, allocations: 4.938 kB / 0.5239 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.4691, allocations: 12.16 kB / 0.5239 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.4691, allocations: 8.406 kB / 0.5239 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006326/0.4698, allocations: 283.1 kB / 0.5241 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.4717, allocations: 1.531 MB / 0.5256 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008385/0.4726, allocations: 332.8 kB / 0.526 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.4728, allocations: 126.4 kB / 0.5261 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.4729, allocations: 2.922 kB / 0.5261 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.4729, allocations: 37.72 kB / 0.5261 GB, free: 3.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.4729, allocations: 0 / 0.5261 GB, free: 3.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001017/0.4739, allocations: 408.3 kB / 0.5265 GB, free: 2.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.474, allocations: 162.7 kB / 0.5267 GB, free: 2.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/0.4745, allocations: 409.7 kB / 0.5271 GB, free: 2.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.4745, allocations: 32.38 kB / 0.5271 GB, free: 2.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.4747, allocations: 264.9 kB / 0.5273 GB, free: 2.207 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.076e-05/0.4748, allocations: 103.8 kB / 0.5274 GB, free: 2.125 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.4749, allocations: 66.77 kB / 0.5275 GB, free: 2.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4751, allocations: 359.7 kB / 0.5278 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.4753, allocations: 119.7 kB / 0.528 GB, free: 1.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.4757, allocations: 199.1 kB / 0.5281 GB, free: 1.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.4772, allocations: 0.5347 MB / 0.5287 GB, free: 1.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4772, allocations: 0.9688 kB / 0.5287 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007604/0.478, allocations: 390.2 kB / 0.529 GB, free: 1.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.478, allocations: 5.625 kB / 0.529 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.478, allocations: 3.203 kB / 0.529 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.478, allocations: 2.844 kB / 0.5291 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.4784, allocations: 74.98 kB / 0.5291 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.4784, allocations: 4.484 kB / 0.5291 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.4786, allocations: 47.72 kB / 0.5292 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.894e-05/0.4786, allocations: 13.03 kB / 0.5292 GB, free: 1.086 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003637/0.479, allocations: 207.7 kB / 0.5294 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002397/0.4792, allocations: 178.1 kB / 0.5296 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001117/0.4804, allocations: 467.1 kB / 0.53 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.4804, allocations: 0.5312 kB / 0.53 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005857/0.4809, allocations: 343.1 kB / 0.5303 GB, free: 416 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.481, allocations: 7.719 kB / 0.5303 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.481, allocations: 2.281 kB / 0.5303 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.816e-06/0.481, allocations: 4.5 kB / 0.5303 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.4813, allocations: 61.38 kB / 0.5304 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.4813, allocations: 16.67 kB / 0.5304 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.4815, allocations: 29.38 kB / 0.5304 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.4815, allocations: 12.84 kB / 0.5305 GB, free: 376 kB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001666/0.4817, allocations: 205.8 kB / 0.5307 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.79e-05/0.4818, allocations: 58.17 kB / 0.5307 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.4819, allocations: 50.59 kB / 0.5308 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.4819, allocations: 8.094 kB / 0.5308 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.482, allocations: 0 / 0.5308 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.482, allocations: 5.656 kB / 0.5308 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007692/0.4827, allocations: 461 kB / 0.5312 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4827, allocations: 0.7031 kB / 0.5312 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.4831, allocations: 53.34 kB / 0.5313 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4831, allocations: 1.281 kB / 0.5313 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.4831, allocations: 5.891 kB / 0.5313 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4831, allocations: 1.344 kB / 0.5313 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4831, allocations: 1.828 kB / 0.5313 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.4842, allocations: 0.5517 MB / 0.5318 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.4844, allocations: 149.4 kB / 0.5319 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.4844, allocations: 6.562 kB / 0.532 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.4846, allocations: 23.72 kB / 0.532 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.4847, allocations: 13.17 kB / 0.532 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.4847, allocations: 13.84 kB / 0.532 GB, free: 15.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003822/0.4851, allocations: 285.2 kB / 0.5323 GB, free: 15.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4851, allocations: 3.312 kB / 0.5323 GB, free: 15.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.4857, allocations: 139.6 kB / 0.5324 GB, free: 15.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.y) * 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 (28): * Single equations (assignments): 28 * 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.0001436/0.4858, allocations: 104.2 kB / 0.5325 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009904/0.4868, allocations: 401.1 kB / 0.5329 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4868, allocations: 1.094 kB / 0.5329 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.4871, allocations: 126.8 kB / 0.533 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007293/0.4878, allocations: 126.4 kB / 0.5331 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.4895, allocations: 0.8082 MB / 0.5339 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.4901, allocations: 0.832 MB / 0.5347 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.4903, allocations: 50.45 kB / 0.5348 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.713e-05/0.4904, allocations: 28.81 kB / 0.5348 GB, free: 13.61 MB / 398.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4904, allocations: 0 / 0.5348 GB, free: 13.61 MB / 398.1 MB Notification: Performance of Templates: time 0.01161/0.502, allocations: 4.485 MB / 0.5392 GB, free: 12.65 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & ./AES_AES.Coursework.ElecSys_generator_models.TurbineFollows -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.371927367988974] Failed to read output from testmodel.py, exit status != 0: 0.5139005030505359 0.526073546 0.057015430000000006 Calling exit ...