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.0009228/0.0009228, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001078/0.001079, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2372/0.2372, allocations: 22.37 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000327/0.0003272, allocations: 11.98 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2847, allocations: 55.97 MB / 438 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.001712/0.2865, allocations: 1.908 MB / 439.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005603/0.2871, allocations: 493.7 kB / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-05/0.2872, allocations: 6.781 kB / 440.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.133e-05/0.2873, allocations: 20.2 kB / 440.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.516e-05/0.2874, allocations: 48.98 kB / 440.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001311/0.2875, allocations: 32.62 kB / 440.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.2877, allocations: 199.3 kB / 440.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2879, allocations: 72.92 kB / 440.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.02e-05/0.2879, allocations: 67.38 kB / 440.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2881, allocations: 71.28 kB / 440.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.2881, allocations: 11.56 kB / 440.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.679e-05/0.2881, allocations: 14.44 kB / 440.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.2881, allocations: 36.81 kB / 441 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.2882, allocations: 55.89 kB / 441 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.2883, allocations: 154.2 kB / 441.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2883, allocations: 0 / 441.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.2883, allocations: 0 / 441.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.2884, allocations: 0 / 441.2 MB, free: 37.24 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.000494/0.2889, allocations: 449 kB / 441.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2889, allocations: 11.89 kB / 441.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.289, allocations: 53.55 kB / 441.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.289, allocations: 19.78 kB / 441.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.2892, allocations: 206.7 kB / 441.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.2892, allocations: 16.69 kB / 441.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.2893, allocations: 27.28 kB / 442 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.2896, allocations: 173 kB / 442.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.2896, allocations: 4 kB / 442.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.2896, allocations: 10.91 kB / 442.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.2896, allocations: 2.875 kB / 442.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.2899, allocations: 119.7 kB / 442.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008377/0.2907, allocations: 0.6799 MB / 442.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.291, allocations: 137.4 kB / 443.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.2911, allocations: 71.69 kB / 443.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.2912, allocations: 288 / 443.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.604e-05/0.2912, allocations: 33.34 kB / 443.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.001e-06/0.2912, allocations: 0 / 443.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003574/0.2915, allocations: 171.2 kB / 443.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.2916, allocations: 58.25 kB / 443.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/0.2917, allocations: 125.3 kB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.2917, allocations: 25.7 kB / 443.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.2917, allocations: 142.4 kB / 443.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.2918, allocations: 55.12 kB / 443.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/0.2918, allocations: 4 kB / 443.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.047e-05/0.2918, allocations: 325 kB / 444.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.083e-05/0.2919, allocations: 40.73 kB / 444.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/0.292, allocations: 72.75 kB / 444.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.742e-05/0.2921, allocations: 51.5 kB / 444.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2921, allocations: 0 / 444.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002173/0.2923, allocations: 162.9 kB / 444.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2924, allocations: 7.344 kB / 444.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2924, allocations: 6.844 kB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2924, allocations: 2.969 kB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.2926, allocations: 42.83 kB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2926, allocations: 2.625 kB / 444.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.911e-05/0.2926, allocations: 17.12 kB / 444.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.2927, allocations: 9.969 kB / 444.5 MB, free: 34.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.256e-05/0.2927, allocations: 131.7 kB / 444.6 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.2928, allocations: 14 kB / 444.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.221e-05/0.2928, allocations: 20.78 kB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2928, allocations: 2.875 kB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2928, allocations: 0 / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2929, allocations: 3.469 kB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.2931, allocations: 257.5 kB / 444.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2931, allocations: 0 / 444.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.2932, allocations: 39.3 kB / 444.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2933, allocations: 0 / 444.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.2933, allocations: 7.531 kB / 444.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2933, allocations: 4 kB / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2933, allocations: 0 / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.2936, allocations: 282 kB / 445.2 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.2937, allocations: 91.55 kB / 445.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.2937, allocations: 6.656 kB / 445.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.2938, allocations: 12.75 kB / 445.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.2939, allocations: 9.016 kB / 445.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.2939, allocations: 10.91 kB / 445.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.044e-05/0.2939, allocations: 96.22 kB / 445.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.2939, allocations: 0 / 445.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.2942, allocations: 49.94 kB / 445.5 MB, free: 33.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004851/0.2947, allocations: 0.8183 MB / 446.3 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.2949, allocations: 109.4 kB / 446.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2949, allocations: 0 / 446.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.623e-05/0.295, allocations: 51.91 kB / 446.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.2953, allocations: 26.34 kB / 446.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.2965, allocations: 1.046 MB / 447.5 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.2967, allocations: 0.7198 MB / 448.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.777e-05/0.2967, allocations: 17.77 kB / 448.3 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.172e-05/0.2968, allocations: 43.14 kB / 448.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2968, allocations: 0 / 448.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01135/0.3082, allocations: 2.461 MB / 450.8 MB, free: 31.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001161/0.3083, allocations: 185.3 kB / 450.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/2.064, allocations: 5.547 kB / 451 MB, free: 31.27 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/linux/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) Environment - environmentSimulation: