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.007166/0.007166, allocations: 101.5 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.00125/0.00125, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2138/0.2138, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 72.56 kB / 436.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 54.96 MB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002666/0.1045, allocations: 2.276 MB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007489/0.1053, allocations: 0.5143 MB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.262e-05/0.1054, allocations: 11.94 kB / 494.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1055, allocations: 27.72 kB / 494.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1056, allocations: 63.47 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.1058, allocations: 35.95 kB / 494.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.106, allocations: 223 kB / 494.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.1062, allocations: 95.97 kB / 494.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.885e-05/0.1063, allocations: 75.78 kB / 494.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.1064, allocations: 99.55 kB / 494.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.1065, allocations: 16 kB / 495 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.101e-05/0.1065, allocations: 24 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.1065, allocations: 35.86 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.362e-05/0.1066, allocations: 91.59 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.1068, allocations: 220.1 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1069, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1069, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1069, 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0005758/0.1074, allocations: 475.3 kB / 495.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1075, allocations: 12.03 kB / 495.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.321e-05/0.1076, allocations: 62.67 kB / 495.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.091e-05/0.1076, allocations: 20.75 kB / 495.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.1078, allocations: 208 kB / 496.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.1078, allocations: 16.81 kB / 496.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.1079, allocations: 20.38 kB / 496.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.1082, allocations: 175.4 kB / 496.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1082, allocations: 7.984 kB / 496.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.1082, allocations: 8 kB / 496.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1083, allocations: 4 kB / 496.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.1085, allocations: 121.7 kB / 496.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009053/0.1094, allocations: 0.6679 MB / 497.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.1097, allocations: 142.4 kB / 497.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1099, allocations: 77.05 kB / 497.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.1099, allocations: 3.938 kB / 497.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.1099, allocations: 30.56 kB / 497.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.1099, allocations: 4 kB / 497.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003979/0.1103, allocations: 172 kB / 497.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.1103, allocations: 51.41 kB / 497.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.198e-05/0.1104, allocations: 137.7 kB / 497.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.1105, allocations: 25.7 kB / 497.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.1105, allocations: 132.1 kB / 497.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.1106, allocations: 63.09 kB / 497.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-05/0.1106, allocations: 37.7 kB / 498 MB, free: 11.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1108, allocations: 322.8 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.135e-05/0.1109, allocations: 39.98 kB / 498.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.111, allocations: 68.34 kB / 498.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.1112, allocations: 126 kB / 498.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1112, allocations: 0 / 498.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002576/0.1114, allocations: 165.3 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.1115, allocations: 4 kB / 498.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1115, allocations: 0 / 498.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1115, allocations: 7.938 kB / 498.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.1117, allocations: 39.92 kB / 498.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1117, allocations: 4.094 kB / 498.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.046e-05/0.1117, allocations: 19.84 kB / 498.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.1118, allocations: 4 kB / 498.7 MB, free: 10.24 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.0001006/0.1119, allocations: 138.5 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.1119, allocations: 11.84 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.112, allocations: 12.84 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.112, allocations: 4 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.112, allocations: 0 / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.112, allocations: 0 / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.1122, allocations: 265.4 kB / 499.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1122, allocations: 0 / 499.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.1124, allocations: 35.98 kB / 499.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.1124, allocations: 0 / 499.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1125, allocations: 11.94 kB / 499.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1125, allocations: 0 / 499.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1125, allocations: 0 / 499.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003703/0.1128, allocations: 287.3 kB / 499.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.1129, allocations: 92.89 kB / 499.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.1129, allocations: 7.984 kB / 499.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.113, allocations: 7.938 kB / 499.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.1131, allocations: 11.98 kB / 499.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.1131, allocations: 4 kB / 499.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.641e-05/0.1132, allocations: 102.3 kB / 499.7 MB, free: 9.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1132, allocations: 0 / 499.7 MB, free: 9.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.1134, allocations: 47.84 kB / 499.8 MB, free: 9.129 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.0006287/0.1141, allocations: 0.8202 MB / 0.4888 GB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.1143, allocations: 110.1 kB / 0.489 GB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1143, allocations: 4.25 kB / 0.489 GB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.592e-05/0.1144, allocations: 55.92 kB / 0.489 GB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.1147, allocations: 11.98 kB / 0.489 GB, free: 8.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.1167, allocations: 1.908 MB / 0.4909 GB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.117, allocations: 0.7201 MB / 0.4916 GB, free: 5.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.801e-05/0.117, allocations: 20.58 kB / 0.4916 GB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/0.1171, allocations: 39.42 kB / 0.4916 GB, free: 5.297 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1171, allocations: 4 kB / 0.4916 GB, free: 5.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.1364, allocations: 2.861 MB / 0.4944 GB, free: 2.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.395, allocations: 11.77 kB / 0.4945 GB, free: 2.52 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)