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.0008487/0.0008486, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00597/0.00597, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2266/0.2266, allocations: 22.35 MB / 313.8 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004164, allocations: 8 kB / 382.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3173, allocations: 55.98 MB / 438.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002211/0.3196, allocations: 1.968 MB / 440.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006685/0.3203, allocations: 0.5017 MB / 441.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.3204, allocations: 3.375 kB / 441.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.3205, allocations: 24.12 kB / 441.2 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.3207, allocations: 51.59 kB / 441.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.3208, allocations: 35.33 kB / 441.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.321, allocations: 206.9 kB / 441.5 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3213, allocations: 87.89 kB / 441.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.67e-05/0.3213, allocations: 64.09 kB / 441.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.3215, allocations: 78.94 kB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.3215, allocations: 8.969 kB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.854e-05/0.3216, allocations: 8.219 kB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.702e-05/0.3216, allocations: 32.59 kB / 441.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.027e-05/0.3217, allocations: 109.9 kB / 441.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.3219, allocations: 203.1 kB / 442 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3219, allocations: 2.594 kB / 442.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3219, allocations: 0 / 442.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.3219, allocations: 0 / 442.1 MB, free: 36.9 MB / 350.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.0006092/0.3225, allocations: 443.1 kB / 442.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.3226, allocations: 16.75 kB / 442.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.264e-05/0.3227, allocations: 55.06 kB / 442.6 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.3227, allocations: 23.91 kB / 442.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.323, allocations: 214 kB / 442.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.323, allocations: 15.78 kB / 442.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.3231, allocations: 22.97 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.3235, allocations: 175.6 kB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.3235, allocations: 0 / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.3235, allocations: 7 kB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3235, allocations: 5.75 kB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.3238, allocations: 128.8 kB / 443.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.3249, allocations: 0.6791 MB / 443.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.3253, allocations: 129.6 kB / 443.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.3254, allocations: 75.28 kB / 444 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.3254, allocations: 4 kB / 444 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.3254, allocations: 33.41 kB / 444 MB, free: 35.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.3255, allocations: 0 / 444 MB, free: 35.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004408/0.3259, allocations: 168.8 kB / 444.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.326, allocations: 55.41 kB / 444.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3261, allocations: 125.9 kB / 444.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.3261, allocations: 28.55 kB / 444.4 MB, free: 35.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.3262, allocations: 135.4 kB / 444.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.3263, allocations: 55.7 kB / 444.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.3263, allocations: 26.86 kB / 444.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.969e-05/0.3264, allocations: 322.1 kB / 444.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.374e-05/0.3265, allocations: 41.39 kB / 445 MB, free: 34.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.513e-05/0.3266, allocations: 70.7 kB / 445.1 MB, free: 34.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.3267, allocations: 124.4 kB / 445.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3268, allocations: 0 / 445.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002356/0.327, allocations: 167.1 kB / 445.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.327, allocations: 3.062 kB / 445.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.327, allocations: 6.75 kB / 445.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.327, allocations: 6.219 kB / 445.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.3272, allocations: 43.05 kB / 445.4 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3272, allocations: 3.969 kB / 445.4 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.673e-05/0.3273, allocations: 18.72 kB / 445.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.3273, allocations: 11.56 kB / 445.4 MB, free: 34.35 MB / 350.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 8.214e-05/0.3274, allocations: 135.5 kB / 445.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/0.3275, allocations: 17.47 kB / 445.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.3275, allocations: 15.28 kB / 445.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.3275, allocations: 3.609 kB / 445.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3275, allocations: 2.594 kB / 445.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3275, allocations: 0 / 445.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.3278, allocations: 255.5 kB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3278, allocations: 3.938 kB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.3279, allocations: 32.11 kB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.328, allocations: 0 / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.328, allocations: 6.656 kB / 445.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.328, allocations: 8 kB / 445.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.328, allocations: 0 / 445.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.3283, allocations: 284.6 kB / 446.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.3284, allocations: 91.42 kB / 446.3 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.3284, allocations: 7.469 kB / 446.3 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.3285, allocations: 10.56 kB / 446.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.3286, allocations: 12.48 kB / 446.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.3286, allocations: 2.562 kB / 446.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.3286, allocations: 97.59 kB / 446.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3287, allocations: 0 / 446.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.329, allocations: 52.44 kB / 446.4 MB, free: 33.55 MB / 350.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.0005795/0.3295, allocations: 0.8243 MB / 447.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000262/0.3298, allocations: 109.2 kB / 447.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3298, allocations: 0 / 447.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.3299, allocations: 56.03 kB / 447.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.3303, allocations: 12.91 kB / 447.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.3322, allocations: 2.033 MB / 449.5 MB, free: 31.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.3323, allocations: 0.7174 MB / 450.2 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.121e-05/0.3324, allocations: 17.7 kB / 450.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.859e-05/0.3325, allocations: 47.67 kB / 450.3 MB, free: 30.38 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3325, allocations: 0 / 450.3 MB, free: 30.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.3444, allocations: 2.501 MB / 452.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/0.3445, allocations: 201.3 kB / 453 MB, free: 29.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.137, allocations: 3.938 kB / 453 MB, free: 29.91 MB / 350.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)