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.001244/0.001244, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001381/0.001381, allocations: 195.2 kB / 16.14 MB, free: 6.691 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.297/1.297, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.212/0.212, allocations: 22.36 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2464, allocations: 54.94 MB / 435 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.00243/0.2489, allocations: 1.802 MB / 436.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009985/0.2499, allocations: 0.7048 MB / 437.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.402e-05/0.25, allocations: 2.5 kB / 437.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.2503, allocations: 65.31 kB / 437.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.2505, allocations: 84.73 kB / 437.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.2508, allocations: 136 kB / 437.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.251, allocations: 247.9 kB / 438.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.491e-05/0.2511, allocations: 34.56 kB / 438.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.2513, allocations: 106.8 kB / 438.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.2515, allocations: 145.4 kB / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.2515, allocations: 6.031 kB / 438.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.2516, allocations: 77.45 kB / 438.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-05/0.2517, allocations: 64.52 kB / 438.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.59e-05/0.2518, allocations: 86.41 kB / 438.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.252, allocations: 218.1 kB / 438.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.252, allocations: 4 kB / 438.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.252, allocations: 0 / 438.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.252, allocations: 0 / 438.8 MB, free: 37.2 MB / 350.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.001146/0.2532, allocations: 0.6292 MB / 439.4 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2532, allocations: 11.94 kB / 439.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.2533, allocations: 23.59 kB / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.2538, allocations: 309.6 kB / 439.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.2539, allocations: 11.36 kB / 439.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.2539, allocations: 17.38 kB / 439.8 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.2541, allocations: 149.9 kB / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2542, allocations: 0 / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2542, allocations: 3.156 kB / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.2542, allocations: 3.281 kB / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.2544, allocations: 136.9 kB / 440.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.2551, allocations: 0.5028 MB / 440.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.2555, allocations: 194.8 kB / 440.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.2556, allocations: 118.7 kB / 440.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.2556, allocations: 3.188 kB / 440.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.2559, allocations: 179.5 kB / 441.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.403e-06/0.2559, allocations: 0 / 441.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00111/0.257, allocations: 0.5787 MB / 441.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.257, allocations: 86.2 kB / 441.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.2575, allocations: 315.9 kB / 442 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.2575, allocations: 25.7 kB / 442.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.2576, allocations: 134 kB / 442.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.477e-05/0.2576, allocations: 58.88 kB / 442.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.707e-05/0.2577, allocations: 39.94 kB / 442.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.014e-05/0.2578, allocations: 332.2 kB / 442.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.2579, allocations: 86.36 kB / 442.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.258, allocations: 89.09 kB / 442.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.2592, allocations: 0.5793 MB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2592, allocations: 3.062 kB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005263/0.2597, allocations: 387.8 kB / 443.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.2597, allocations: 35.53 kB / 443.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2598, allocations: 4 kB / 443.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.26, allocations: 59.72 kB / 443.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.619e-05/0.2601, allocations: 17.72 kB / 443.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009884/0.2611, allocations: 1.493 MB / 445.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.2613, allocations: 45.45 kB / 445.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.2613, allocations: 6.594 kB / 445.4 MB, free: 32.73 MB / 350.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.0001708/0.2615, allocations: 193.5 kB / 445.6 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.2616, allocations: 23.16 kB / 445.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.2616, allocations: 30.17 kB / 445.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2616, allocations: 3.938 kB / 445.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2616, allocations: 2.969 kB / 445.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2616, allocations: 3.938 kB / 445.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.2618, allocations: 297.9 kB / 445.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2619, allocations: 0 / 445.9 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.262, allocations: 22.7 kB / 446 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.2621, allocations: 57.19 kB / 446 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.2622, allocations: 3 kB / 446 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008868/0.2631, allocations: 1.501 MB / 447.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2631, allocations: 0 / 447.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007434/0.2638, allocations: 0.5293 MB / 448.1 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.2639, allocations: 106.6 kB / 448.2 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.2639, allocations: 10.84 kB / 448.2 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.2642, allocations: 29.78 kB / 448.2 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.2642, allocations: 14.06 kB / 448.2 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.2643, allocations: 8.844 kB / 448.2 MB, free: 30.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004003/0.2647, allocations: 240.6 kB / 448.5 MB, free: 30.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2647, allocations: 0 / 448.5 MB, free: 30.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.265, allocations: 76.36 kB / 448.5 MB, free: 30.38 MB / 350.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.0001744/0.2652, allocations: 128.9 kB / 448.7 MB, free: 30.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005668/0.2658, allocations: 432.5 kB / 449.1 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2658, allocations: 4 kB / 449.1 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.2661, allocations: 315 kB / 449.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2664, allocations: 32.61 kB / 449.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006543/0.267, allocations: 0.5368 MB / 450 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.2672, allocations: 0.7616 MB / 450.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.749e-05/0.2673, allocations: 25.95 kB / 450.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.2673, allocations: 20.12 kB / 450.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2673, allocations: 0 / 450.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of Templates: time 0.005029/0.2724, allocations: 2.668 MB / 453.4 MB, free: 28.52 MB / 350.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 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)