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.001216/0.001216, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001197/0.001197, allocations: 195.5 kB / 16.25 MB, free: 6.621 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.203/1.203, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1787/0.1787, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 55.91 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2308, allocations: 54.95 MB / 435.3 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002411/0.2332, allocations: 2.329 MB / 437.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000536/0.2338, allocations: 0.502 MB / 438.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.289e-05/0.2339, allocations: 5.469 kB / 438.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.234, allocations: 17.95 kB / 438.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9e-05/0.2341, allocations: 49.86 kB / 438.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001167/0.2342, allocations: 47.3 kB / 438.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.2344, allocations: 212.2 kB / 438.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2346, allocations: 101.5 kB / 438.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.108e-05/0.2346, allocations: 74.02 kB / 438.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.138e-05/0.2347, allocations: 90.81 kB / 438.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.2347, allocations: 17.38 kB / 438.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.807e-05/0.2348, allocations: 18.78 kB / 438.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.2348, allocations: 40.11 kB / 438.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.293e-05/0.2349, allocations: 104.2 kB / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.235, allocations: 207.4 kB / 439.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.235, allocations: 0 / 439.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.235, allocations: 4 kB / 439.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.2351, allocations: 0 / 439.1 MB, free: 37.19 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.0004525/0.2355, allocations: 481.4 kB / 439.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.2356, allocations: 11.16 kB / 439.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.2356, allocations: 54.33 kB / 439.7 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.827e-05/0.2356, allocations: 19.59 kB / 439.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.2358, allocations: 217.7 kB / 439.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.2358, allocations: 17.06 kB / 439.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.2358, allocations: 21.22 kB / 439.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.2361, allocations: 175.2 kB / 440.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2361, allocations: 3.984 kB / 440.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.2362, allocations: 10.56 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2362, allocations: 4.938 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.2364, allocations: 124.2 kB / 440.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.2371, allocations: 0.6785 MB / 440.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.2373, allocations: 130.5 kB / 441.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2374, allocations: 67.38 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.2375, allocations: 3.281 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.36e-05/0.2375, allocations: 37.89 kB / 441.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.2375, allocations: 4 kB / 441.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003102/0.2378, allocations: 176.3 kB / 441.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.2378, allocations: 51.41 kB / 441.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.807e-05/0.2379, allocations: 129.4 kB / 441.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.2379, allocations: 29.7 kB / 441.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/0.2379, allocations: 130.3 kB / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.238, allocations: 59.8 kB / 441.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.238, allocations: 41.98 kB / 441.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.72e-05/0.2381, allocations: 322 kB / 442.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.689e-05/0.2381, allocations: 34.31 kB / 442.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.152e-05/0.2382, allocations: 76.02 kB / 442.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.2384, allocations: 118 kB / 442.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2384, allocations: 2.688 kB / 442.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002088/0.2386, allocations: 162.7 kB / 442.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.2386, allocations: 5.594 kB / 442.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2386, allocations: 2.688 kB / 442.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2387, allocations: 0 / 442.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.2388, allocations: 49.73 kB / 442.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.2388, allocations: 0 / 442.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.112e-05/0.2389, allocations: 23.77 kB / 442.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-06/0.2389, allocations: 10.66 kB / 442.6 MB, free: 34.61 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 6.205e-05/0.239, allocations: 129.2 kB / 442.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.239, allocations: 13.69 kB / 442.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.2391, allocations: 16.81 kB / 442.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2391, allocations: 4 kB / 442.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2391, allocations: 7.266 kB / 442.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2391, allocations: 0 / 442.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.2393, allocations: 265.8 kB / 443 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2393, allocations: 0 / 443 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2394, allocations: 34.53 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2395, allocations: 2.625 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.2395, allocations: 4 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2395, allocations: 0 / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2395, allocations: 2.812 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.2398, allocations: 283.9 kB / 443.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.2398, allocations: 95.91 kB / 443.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.2398, allocations: 10.91 kB / 443.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.24, allocations: 8.688 kB / 443.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.24, allocations: 12.45 kB / 443.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.24, allocations: 2.531 kB / 443.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.24, allocations: 101.6 kB / 443.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2401, allocations: 0 / 443.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.2403, allocations: 48.72 kB / 443.6 MB, free: 33.8 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.0004085/0.2407, allocations: 0.8136 MB / 444.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002107/0.2409, allocations: 125.2 kB / 444.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2409, allocations: 0 / 444.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.133e-05/0.241, allocations: 54.56 kB / 444.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.2413, allocations: 20.3 kB / 444.6 MB, free: 33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.2428, allocations: 1.97 MB / 446.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.2429, allocations: 0.7233 MB / 447.3 MB, free: 30.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.505e-05/0.243, allocations: 13.59 kB / 447.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.608e-05/0.243, allocations: 48 kB / 447.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.243, allocations: 0 / 447.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.2547, allocations: 2.668 MB / 450 MB, free: 30.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/0.2548, allocations: 208.4 kB / 450.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/1.924, allocations: 0 / 450.2 MB, free: 30.07 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)