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.0009122/0.0009121, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.001031/0.001031, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2877/0.2877, allocations: 22.35 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005187/0.0005188, allocations: 8 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3543, allocations: 55.98 MB / 437.9 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.001594/0.3559, allocations: 1.43 MB / 439.3 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009616/0.3569, allocations: 0.6436 MB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.458e-05/0.357, allocations: 10.72 kB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.3573, allocations: 67.31 kB / 440.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.3574, allocations: 69.69 kB / 440.1 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.3578, allocations: 124.5 kB / 440.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.358, allocations: 221.9 kB / 440.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.224e-05/0.3581, allocations: 23.95 kB / 440.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.3582, allocations: 123.4 kB / 440.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.3584, allocations: 138.6 kB / 440.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.3584, allocations: 5.625 kB / 440.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3586, allocations: 71.97 kB / 440.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.3586, allocations: 56.33 kB / 440.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.3587, allocations: 50.55 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.3588, allocations: 164.6 kB / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3589, allocations: 0 / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3589, allocations: 0 / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.3589, allocations: 4 kB / 441.1 MB, free: 37.55 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.0009915/0.3599, allocations: 0.6064 MB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3599, allocations: 9.625 kB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.888e-05/0.36, allocations: 23.59 kB / 441.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004631/0.3604, allocations: 300.8 kB / 442 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.3605, allocations: 10.5 kB / 442 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.3605, allocations: 12.59 kB / 442 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.3607, allocations: 147.3 kB / 442.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3608, allocations: 0 / 442.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3608, allocations: 6.531 kB / 442.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3608, allocations: 2.625 kB / 442.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.361, allocations: 136.3 kB / 442.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.3616, allocations: 0.4967 MB / 442.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.362, allocations: 196.4 kB / 443 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.3622, allocations: 110.1 kB / 443.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.3622, allocations: 0 / 443.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.3624, allocations: 184 kB / 443.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.3624, allocations: 2.562 kB / 443.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001122/0.3635, allocations: 0.5733 MB / 443.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.3636, allocations: 84.08 kB / 444 MB, free: 35.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.364, allocations: 318.6 kB / 444.3 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.3641, allocations: 32.58 kB / 444.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/0.3641, allocations: 127.3 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.3642, allocations: 60.84 kB / 444.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.3642, allocations: 4 kB / 444.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.3643, allocations: 331.5 kB / 444.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3644, allocations: 89.06 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.3645, allocations: 93 kB / 445 MB, free: 35.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.3647, allocations: 120.9 kB / 445.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3647, allocations: 0 / 445.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005128/0.3652, allocations: 390.3 kB / 445.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/0.3653, allocations: 41.75 kB / 445.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3653, allocations: 0 / 445.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/0.3655, allocations: 49.83 kB / 445.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.3656, allocations: 25.23 kB / 445.6 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009989/0.3666, allocations: 1.505 MB / 447.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.3668, allocations: 33.83 kB / 447.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.3669, allocations: 10 kB / 447.2 MB, free: 33.33 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 ($whenCondition1,SP.a,SP.b,SP.last,$PRE.SP.nextEvent,SP.nextEvent,SP.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000178/0.3671, allocations: 203.7 kB / 447.4 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.3671, allocations: 22.16 kB / 447.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.3671, allocations: 34.28 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.3672, allocations: 0 / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3672, allocations: 0 / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3672, allocations: 2.938 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.3674, allocations: 294.2 kB / 447.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3674, allocations: 2.969 kB / 447.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.3675, allocations: 11.22 kB / 447.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.3677, allocations: 55.08 kB / 447.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.3677, allocations: 14.41 kB / 447.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008527/0.3686, allocations: 1.497 MB / 449.3 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3686, allocations: 3 kB / 449.3 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.3693, allocations: 0.5301 MB / 449.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.3693, allocations: 99.19 kB / 449.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.3693, allocations: 12.34 kB / 449.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.3696, allocations: 31.88 kB / 449.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.3696, allocations: 16.52 kB / 450 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.3696, allocations: 4.938 kB / 450 MB, free: 31.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003672/0.37, allocations: 252.1 kB / 450.2 MB, free: 30.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.37, allocations: 0 / 450.2 MB, free: 30.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.3703, allocations: 65.69 kB / 450.3 MB, free: 30.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001707/0.3705, allocations: 137.6 kB / 450.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.3711, allocations: 436.2 kB / 450.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3711, allocations: 0 / 450.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.3714, allocations: 325.6 kB / 451.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.3717, allocations: 35.59 kB / 451.2 MB, free: 30.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.3724, allocations: 0.5237 MB / 451.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.3725, allocations: 0.7627 MB / 452.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.473e-05/0.3726, allocations: 29.14 kB / 452.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.3727, allocations: 17.41 kB / 452.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3727, allocations: 2.75 kB / 452.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of Templates: time 0.005305/0.378, allocations: 2.555 MB / 455.1 MB, free: 29.14 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)