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.001022/0.001022, allocations: 99.86 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.0009219/0.0009219, 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.306/1.306, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2278/0.2278, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002847, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2518, allocations: 55.99 MB / 437.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.001178/0.253, allocations: 1.415 MB / 439.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007028/0.2537, allocations: 0.6455 MB / 440 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.422e-05/0.2538, allocations: 3.938 kB / 440 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.254, allocations: 62.55 kB / 440 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.2541, allocations: 90.19 kB / 440.1 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.2544, allocations: 112.7 kB / 440.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.2546, allocations: 148.2 kB / 440.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.272e-05/0.2547, allocations: 20.83 kB / 440.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2548, allocations: 127.8 kB / 440.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.2549, allocations: 124.9 kB / 440.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.255, allocations: 5.656 kB / 440.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.251e-05/0.255, allocations: 66.62 kB / 440.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.2551, allocations: 58.95 kB / 440.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.2552, allocations: 53.05 kB / 440.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.2553, allocations: 170.6 kB / 441 MB, free: 37.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.2553, allocations: 0 / 441 MB, free: 37.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2553, allocations: 0 / 441 MB, free: 37.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.2553, allocations: 4 kB / 441 MB, free: 37.32 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.0008944/0.2562, allocations: 0.5981 MB / 441.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.2562, allocations: 9.062 kB / 441.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.02e-05/0.2563, allocations: 44.44 kB / 441.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.894e-05/0.2563, allocations: 22.41 kB / 441.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.2568, allocations: 309.4 kB / 442 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.2568, allocations: 6.875 kB / 442 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.2568, allocations: 8.312 kB / 442 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.257, allocations: 158 kB / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2571, allocations: 0 / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.2571, allocations: 6.969 kB / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2571, allocations: 0 / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.2573, allocations: 134 kB / 442.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.2579, allocations: 0.5047 MB / 442.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003248/0.2582, allocations: 192.8 kB / 443 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.2582, allocations: 4 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.2584, allocations: 182.4 kB / 443.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.2584, allocations: 0 / 443.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009669/0.2594, allocations: 0.6479 MB / 443.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.2595, allocations: 88.2 kB / 443.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.2599, allocations: 309.5 kB / 444.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.2599, allocations: 32.55 kB / 444.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.26, allocations: 132.3 kB / 444.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.26, allocations: 58.39 kB / 444.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.428e-06/0.26, allocations: 0 / 444.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.2601, allocations: 341.6 kB / 444.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2602, allocations: 79.86 kB / 444.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.2603, allocations: 85.14 kB / 444.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.2604, allocations: 128.6 kB / 445 MB, free: 34.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2604, allocations: 0 / 445 MB, free: 34.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004786/0.2609, allocations: 395 kB / 445.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.261, allocations: 33.58 kB / 445.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.261, allocations: 7.172 kB / 445.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.2612, allocations: 56.61 kB / 445.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.922e-05/0.2613, allocations: 17.53 kB / 445.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008653/0.2621, allocations: 1.51 MB / 447 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.2624, allocations: 41.73 kB / 447.1 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.2624, allocations: 2.969 kB / 447.1 MB, free: 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.0001451/0.2625, allocations: 199.7 kB / 447.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.2626, allocations: 23.25 kB / 447.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.2626, allocations: 46.27 kB / 447.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2626, allocations: 2.719 kB / 447.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2626, allocations: 0 / 447.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2627, allocations: 0 / 447.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.2628, allocations: 295.8 kB / 447.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2628, allocations: 2.844 kB / 447.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.2629, allocations: 16.34 kB / 447.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.2631, allocations: 53.11 kB / 447.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2631, allocations: 10.22 kB / 447.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007918/0.2639, allocations: 1.507 MB / 449.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2639, allocations: 4.062 kB / 449.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006392/0.2646, allocations: 0.5298 MB / 449.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-05/0.2646, allocations: 97.48 kB / 449.8 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.2647, allocations: 10.41 kB / 449.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.2649, allocations: 35.58 kB / 449.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.2649, allocations: 13.3 kB / 449.9 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.265, allocations: 12.86 kB / 449.9 MB, free: 30.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003687/0.2653, allocations: 242.4 kB / 450.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2653, allocations: 0 / 450.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000264/0.2656, allocations: 70.44 kB / 450.2 MB, free: 30.63 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.0008399/0.2665, allocations: 1.098 MB / 451.3 MB, free: 29.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.267, allocations: 437.2 kB / 451.7 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.267, allocations: 0 / 451.7 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.2672, allocations: 322.4 kB / 452.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.2674, allocations: 27.09 kB / 452.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.2699, allocations: 1.781 MB / 453.9 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.2701, allocations: 0.7615 MB / 454.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.736e-05/0.2701, allocations: 32.31 kB / 454.7 MB, free: 27.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.884e-05/0.2702, allocations: 66.02 kB / 454.7 MB, free: 27.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2702, allocations: 0 / 454.7 MB, free: 27.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.225/7.495, allocations: 4.932 MB / 459.7 MB, free: 27.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/7.495, allocations: 192.5 kB / 459.8 MB, free: 27.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.387/9.882, allocations: 0 / 459.8 MB, free: 27.14 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: