Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.004766/0.004766, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001348/0.001348, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.298/1.298, 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.08707/0.08707, allocations: 22.32 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001475, allocations: 63.91 kB / 436.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1149, 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_base): time 0.002392/0.1173, allocations: 0.9713 MB / 492.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.119, allocations: 1.198 MB / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1192, allocations: 0 / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003307/0.1195, allocations: 35.72 kB / 493.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.1197, allocations: 43.77 kB / 493.7 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.1199, allocations: 67.89 kB / 493.8 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.1202, allocations: 203.6 kB / 494 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1203, allocations: 41.36 kB / 494 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1205, allocations: 79.69 kB / 494.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.1207, allocations: 95.62 kB / 494.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.1207, allocations: 12 kB / 494.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.708e-05/0.1208, allocations: 12 kB / 494.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.11e-05/0.1209, allocations: 51.89 kB / 494.3 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.129e-05/0.1209, allocations: 59.59 kB / 494.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.1211, allocations: 143.4 kB / 494.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1211, allocations: 0 / 494.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1211, allocations: 0 / 494.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1212, allocations: 4 kB / 494.5 MB, free: 2.207 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001166/0.1223, allocations: 0.5104 MB / 495 MB, free: 1.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1224, allocations: 12.03 kB / 495 MB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.1224, allocations: 42.75 kB / 495.1 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/0.1225, allocations: 16.75 kB / 495.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005879/0.1231, allocations: 296.6 kB / 495.4 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.1231, allocations: 4.375 kB / 495.4 MB, free: 1.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.82e-05/0.1232, allocations: 12.31 kB / 495.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.1234, allocations: 113.8 kB / 495.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1234, allocations: 0 / 495.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1234, allocations: 0 / 495.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1234, allocations: 4 kB / 495.5 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.1237, allocations: 99.92 kB / 495.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006893/0.1244, allocations: 464.4 kB / 496 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.1248, allocations: 154.5 kB / 496.2 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1249, allocations: 72.81 kB / 496.3 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.1249, allocations: 0 / 496.3 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.125, allocations: 34.5 kB / 496.3 MB, free: 232 kB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 2.645e-06/0.125, allocations: 3.984 kB / 496.3 MB, free: 228 kB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001125/0.1261, allocations: 399.6 kB / 496.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.1262, allocations: 51.41 kB / 496.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.1266, allocations: 246.6 kB / 497 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.1267, allocations: 25.7 kB / 497 MB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.885e-05/0.1267, allocations: 120 kB / 497.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.1268, allocations: 39.36 kB / 497.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-05/0.1269, allocations: 33.7 kB / 497.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.127, allocations: 326.8 kB / 497.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.1271, allocations: 43.97 kB / 497.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.1272, allocations: 59.95 kB / 497.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.1283, allocations: 335.3 kB / 497.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1283, allocations: 0 / 497.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004454/0.1287, allocations: 230.1 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1288, allocations: 17.97 kB / 498.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1288, allocations: 0 / 498.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002029/0.129, allocations: 52.8 kB / 498.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.1291, allocations: 19.94 kB / 498.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.1305, allocations: 1.602 MB / 499.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.1307, allocations: 31.98 kB / 499.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.1307, allocations: 4 kB / 499.9 MB, free: 12.39 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001614/0.1309, allocations: 154.2 kB / 0.4883 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/0.131, allocations: 11.91 kB / 0.4883 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.045e-05/0.131, allocations: 33.33 kB / 0.4884 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.131, allocations: 0 / 0.4884 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.131, allocations: 4 kB / 0.4884 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1311, allocations: 0 / 0.4884 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.1313, allocations: 253.4 kB / 0.4886 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1313, allocations: 0 / 0.4886 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.1314, allocations: 19.98 kB / 0.4886 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001601/0.1316, allocations: 48.81 kB / 0.4887 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1316, allocations: 3.938 kB / 0.4887 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.1329, allocations: 1.595 MB / 0.4902 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1329, allocations: 0 / 0.4902 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.1335, allocations: 384 kB / 0.4906 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-05/0.1336, allocations: 92.98 kB / 0.4907 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.1336, allocations: 4 kB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.1338, allocations: 36.17 kB / 0.4907 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.1339, allocations: 7.984 kB / 0.4907 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.1339, allocations: 4 kB / 0.4907 GB, free: 9.527 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003697/0.1343, allocations: 204.2 kB / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1343, allocations: 0 / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.1346, allocations: 35.91 kB / 0.491 GB, free: 9.293 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],Cfb.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0009108/0.1355, allocations: 0.9184 MB / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.136, allocations: 262.6 kB / 0.4921 GB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.136, allocations: 4 kB / 0.4921 GB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002817/0.1363, allocations: 190.6 kB / 0.4923 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1367, allocations: 27.92 kB / 0.4923 GB, free: 7.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.14, allocations: 2.257 MB / 0.4945 GB, free: 5.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.1402, allocations: 0.728 MB / 0.4953 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.387e-05/0.1403, allocations: 33.06 kB / 0.4953 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.421e-05/0.1404, allocations: 43.42 kB / 0.4953 GB, free: 4.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.492e-06/0.1404, allocations: 0 / 0.4953 GB, free: 4.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.1659, allocations: 3.829 MB / 0.4991 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.966/9.132, allocations: 15.5 kB / 0.4991 GB, free: 0.9219 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)