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.001492/0.001492, allocations: 100.6 kB / 15.05 MB, free: 1.105 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.001946/0.001946, allocations: 177.3 kB / 15.94 MB, free: 228 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.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2517/0.2517, allocations: 22.32 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004881/0.0004888, allocations: 12 kB / 381.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3323, allocations: 55.98 MB / 437.8 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.001702/0.334, allocations: 1.422 MB / 439.2 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009376/0.335, allocations: 0.6443 MB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.56e-05/0.3351, allocations: 6.438 kB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.3354, allocations: 70.52 kB / 440 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.3356, allocations: 79.95 kB / 440 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.3359, allocations: 109.7 kB / 440.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.3361, allocations: 148.3 kB / 440.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.689e-05/0.3362, allocations: 35.42 kB / 440.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.3364, allocations: 117.2 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.3365, allocations: 123.4 kB / 440.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.3366, allocations: 8.156 kB / 440.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.994e-05/0.3367, allocations: 63.08 kB / 440.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.462e-05/0.3368, allocations: 62.12 kB / 440.7 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.3368, allocations: 53.95 kB / 440.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.337, allocations: 164.4 kB / 440.9 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.337, allocations: 0 / 440.9 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.337, allocations: 3.938 kB / 440.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.337, allocations: 0 / 440.9 MB, free: 37.46 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.001045/0.3381, allocations: 0.5935 MB / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3381, allocations: 14.25 kB / 441.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.3382, allocations: 27.47 kB / 441.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005382/0.3387, allocations: 301.9 kB / 441.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.3387, allocations: 5.812 kB / 441.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.3388, allocations: 16.73 kB / 441.8 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.339, allocations: 150.3 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3391, allocations: 2.875 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.3391, allocations: 4 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3391, allocations: 6.812 kB / 442 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.3393, allocations: 135.7 kB / 442.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007108/0.3401, allocations: 0.496 MB / 442.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.3405, allocations: 199.9 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.3405, allocations: 2.875 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.3407, allocations: 177.8 kB / 443 MB, free: 36.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.634e-06/0.3407, allocations: 0 / 443 MB, free: 36.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001175/0.3419, allocations: 0.652 MB / 443.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.342, allocations: 83.94 kB / 443.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.3425, allocations: 317.7 kB / 444.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.3425, allocations: 28.17 kB / 444.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.3426, allocations: 128.7 kB / 444.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.3427, allocations: 61.92 kB / 444.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.3427, allocations: 7.062 kB / 444.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.954e-05/0.3428, allocations: 335.5 kB / 444.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.3429, allocations: 88.7 kB / 444.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3431, allocations: 87.45 kB / 444.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.3432, allocations: 118.2 kB / 444.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3432, allocations: 0 / 444.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005593/0.3438, allocations: 390.9 kB / 445.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.3439, allocations: 39.98 kB / 445.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3439, allocations: 10.86 kB / 445.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.3441, allocations: 53.67 kB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3442, allocations: 17.28 kB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.3454, allocations: 1.506 MB / 446.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.3456, allocations: 45.34 kB / 446.9 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.3456, allocations: 10.09 kB / 447 MB, free: 33.18 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.0002129/0.3458, allocations: 196.1 kB / 447.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.3459, allocations: 23.62 kB / 447.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.694e-05/0.346, allocations: 34.14 kB / 447.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.346, allocations: 7.922 kB / 447.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.346, allocations: 2.938 kB / 447.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.346, allocations: 3.938 kB / 447.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.3462, allocations: 298.3 kB / 447.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3462, allocations: 0 / 447.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.3464, allocations: 18.61 kB / 447.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001511/0.3465, allocations: 52.39 kB / 447.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.3466, allocations: 6.812 kB / 447.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3476, allocations: 1.508 MB / 449.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3476, allocations: 0 / 449.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007505/0.3484, allocations: 0.5323 MB / 449.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.3485, allocations: 104.8 kB / 449.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.3485, allocations: 6.719 kB / 449.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.3487, allocations: 27.84 kB / 449.8 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.3488, allocations: 18.11 kB / 449.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.3488, allocations: 4.875 kB / 449.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004246/0.3493, allocations: 247.7 kB / 450 MB, free: 30.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3493, allocations: 0 / 450 MB, free: 30.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.3496, allocations: 68.81 kB / 450.1 MB, free: 30.83 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.0001957/0.3498, allocations: 119.5 kB / 450.2 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006503/0.3505, allocations: 448.8 kB / 450.6 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3505, allocations: 0 / 450.6 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.3508, allocations: 326.9 kB / 451 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002214/0.351, allocations: 21.98 kB / 451 MB, free: 30.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007739/0.3518, allocations: 0.5329 MB / 451.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.3521, allocations: 0.7667 MB / 452.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.019e-05/0.3522, allocations: 30.83 kB / 452.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.3522, allocations: 16.67 kB / 452.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3522, allocations: 3.938 kB / 452.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of Templates: time 0.005762/0.358, allocations: 2.556 MB / 454.9 MB, free: 28.99 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: