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.007198/0.007198, allocations: 95.17 kB / 15.73 MB, free: 6.047 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.001789/0.001789, allocations: 206.2 kB / 16.68 MB, free: 5.973 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2242/0.2242, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 62.28 kB / 436.6 MB, free: 34.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 54.97 MB / 491.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002722/0.1087, allocations: 1.751 MB / 493.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.11, allocations: 0.6895 MB / 494 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.495e-05/0.1101, allocations: 0 / 494 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.1104, allocations: 71.72 kB / 494.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.1107, allocations: 95.62 kB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.1111, allocations: 146.4 kB / 494.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002995/0.1114, allocations: 271.5 kB / 494.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1116, allocations: 33.77 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.1117, allocations: 119.6 kB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.112, allocations: 155.5 kB / 494.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.112, allocations: 16 kB / 494.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1122, allocations: 87.92 kB / 495 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.903e-05/0.1123, allocations: 63.81 kB / 495 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.211e-05/0.1124, allocations: 87.39 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.1127, allocations: 243 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1127, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1127, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1128, allocations: 0 / 495.3 MB, free: 13.92 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.001481/0.1142, allocations: 0.6208 MB / 496 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.1143, allocations: 8.031 kB / 496 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.759e-05/0.1144, allocations: 42.75 kB / 496 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.1144, allocations: 24.8 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006342/0.1151, allocations: 326.7 kB / 496.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.1151, allocations: 8.375 kB / 496.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.1151, allocations: 12.38 kB / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.1154, allocations: 155 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1154, allocations: 0 / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.1155, allocations: 4 kB / 496.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.1155, allocations: 7.938 kB / 496.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.1157, allocations: 135.8 kB / 496.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007577/0.1165, allocations: 0.5004 MB / 497.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004201/0.1169, allocations: 198.4 kB / 497.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.1171, allocations: 108.8 kB / 497.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1171, allocations: 4 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.1174, allocations: 177 kB / 497.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.714e-06/0.1174, allocations: 4 kB / 497.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001274/0.1187, allocations: 0.5789 MB / 498.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1187, allocations: 85.11 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.1193, allocations: 308.9 kB / 498.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.1193, allocations: 29.7 kB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.1194, allocations: 136.1 kB / 498.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.1195, allocations: 63.47 kB / 498.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.1196, allocations: 41.7 kB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1197, allocations: 330.8 kB / 499.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1198, allocations: 83.94 kB / 499.3 MB, free: 9.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.12, allocations: 90.2 kB / 499.4 MB, free: 9.617 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.1213, allocations: 0.5751 MB / 500 MB, free: 9.016 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1213, allocations: 7.938 kB / 500 MB, free: 9.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006093/0.1219, allocations: 395.2 kB / 0.4886 GB, free: 8.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.1219, allocations: 37.7 kB / 0.4887 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.122, allocations: 3.938 kB / 0.4887 GB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.1222, allocations: 52.8 kB / 0.4887 GB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1223, allocations: 20 kB / 0.4887 GB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.1237, allocations: 1.602 MB / 0.4903 GB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.124, allocations: 44 kB / 0.4903 GB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.124, allocations: 4 kB / 0.4903 GB, free: 6.699 MB / 366.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.0002307/0.1242, allocations: 200.2 kB / 0.4905 GB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.1243, allocations: 23.86 kB / 0.4906 GB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.331e-05/0.1243, allocations: 38.12 kB / 0.4906 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1243, allocations: 0 / 0.4906 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1244, allocations: 4 kB / 0.4906 GB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1244, allocations: 3.984 kB / 0.4906 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.1246, allocations: 289.5 kB / 0.4909 GB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1246, allocations: 3.938 kB / 0.4909 GB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.1248, allocations: 15.98 kB / 0.4909 GB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001636/0.1249, allocations: 52.81 kB / 0.4909 GB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.125, allocations: 19.88 kB / 0.491 GB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.1262, allocations: 1.595 MB / 0.4925 GB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1262, allocations: 0 / 0.4925 GB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008136/0.127, allocations: 0.5275 MB / 0.493 GB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.1271, allocations: 109 kB / 0.4931 GB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.1271, allocations: 12.17 kB / 0.4931 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.1274, allocations: 36.02 kB / 0.4932 GB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/0.1274, allocations: 7.984 kB / 0.4932 GB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.1275, allocations: 11.98 kB / 0.4932 GB, free: 3.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004595/0.1279, allocations: 240.4 kB / 0.4934 GB, free: 3.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.128, allocations: 7.938 kB / 0.4934 GB, free: 3.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.1283, allocations: 71.89 kB / 0.4935 GB, free: 3.199 MB / 366.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.001156/0.1294, allocations: 1.109 MB / 0.4946 GB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.1301, allocations: 429.9 kB / 0.495 GB, free: 1.609 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1301, allocations: 0 / 0.495 GB, free: 1.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.1305, allocations: 325.9 kB / 0.4953 GB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.1308, allocations: 28.42 kB / 0.4953 GB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.135, allocations: 2.935 MB / 0.4982 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1353, allocations: 0.7554 MB / 0.4989 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.603e-05/0.1354, allocations: 33.39 kB / 0.499 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.43e-05/0.1355, allocations: 67.36 kB / 0.499 GB, free: 13.32 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1355, allocations: 0 / 0.499 GB, free: 13.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02653/0.1621, allocations: 5.358 MB / 0.5043 GB, free: 8.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.489/9.651, allocations: 35.19 kB / 0.5043 GB, free: 8.039 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)