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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 107.6 kB / 16.37 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 193.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09117/0.09117, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 60.36 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1006, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003613/0.1043, allocations: 1.738 MB / 438.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1056, allocations: 0.6896 MB / 439.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1057, allocations: 3.938 kB / 439.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003888/0.1061, allocations: 75.66 kB / 439.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.1063, allocations: 83.64 kB / 439.8 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.1068, allocations: 151.6 kB / 439.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.1072, allocations: 275.5 kB / 440.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1073, allocations: 29.55 kB / 440.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.1075, allocations: 115.6 kB / 440.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.1077, allocations: 159.5 kB / 440.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.336e-05/0.1078, allocations: 12 kB / 440.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.1079, allocations: 87.92 kB / 440.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1081, allocations: 71.75 kB / 440.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.1082, allocations: 79.47 kB / 440.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.1085, allocations: 243.2 kB / 441 MB, free: 8.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1085, allocations: 4 kB / 441 MB, free: 8.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1085, allocations: 0 / 441 MB, free: 8.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1085, allocations: 0 / 441 MB, free: 8.457 MB / 318.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.001348/0.1099, allocations: 0.6209 MB / 441.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1099, allocations: 11.97 kB / 441.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.11, allocations: 24.66 kB / 441.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000652/0.1106, allocations: 310.8 kB / 442 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1107, allocations: 8.375 kB / 442 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.1107, allocations: 8.375 kB / 442 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.111, allocations: 161.8 kB / 442.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.111, allocations: 0 / 442.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.1111, allocations: 4 kB / 442.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1111, allocations: 4 kB / 442.1 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.1114, allocations: 134 kB / 442.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009843/0.1124, allocations: 0.5003 MB / 442.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.1129, allocations: 198.4 kB / 443 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.113, allocations: 104.9 kB / 443.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.1131, allocations: 12 kB / 443.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.1133, allocations: 173 kB / 443.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 3.486e-06/0.1133, allocations: 7.984 kB / 443.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001295/0.1146, allocations: 0.5711 MB / 443.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.1147, allocations: 85.09 kB / 443.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006153/0.1153, allocations: 312.9 kB / 444.2 MB, free: 5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.1154, allocations: 29.7 kB / 444.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.603e-05/0.1155, allocations: 140 kB / 444.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.553e-05/0.1155, allocations: 55.17 kB / 444.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.855e-05/0.1156, allocations: 45.58 kB / 444.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1157, allocations: 334.8 kB / 444.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.1159, allocations: 87.89 kB / 444.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.116, allocations: 86.39 kB / 445 MB, free: 4.215 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.1173, allocations: 0.5774 MB / 445.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1174, allocations: 0 / 445.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005998/0.118, allocations: 391.7 kB / 445.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.118, allocations: 37.69 kB / 446 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.118, allocations: 0 / 446 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002119/0.1182, allocations: 56.81 kB / 446 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.1184, allocations: 23.98 kB / 446.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.1198, allocations: 1.598 MB / 447.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.12, allocations: 35.84 kB / 447.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.12, allocations: 8 kB / 447.7 MB, free: 1.305 MB / 318.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.0002335/0.1203, allocations: 204.3 kB / 447.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.333e-05/0.1203, allocations: 23.72 kB / 447.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.244e-05/0.1204, allocations: 42.05 kB / 448 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1204, allocations: 4 kB / 448 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1204, allocations: 0 / 448 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1204, allocations: 0 / 448 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.1207, allocations: 293.4 kB / 448.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1207, allocations: 0 / 448.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1209, allocations: 19.98 kB / 448.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.121, allocations: 52.81 kB / 448.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.1211, allocations: 15.92 kB / 448.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.1224, allocations: 1.591 MB / 449.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1224, allocations: 0 / 449.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008218/0.1232, allocations: 0.536 MB / 450.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.028e-05/0.1233, allocations: 108.8 kB / 450.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.1234, allocations: 11.94 kB / 450.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1236, allocations: 27.95 kB / 450.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.1237, allocations: 12.22 kB / 450.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.1237, allocations: 4 kB / 450.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004501/0.1242, allocations: 248.4 kB / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1242, allocations: 0 / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.1245, allocations: 67.98 kB / 450.9 MB, free: 13.81 MB / 334.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.0001947/0.1247, allocations: 131.1 kB / 451.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006658/0.1253, allocations: 434 kB / 451.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1254, allocations: 0 / 451.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003773/0.1257, allocations: 333 kB / 451.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.126, allocations: 33.84 kB / 451.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008504/0.1269, allocations: 493.4 kB / 452.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.1272, allocations: 0.7595 MB / 453.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.635e-05/0.1273, allocations: 25.41 kB / 453.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.1273, allocations: 19.38 kB / 453.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1273, allocations: 4 kB / 453.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of Templates: time 0.006792/0.1341, allocations: 2.821 MB / 455.9 MB, free: 8.691 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile (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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)