Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",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.007676/0.007676, allocations: 101.3 kB / 15.73 MB, free: 6.449 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.001299/0.001299, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2097/0.2097, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 66.28 kB / 436.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1216, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003082/0.1247, allocations: 2.282 MB / 493.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.1258, allocations: 0.5104 MB / 494.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.126, allocations: 7.938 kB / 494.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.1261, allocations: 35.7 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1263, allocations: 55.47 kB / 494.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.1265, allocations: 51.88 kB / 494.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.1268, allocations: 207 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.127, allocations: 100.2 kB / 494.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1272, allocations: 87.72 kB / 494.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1273, allocations: 91.61 kB / 495 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.1274, allocations: 16 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.096e-05/0.1274, allocations: 16 kB / 495 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.1274, allocations: 43.84 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.1275, allocations: 91.59 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.1278, allocations: 219.1 kB / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1278, allocations: 0 / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1278, allocations: 0 / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1279, allocations: 0 / 495.3 MB, free: 13.9 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006457/0.1285, allocations: 479.1 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1285, allocations: 12.03 kB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.1286, allocations: 54.67 kB / 495.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.1287, allocations: 20.84 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.129, allocations: 220 kB / 496.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.129, allocations: 12.81 kB / 496.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.129, allocations: 20.38 kB / 496.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.1294, allocations: 179.4 kB / 496.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1294, allocations: 3.984 kB / 496.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.1294, allocations: 4 kB / 496.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1294, allocations: 8 kB / 496.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.1297, allocations: 121.7 kB / 496.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009939/0.1307, allocations: 0.6798 MB / 497.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.131, allocations: 130.5 kB / 497.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.1312, allocations: 64.84 kB / 497.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1312, allocations: 4 kB / 497.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.1312, allocations: 34.84 kB / 497.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.623e-06/0.1312, allocations: 0 / 497.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.000409/0.1316, allocations: 183.7 kB / 497.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1317, allocations: 55.41 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.1318, allocations: 123.8 kB / 497.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.1318, allocations: 25.7 kB / 497.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.1319, allocations: 140.2 kB / 497.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.297e-05/0.1319, allocations: 67.47 kB / 497.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.132, allocations: 33.72 kB / 498 MB, free: 11.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1321, allocations: 318.8 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1322, allocations: 39.98 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1323, allocations: 68.91 kB / 498.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.1326, allocations: 123.4 kB / 498.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1326, allocations: 0 / 498.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00027/0.1328, allocations: 164 kB / 498.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1329, allocations: 8 kB / 498.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1329, allocations: 0 / 498.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1329, allocations: 15.97 kB / 498.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.1331, allocations: 35.98 kB / 498.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.1331, allocations: 3.984 kB / 498.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.794e-05/0.1332, allocations: 15.89 kB / 498.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.1332, allocations: 8 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.1333, allocations: 130.5 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.1334, allocations: 15.89 kB / 498.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.1334, allocations: 20.84 kB / 498.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1334, allocations: 8 kB / 498.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1334, allocations: 0 / 498.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1334, allocations: 3.984 kB / 498.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.1337, allocations: 257.5 kB / 499.2 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1337, allocations: 0 / 499.2 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.1339, allocations: 35.92 kB / 499.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.1339, allocations: 3.984 kB / 499.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.134, allocations: 0 / 499.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.134, allocations: 4 kB / 499.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.134, allocations: 0 / 499.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.1344, allocations: 295.3 kB / 499.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.1344, allocations: 89.03 kB / 499.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.1345, allocations: 0 / 499.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1346, allocations: 8 kB / 499.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.1346, allocations: 7.984 kB / 499.6 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.1346, allocations: 4 kB / 499.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.627e-05/0.1347, allocations: 103.3 kB / 499.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1347, allocations: 0 / 499.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.135, allocations: 47.89 kB / 499.8 MB, free: 9.109 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.T) * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006539/0.1356, allocations: 0.8276 MB / 0.4889 GB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.1359, allocations: 112 kB / 0.489 GB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1359, allocations: 0 / 0.489 GB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.136, allocations: 59.91 kB / 0.489 GB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.1363, allocations: 12 kB / 0.489 GB, free: 8.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.1386, allocations: 1.914 MB / 0.4909 GB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1389, allocations: 0.724 MB / 0.4916 GB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.506e-05/0.1389, allocations: 16.58 kB / 0.4916 GB, free: 5.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.041e-05/0.139, allocations: 47.42 kB / 0.4917 GB, free: 5.254 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.139, allocations: 0 / 0.4917 GB, free: 5.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.1593, allocations: 2.828 MB / 0.4944 GB, free: 2.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.449/7.609, allocations: 7.719 kB / 0.4944 GB, free: 2.516 MB / 366.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.875 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)