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.006258/0.006258, allocations: 105 kB / 15.74 MB, free: 6.02 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.001391/0.001391, allocations: 193.4 kB / 16.68 MB, free: 5.938 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1027/0.1027, allocations: 22.33 MB / 312.9 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002604/0.002604, allocations: 55.91 kB / 436.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1404, allocations: 54.95 MB / 491.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002808/0.1432, allocations: 1.751 MB / 493.2 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1445, allocations: 0.6896 MB / 493.9 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.096e-05/0.1446, allocations: 4 kB / 493.9 MB, free: 2.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.1449, allocations: 79.66 kB / 494 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.1451, allocations: 79.7 kB / 494.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1455, allocations: 147.7 kB / 494.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.1459, allocations: 271.4 kB / 494.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.146, allocations: 37.53 kB / 494.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.1462, allocations: 115.6 kB / 494.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.1464, allocations: 147.6 kB / 494.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.1465, allocations: 16 kB / 494.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1466, allocations: 83.92 kB / 494.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.1468, allocations: 67.75 kB / 495 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.1469, allocations: 99.39 kB / 495.1 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.1472, allocations: 235 kB / 495.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1472, allocations: 0 / 495.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1472, allocations: 0 / 495.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1472, allocations: 0 / 495.3 MB, free: 1.418 MB / 366.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.00132/0.1486, allocations: 0.6247 MB / 495.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1486, allocations: 12.03 kB / 495.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.1487, allocations: 50.67 kB / 496 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/0.1487, allocations: 20.8 kB / 496 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006276/0.1494, allocations: 322.9 kB / 496.3 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1494, allocations: 4.375 kB / 496.3 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.1494, allocations: 8.375 kB / 496.3 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.1497, allocations: 161.6 kB / 496.5 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1497, allocations: 0 / 496.5 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.1498, allocations: 0 / 496.5 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1498, allocations: 8 kB / 496.5 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.1501, allocations: 143.8 kB / 496.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007984/0.1509, allocations: 496.5 kB / 497.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004497/0.1513, allocations: 206.3 kB / 497.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1515, allocations: 112.8 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1516, allocations: 0 / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.1518, allocations: 181 kB / 497.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.302e-06/0.1518, allocations: 0 / 497.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001329/0.1532, allocations: 0.585 MB / 498.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.1533, allocations: 81.11 kB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005646/0.1538, allocations: 312.9 kB / 498.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.1539, allocations: 29.7 kB / 498.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.154, allocations: 132.1 kB / 498.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.952e-05/0.1541, allocations: 59.48 kB / 498.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/0.1541, allocations: 49.64 kB / 498.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1543, allocations: 334.8 kB / 499.2 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1545, allocations: 87.95 kB / 499.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.1546, allocations: 81.58 kB / 499.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.156, allocations: 0.5802 MB / 499.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.156, allocations: 0 / 499.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006785/0.1567, allocations: 391.9 kB / 0.4886 GB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.1567, allocations: 41.69 kB / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1567, allocations: 0 / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.157, allocations: 52.81 kB / 0.4887 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.1571, allocations: 23.98 kB / 0.4887 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.1587, allocations: 1.598 MB / 0.4902 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1589, allocations: 36.08 kB / 0.4903 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.159, allocations: 4 kB / 0.4903 GB, free: 10.2 MB / 382.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.0002418/0.1592, allocations: 200.2 kB / 0.4905 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.1593, allocations: 23.86 kB / 0.4905 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/0.1593, allocations: 38.11 kB / 0.4905 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1593, allocations: 0 / 0.4905 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1594, allocations: 0 / 0.4905 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1594, allocations: 4 kB / 0.4905 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.1597, allocations: 301.3 kB / 0.4908 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1597, allocations: 4 kB / 0.4908 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.1598, allocations: 16 kB / 0.4908 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.16, allocations: 52.8 kB / 0.4909 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.16, allocations: 15.94 kB / 0.4909 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001465/0.1615, allocations: 1.595 MB / 0.4925 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1615, allocations: 0 / 0.4925 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000894/0.1624, allocations: 0.5361 MB / 0.493 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-05/0.1625, allocations: 104.8 kB / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/0.1626, allocations: 11.94 kB / 0.4931 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.1628, allocations: 28 kB / 0.4931 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.1629, allocations: 15.98 kB / 0.4931 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.1629, allocations: 8 kB / 0.4931 GB, free: 7.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004863/0.1634, allocations: 244.4 kB / 0.4934 GB, free: 6.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1634, allocations: 0 / 0.4934 GB, free: 6.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1637, allocations: 67.89 kB / 0.4934 GB, free: 6.699 MB / 382.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.001318/0.165, allocations: 1.105 MB / 0.4945 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006887/0.1657, allocations: 432 kB / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1657, allocations: 4 kB / 0.4949 GB, free: 5.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.1662, allocations: 329.9 kB / 0.4952 GB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.1664, allocations: 33.61 kB / 0.4953 GB, free: 4.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.1709, allocations: 2.933 MB / 0.4981 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.1714, allocations: 0.7593 MB / 0.4989 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.467e-05/0.1715, allocations: 33.41 kB / 0.4989 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.838e-05/0.1716, allocations: 63.41 kB / 0.499 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1716, allocations: 3.938 kB / 0.499 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.228/0.3996, allocations: 5.363 MB / 0.5042 GB, free: 22.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.545/9.944, allocations: 4.047 kB / 0.5042 GB, free: 22.24 MB / 382.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)