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.001189/0.00119, allocations: 118.5 kB / 16.37 MB, free: 6.004 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.001145/0.001145, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.385/1.385, 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.09162/0.09162, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.09 kB / 382.2 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09882, 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.003393/0.1023, allocations: 1.749 MB / 439 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1036, allocations: 0.6818 MB / 439.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1037, allocations: 0 / 439.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.1041, allocations: 75.66 kB / 439.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.1043, allocations: 83.64 kB / 439.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.1048, allocations: 155.6 kB / 439.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.1052, allocations: 275.5 kB / 440.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1053, allocations: 25.55 kB / 440.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.1055, allocations: 119.6 kB / 440.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.1057, allocations: 151.5 kB / 440.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.1058, allocations: 12 kB / 440.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1059, allocations: 91.91 kB / 440.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1061, allocations: 71.75 kB / 440.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.842e-05/0.1062, allocations: 83.47 kB / 440.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.1065, allocations: 243.2 kB / 441 MB, free: 8.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1065, allocations: 0 / 441 MB, free: 8.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1065, allocations: 4 kB / 441 MB, free: 8.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1065, allocations: 3.938 kB / 441 MB, free: 8.453 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.001464/0.108, allocations: 0.6248 MB / 441.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.108, allocations: 8.031 kB / 441.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.58e-05/0.1081, allocations: 24.66 kB / 441.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006767/0.1088, allocations: 302.8 kB / 442 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.1088, allocations: 12.38 kB / 442 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.1089, allocations: 12.38 kB / 442 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.1092, allocations: 157.8 kB / 442.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.1092, allocations: 3.984 kB / 442.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.1092, allocations: 0 / 442.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1093, allocations: 4 kB / 442.1 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002745/0.1095, allocations: 135.9 kB / 442.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008791/0.1104, allocations: 0.5002 MB / 442.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.1109, allocations: 194.5 kB / 443 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.111, allocations: 104.9 kB / 443.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.1111, allocations: 12 kB / 443.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.1113, allocations: 183.2 kB / 443.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.1114, allocations: 0 / 443.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001295/0.1127, allocations: 0.575 MB / 443.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.1127, allocations: 85.05 kB / 443.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005562/0.1133, allocations: 308.9 kB / 444.2 MB, free: 5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1133, allocations: 29.7 kB / 444.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.194e-05/0.1134, allocations: 140 kB / 444.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.059e-05/0.1135, allocations: 55.17 kB / 444.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.1136, allocations: 41.64 kB / 444.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1137, allocations: 334.8 kB / 444.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1139, allocations: 83.95 kB / 444.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.114, allocations: 83.95 kB / 445 MB, free: 4.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.1153, allocations: 0.582 MB / 445.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1153, allocations: 0 / 445.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006876/0.116, allocations: 389.3 kB / 445.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.1161, allocations: 44.03 kB / 446 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1161, allocations: 0 / 446 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.1163, allocations: 52.81 kB / 446 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1164, allocations: 27.92 kB / 446 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.1179, allocations: 1.602 MB / 447.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.1181, allocations: 43.83 kB / 447.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.1182, allocations: 4 kB / 447.7 MB, free: 1.301 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.0002293/0.1184, allocations: 196.2 kB / 447.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.1185, allocations: 27.72 kB / 447.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.154e-05/0.1185, allocations: 34.11 kB / 448 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1185, allocations: 3.938 kB / 448 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1185, allocations: 4 kB / 448 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1185, allocations: 0 / 448 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.1188, allocations: 293.3 kB / 448.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1188, allocations: 3.984 kB / 448.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.119, allocations: 12 kB / 448.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.1191, allocations: 64.8 kB / 448.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.1192, allocations: 7.938 kB / 448.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.1205, allocations: 1.591 MB / 449.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1205, allocations: 0 / 449.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008321/0.1213, allocations: 0.5401 MB / 450.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.419e-05/0.1214, allocations: 108.8 kB / 450.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/0.1214, allocations: 7.938 kB / 450.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.1217, allocations: 39.95 kB / 450.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.1218, allocations: 11.98 kB / 450.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.1218, allocations: 4 kB / 450.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004544/0.1223, allocations: 252.4 kB / 450.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1223, allocations: 3.938 kB / 450.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.1226, allocations: 64 kB / 450.9 MB, free: 13.8 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.0001872/0.1228, allocations: 123.2 kB / 451.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006575/0.1234, allocations: 426 kB / 451.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1234, allocations: 3.938 kB / 451.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.1238, allocations: 329.9 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.0002807/0.1241, allocations: 24.42 kB / 451.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008154/0.1249, allocations: 500 kB / 452.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.1253, allocations: 0.7634 MB / 453.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.828e-05/0.1254, 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.834e-05/0.1254, allocations: 15.44 kB / 453.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of SimCode: time 2.465e-06/0.1254, allocations: 3.938 kB / 453.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Templates: time 0.006084/0.1315, allocations: 2.826 MB / 456 MB, free: 8.695 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 cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)