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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009561/0.000956, allocations: 90.75 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.001134/0.001134, 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.358/1.358, allocations: 223.2 MB / 240 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1984/0.1984, allocations: 22.37 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003775, allocations: 8 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3015, allocations: 55.97 MB / 438 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.001486/0.303, allocations: 1.426 MB / 439.4 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008422/0.3039, allocations: 0.6378 MB / 440.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.304, allocations: 3.938 kB / 440.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.3042, allocations: 71.05 kB / 440.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.3044, allocations: 82.06 kB / 440.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.3047, allocations: 111.8 kB / 440.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.3049, allocations: 224.5 kB / 440.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.454e-05/0.305, allocations: 29.89 kB / 440.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.3051, allocations: 114.1 kB / 440.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.3053, allocations: 136 kB / 440.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.3054, allocations: 6 kB / 440.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.3055, allocations: 81.05 kB / 440.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.495e-05/0.3055, allocations: 55.11 kB / 441 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.146e-05/0.3056, allocations: 54.05 kB / 441 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.3058, allocations: 167.6 kB / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3058, allocations: 0 / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3058, allocations: 0 / 441.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.3058, allocations: 0 / 441.2 MB, free: 37.48 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.0009692/0.3068, allocations: 0.6097 MB / 441.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.3068, allocations: 8.344 kB / 441.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.3069, allocations: 37.41 kB / 441.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.223e-05/0.3069, allocations: 24.75 kB / 441.9 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.3074, allocations: 309.8 kB / 442.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.3074, allocations: 3.156 kB / 442.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.3074, allocations: 9.75 kB / 442.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.3077, allocations: 155 kB / 442.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3077, allocations: 0 / 442.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3077, allocations: 6.531 kB / 442.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3077, allocations: 2.562 kB / 442.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.308, allocations: 135.6 kB / 442.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.3086, allocations: 0.5089 MB / 443 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.309, allocations: 190.3 kB / 443.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.3091, allocations: 108.5 kB / 443.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.3091, allocations: 0 / 443.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.3093, allocations: 181.5 kB / 443.5 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.462e-06/0.3094, allocations: 0 / 443.5 MB, free: 36 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001037/0.3104, allocations: 0.5766 MB / 444 MB, free: 35.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.3104, allocations: 83.95 kB / 444.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.3109, allocations: 312.3 kB / 444.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.3109, allocations: 28.33 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.311, allocations: 135.4 kB / 444.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.311, allocations: 66.08 kB / 444.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.053e-05/0.311, allocations: 2.719 kB / 444.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.886e-05/0.3111, allocations: 335.4 kB / 445 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.3112, allocations: 85.77 kB / 445.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.3113, allocations: 86.94 kB / 445.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.3115, allocations: 117.7 kB / 445.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3115, allocations: 0 / 445.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005321/0.312, allocations: 396.5 kB / 445.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.3121, allocations: 38.58 kB / 445.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3121, allocations: 4 kB / 445.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002206/0.3123, allocations: 51.91 kB / 445.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.827e-05/0.3124, allocations: 28.97 kB / 445.8 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3134, allocations: 1.497 MB / 447.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.3137, allocations: 38.2 kB / 447.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.3137, allocations: 3.031 kB / 447.3 MB, free: 33.21 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.0001798/0.3139, allocations: 210.9 kB / 447.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.3139, allocations: 18.53 kB / 447.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.685e-05/0.314, allocations: 36.33 kB / 447.6 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.314, allocations: 0 / 447.6 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.314, allocations: 0 / 447.6 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.314, allocations: 2.5 kB / 447.6 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.3142, allocations: 296.3 kB / 447.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3142, allocations: 4 kB / 447.9 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.3144, allocations: 11.69 kB / 447.9 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.3145, allocations: 55.84 kB / 447.9 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.3145, allocations: 9.141 kB / 447.9 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008728/0.3154, allocations: 1.501 MB / 449.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3154, allocations: 144 / 449.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006976/0.3161, allocations: 0.5441 MB / 450 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.3162, allocations: 96.3 kB / 450.1 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.3162, allocations: 12.59 kB / 450.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.3165, allocations: 35.11 kB / 450.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.3165, allocations: 9.312 kB / 450.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.3165, allocations: 8.594 kB / 450.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003654/0.3169, allocations: 245.4 kB / 450.4 MB, free: 30.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3169, allocations: 0 / 450.4 MB, free: 30.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.3172, allocations: 63.47 kB / 450.4 MB, free: 30.86 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.0009545/0.3182, allocations: 1.112 MB / 451.6 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005518/0.3187, allocations: 432.1 kB / 452 MB, free: 29.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3188, allocations: 3.219 kB / 452 MB, free: 29.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002994/0.3191, allocations: 323.5 kB / 452.3 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3193, allocations: 30 kB / 452.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.322, allocations: 1.807 MB / 454.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.3222, allocations: 0.7645 MB / 454.9 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.328e-05/0.3223, allocations: 27.69 kB / 454.9 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.733e-05/0.3224, allocations: 66.52 kB / 455 MB, free: 27.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3224, allocations: 0 / 455 MB, free: 27.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.3394, allocations: 4.936 MB / 459.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.3396, allocations: 192.4 kB / 460.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.193, allocations: 3.938 kB / 460.1 MB, free: 27.35 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) Environment - environmentSimulation: