Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001673/0.001673, allocations: 100.3 kB / 20.46 MB, free: 1.367 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.002115/0.002115, allocations: 216.2 kB / 23.77 MB, free: 4.52 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.451/1.451, allocations: 230.6 MB / 257.5 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.1099/0.1099, allocations: 24.04 MB / 338 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.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [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.002171/0.002171, allocations: 59.91 kB / 475.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2963, allocations: 59.58 MB / 0.5221 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002972/0.2992, allocations: 1.73 MB / 0.5238 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.3005, allocations: 0.6678 MB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.833e-05/0.3006, allocations: 2.594 kB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.3009, allocations: 84.06 kB / 0.5245 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.3011, allocations: 86.02 kB / 0.5246 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.3016, allocations: 156.9 kB / 0.5248 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.3021, allocations: 308.6 kB / 0.5251 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3022, allocations: 24.91 kB / 0.5251 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.3024, allocations: 129.2 kB / 0.5252 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.3027, allocations: 168.8 kB / 0.5254 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.3027, allocations: 13.12 kB / 0.5254 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.3029, allocations: 79.73 kB / 0.5255 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.303, allocations: 69.25 kB / 0.5255 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.195e-05/0.303, allocations: 65.72 kB / 0.5256 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.3034, allocations: 243.2 kB / 0.5258 GB, free: 8.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3034, allocations: 0 / 0.5258 GB, free: 8.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3034, allocations: 0 / 0.5258 GB, free: 8.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3034, allocations: 0 / 0.5258 GB, free: 8.32 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001335/0.3048, allocations: 0.5507 MB / 0.5264 GB, free: 7.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3048, allocations: 14.94 kB / 0.5264 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.3049, allocations: 28.88 kB / 0.5264 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.3055, allocations: 256.4 kB / 0.5267 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.3055, allocations: 8.031 kB / 0.5267 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.365e-05/0.3055, allocations: 7.375 kB / 0.5267 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.3058, allocations: 192.2 kB / 0.5269 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3058, allocations: 5.219 kB / 0.5269 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.3058, allocations: 4.812 kB / 0.5269 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3059, allocations: 2.781 kB / 0.5269 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/0.3061, allocations: 167 kB / 0.527 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007194/0.3069, allocations: 418.5 kB / 0.5274 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.3073, allocations: 210.4 kB / 0.5276 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.3075, allocations: 134.9 kB / 0.5278 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.3075, allocations: 1.688 kB / 0.5278 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000274/0.3078, allocations: 216.4 kB / 0.528 GB, free: 6.941 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.3078, allocations: 7.922 kB / 0.528 GB, free: 6.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001287/0.3091, allocations: 0.5692 MB / 0.5285 GB, free: 6.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.3091, allocations: 82.03 kB / 0.5286 GB, free: 6.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.3097, allocations: 312.2 kB / 0.5289 GB, free: 6.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.3097, allocations: 26.89 kB / 0.5289 GB, free: 6.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.3097, allocations: 140.9 kB / 0.5291 GB, free: 6.273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.3098, allocations: 64.66 kB / 0.5291 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.3099, allocations: 40.2 kB / 0.5292 GB, free: 6.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.245e-05/0.3099, allocations: 333.9 kB / 0.5295 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.3101, allocations: 117.8 kB / 0.5296 GB, free: 5.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.3102, allocations: 119.2 kB / 0.5297 GB, free: 5.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.3115, allocations: 0.5809 MB / 0.5303 GB, free: 5.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3116, allocations: 0 / 0.5303 GB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006509/0.3122, allocations: 437.1 kB / 0.5307 GB, free: 5.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.3122, allocations: 36.08 kB / 0.5307 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3122, allocations: 0.75 kB / 0.5307 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002107/0.3125, allocations: 60.64 kB / 0.5308 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3126, allocations: 19.2 kB / 0.5308 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.3137, allocations: 1.474 MB / 0.5322 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3139, allocations: 34.36 kB / 0.5323 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.3139, allocations: 9.125 kB / 0.5323 GB, free: 3.902 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001912/0.3141, allocations: 205.8 kB / 0.5325 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.3142, allocations: 23.48 kB / 0.5325 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.701e-05/0.3142, allocations: 34.39 kB / 0.5325 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.3142, allocations: 1.469 kB / 0.5325 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3142, allocations: 5.469 kB / 0.5325 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.3142, allocations: 1.547 kB / 0.5325 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.3144, allocations: 203.4 kB / 0.5327 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3144, allocations: 4.688 kB / 0.5327 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.3146, allocations: 27.03 kB / 0.5328 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.3147, allocations: 51.19 kB / 0.5328 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.3148, allocations: 13.2 kB / 0.5328 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.3159, allocations: 1.468 MB / 0.5343 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3159, allocations: 0 / 0.5343 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009454/0.3168, allocations: 0.5924 MB / 0.5348 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.3169, allocations: 29.66 kB / 0.5349 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.3169, allocations: 8.844 kB / 0.5349 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.3171, allocations: 31.98 kB / 0.5349 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.197e-05/0.3172, allocations: 12.12 kB / 0.5349 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.3172, allocations: 9.406 kB / 0.5349 GB, free: 1.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004763/0.3177, allocations: 238.8 kB / 0.5352 GB, free: 1.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3177, allocations: 4 kB / 0.5352 GB, free: 1.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.3181, allocations: 72.02 kB / 0.5352 GB, free: 1.703 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001742/0.3182, allocations: 128.5 kB / 0.5353 GB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006551/0.3189, allocations: 476.4 kB / 0.5358 GB, free: 1.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3189, allocations: 0 / 0.5358 GB, free: 1.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.3192, allocations: 329 kB / 0.5361 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3195, allocations: 29.39 kB / 0.5361 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008188/0.3203, allocations: 0.5592 MB / 0.5367 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3204, allocations: 147.4 kB / 0.5368 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.619e-05/0.3205, allocations: 19.06 kB / 0.5368 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3205, allocations: 0 / 0.5368 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of Templates: time 0.006503/0.327, allocations: 3.66 MB / 0.5404 GB, free: 0 / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.7594925430603325] Failed to read output from testmodel.py, exit status != 0: 0.3361567622050643 0.350134156 0.043617273000000005 Calling exit ...