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.001279/0.001279, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001092/0.001092, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.249/1.249, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1909/0.1909, allocations: 22.37 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2269, allocations: 54.94 MB / 435.3 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002126/0.2291, allocations: 1.796 MB / 437.1 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008114/0.2299, allocations: 0.6911 MB / 437.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.157e-05/0.23, allocations: 3.938 kB / 437.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.2303, allocations: 63.16 kB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.2304, allocations: 84.61 kB / 438 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.2308, allocations: 128.6 kB / 438.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.231, allocations: 276.6 kB / 438.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.417e-05/0.2311, allocations: 30.92 kB / 438.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.2312, allocations: 122.6 kB / 438.5 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.2314, allocations: 149.4 kB / 438.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.2314, allocations: 12.94 kB / 438.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.849e-05/0.2315, allocations: 86.92 kB / 438.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.255e-05/0.2316, allocations: 69.3 kB / 438.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.953e-05/0.2317, allocations: 93.86 kB / 438.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.2319, allocations: 226 kB / 439.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2319, allocations: 0 / 439.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2319, allocations: 4 kB / 439.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.2319, allocations: 0 / 439.2 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.00104/0.233, allocations: 0.6286 MB / 439.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.233, allocations: 14.06 kB / 439.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.094e-05/0.233, allocations: 40.53 kB / 439.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.2331, allocations: 25.53 kB / 439.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.2335, allocations: 307 kB / 440.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2336, allocations: 14.38 kB / 440.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.2336, allocations: 10.44 kB / 440.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.2338, allocations: 155.4 kB / 440.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2338, allocations: 0 / 440.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2339, allocations: 7.188 kB / 440.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.2339, allocations: 3.781 kB / 440.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.2341, allocations: 130.7 kB / 440.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005871/0.2347, allocations: 0.5066 MB / 441 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.235, allocations: 197.9 kB / 441.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.2352, allocations: 110.4 kB / 441.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.2352, allocations: 6.969 kB / 441.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.2354, allocations: 172.8 kB / 441.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.2354, allocations: 3.938 kB / 441.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001025/0.2364, allocations: 0.5737 MB / 442 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.2365, allocations: 79.92 kB / 442.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004373/0.2369, allocations: 323.6 kB / 442.4 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2369, allocations: 25.7 kB / 442.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.237, allocations: 135.2 kB / 442.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/0.237, allocations: 67.77 kB / 442.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.536e-05/0.2371, allocations: 35.91 kB / 442.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.926e-05/0.2372, allocations: 330.9 kB / 443 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.2373, allocations: 85.19 kB / 443.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.2374, allocations: 90.16 kB / 443.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.2385, allocations: 0.5797 MB / 443.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2385, allocations: 0 / 443.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004896/0.239, allocations: 391.2 kB / 444.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.239, allocations: 40.03 kB / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.239, allocations: 0 / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.2392, allocations: 54.38 kB / 444.2 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.013e-05/0.2393, allocations: 21.86 kB / 444.3 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009062/0.2402, allocations: 1.598 MB / 445.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.2405, allocations: 40.92 kB / 445.9 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2405, allocations: 10.81 kB / 445.9 MB, free: 32.59 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.0001518/0.2406, allocations: 192 kB / 446.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.2407, allocations: 29.16 kB / 446.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.2407, allocations: 38.11 kB / 446.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.2407, allocations: 0 / 446.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2407, allocations: 11.09 kB / 446.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2407, allocations: 0 / 446.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.2409, allocations: 294.1 kB / 446.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2409, allocations: 0 / 446.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.241, allocations: 18.06 kB / 446.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001412/0.2412, allocations: 51.22 kB / 446.5 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.2412, allocations: 10.88 kB / 446.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008463/0.2421, allocations: 1.594 MB / 448.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2421, allocations: 64 / 448.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/0.2428, allocations: 0.542 MB / 448.7 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.2428, allocations: 105 kB / 448.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.2429, allocations: 12.34 kB / 448.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.2431, allocations: 30.31 kB / 448.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.899e-05/0.2432, allocations: 15.59 kB / 448.8 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.2432, allocations: 9.344 kB / 448.8 MB, free: 30.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.2436, allocations: 239.6 kB / 449.1 MB, free: 30.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2436, allocations: 0 / 449.1 MB, free: 30.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.2439, allocations: 66.25 kB / 449.1 MB, free: 30.14 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.0008632/0.2447, allocations: 1.094 MB / 450.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005107/0.2452, allocations: 452.1 kB / 450.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2453, allocations: 0 / 450.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.2455, allocations: 320.3 kB / 451 MB, free: 28.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.2458, allocations: 29.11 kB / 451 MB, free: 28.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.2492, allocations: 2.981 MB / 454 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.2494, allocations: 0.7557 MB / 454.8 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.679e-05/0.2495, allocations: 38.52 kB / 454.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.107e-05/0.2495, allocations: 64.42 kB / 454.9 MB, free: 26.33 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2495, allocations: 0 / 454.9 MB, free: 26.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02294/0.2725, allocations: 5.187 MB / 460 MB, free: 25.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.2727, allocations: 209.4 kB / 460.2 MB, free: 25.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.006, allocations: 0 / 460.2 MB, free: 25.58 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/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)