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.001528/0.001529, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2008/0.2008, allocations: 22.34 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2334, allocations: 54.95 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002526/0.236, allocations: 1.746 MB / 437.6 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009317/0.237, allocations: 0.6904 MB / 438.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.891e-05/0.2371, allocations: 2.688 kB / 438.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.2374, allocations: 74.56 kB / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.2375, allocations: 90.19 kB / 438.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.2379, allocations: 150.3 kB / 438.6 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.2382, allocations: 266.4 kB / 438.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2383, allocations: 34.31 kB / 438.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2384, allocations: 116.7 kB / 439 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.2386, allocations: 153.8 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.669e-05/0.2386, allocations: 15.19 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.2388, allocations: 82.7 kB / 439.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.288e-05/0.2389, allocations: 60.95 kB / 439.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.026e-05/0.2389, allocations: 92.69 kB / 439.4 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.2392, allocations: 229.7 kB / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2392, allocations: 4 kB / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2392, allocations: 0 / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2392, allocations: 0 / 439.6 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.001103/0.2403, allocations: 0.6288 MB / 440.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.2404, allocations: 11.31 kB / 440.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.2404, allocations: 40.84 kB / 440.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.2404, allocations: 29.75 kB / 440.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004919/0.2409, allocations: 314.3 kB / 440.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.241, allocations: 7.188 kB / 440.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.241, allocations: 8.406 kB / 440.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.2412, allocations: 151.3 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2413, allocations: 2.75 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.2413, allocations: 4 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.2413, allocations: 2.781 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.2415, allocations: 133.9 kB / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006293/0.2422, allocations: 0.5042 MB / 441.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.2426, allocations: 204.2 kB / 441.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2427, allocations: 106.8 kB / 441.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.2428, allocations: 0 / 441.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.243, allocations: 180 kB / 442 MB, free: 35.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.392e-06/0.243, allocations: 0 / 442 MB, free: 35.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001108/0.2441, allocations: 0.5753 MB / 442.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.2441, allocations: 79.95 kB / 442.6 MB, free: 35.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.2446, allocations: 318.2 kB / 442.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.2447, allocations: 29.7 kB / 442.9 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.488e-05/0.2447, allocations: 134.3 kB / 443.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/0.2448, allocations: 59.12 kB / 443.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-05/0.2448, allocations: 38.02 kB / 443.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.576e-05/0.2449, allocations: 334.6 kB / 443.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.245, allocations: 88.61 kB / 443.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2452, allocations: 85.73 kB / 443.7 MB, free: 34.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.2463, allocations: 0.5815 MB / 444.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2463, allocations: 0 / 444.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005204/0.2469, allocations: 397.6 kB / 444.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.2469, allocations: 38.8 kB / 444.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2469, allocations: 0 / 444.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000181/0.2471, allocations: 49.59 kB / 444.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.587e-05/0.2472, allocations: 20.33 kB / 444.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009923/0.2482, allocations: 1.601 MB / 446.3 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.2485, allocations: 42.27 kB / 446.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.2485, allocations: 9.875 kB / 446.4 MB, free: 32.86 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.0001686/0.2487, allocations: 197 kB / 446.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.2487, allocations: 26.66 kB / 446.6 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.157e-05/0.2488, allocations: 35.75 kB / 446.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.2488, allocations: 10.91 kB / 446.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2488, allocations: 3.281 kB / 446.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2488, allocations: 0 / 446.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.249, allocations: 291.2 kB / 446.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.249, allocations: 0 / 446.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2491, allocations: 15.59 kB / 447 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001454/0.2493, allocations: 50.8 kB / 447 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.2493, allocations: 16.75 kB / 447 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000908/0.2502, allocations: 1.603 MB / 448.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2502, allocations: 0 / 448.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.2509, allocations: 0.5369 MB / 449.2 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.251, allocations: 100.2 kB / 449.3 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.251, allocations: 16.34 kB / 449.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.2513, allocations: 33.55 kB / 449.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.2513, allocations: 9.656 kB / 449.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.2513, allocations: 13.31 kB / 449.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004069/0.2518, allocations: 236.6 kB / 449.6 MB, free: 30.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2518, allocations: 0 / 449.6 MB, free: 30.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000275/0.2521, allocations: 66.5 kB / 449.6 MB, free: 30.39 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.0008946/0.253, allocations: 1.088 MB / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.2535, allocations: 454.4 kB / 451.2 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2535, allocations: 0 / 451.2 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.2538, allocations: 318.2 kB / 451.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.2541, allocations: 34.33 kB / 451.5 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/0.2575, allocations: 2.944 MB / 454.5 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001469/0.2577, allocations: 0.7567 MB / 455.2 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.489e-05/0.2578, allocations: 30.66 kB / 455.2 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.673e-05/0.2579, allocations: 67.28 kB / 455.3 MB, free: 26.63 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2579, allocations: 0 / 455.3 MB, free: 26.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.2814, allocations: 5.282 MB / 460.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.412/9.693, allocations: 15.06 kB / 460.6 MB, free: 26.01 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)