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: translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009508/0.0009508, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 180.5 kB / 16.92 MB, free: 6.684 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.314/1.314, allocations: 223.3 MB / 241 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.2026/0.2026, allocations: 22.35 MB / 314.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003231, allocations: 8 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2592, allocations: 55.98 MB / 439.2 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.001928/0.2612, allocations: 1.976 MB / 441.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007686/0.262, allocations: 0.4957 MB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2621, allocations: 2.938 kB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.2623, allocations: 24.92 kB / 441.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.2624, allocations: 53.33 kB / 441.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.2626, allocations: 40.34 kB / 441.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000224/0.2628, allocations: 202.8 kB / 442 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.263, allocations: 83.84 kB / 442.1 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2631, allocations: 67.34 kB / 442.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.2632, allocations: 74.91 kB / 442.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.2633, allocations: 9 kB / 442.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.476e-05/0.2633, allocations: 8.562 kB / 442.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.809e-05/0.2634, allocations: 36.2 kB / 442.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.2635, allocations: 110.7 kB / 442.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.2636, allocations: 153.1 kB / 442.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2636, allocations: 0 / 442.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2636, allocations: 0 / 442.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2637, allocations: 0 / 442.6 MB, free: 37.05 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.0005178/0.2642, allocations: 448.4 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2642, allocations: 12.28 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.2643, allocations: 23.88 kB / 443 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.2645, allocations: 214.9 kB / 443.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.2645, allocations: 17 kB / 443.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.2646, allocations: 15.84 kB / 443.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.2649, allocations: 181.8 kB / 443.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2649, allocations: 0 / 443.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.265, allocations: 10.94 kB / 443.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.265, allocations: 5.531 kB / 443.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.2652, allocations: 119 kB / 443.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009004/0.2661, allocations: 0.683 MB / 444.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002784/0.2664, allocations: 137.1 kB / 444.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.2666, allocations: 71.16 kB / 444.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.2666, allocations: 2.562 kB / 444.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.2666, allocations: 38.5 kB / 444.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.2666, allocations: 0 / 444.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003878/0.267, allocations: 165.1 kB / 444.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.2671, allocations: 59.34 kB / 444.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.857e-05/0.2672, allocations: 128.1 kB / 444.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.2672, allocations: 33.64 kB / 444.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.2672, allocations: 131.5 kB / 445 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.2673, allocations: 58.83 kB / 445.1 MB, free: 35.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.2673, allocations: 23.27 kB / 445.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/0.2673, allocations: 320.8 kB / 445.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.2674, allocations: 38.72 kB / 445.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.395e-05/0.2675, allocations: 77.44 kB / 445.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.2677, allocations: 123 kB / 445.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2677, allocations: 0 / 445.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002414/0.268, allocations: 167 kB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.268, allocations: 5.688 kB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.268, allocations: 3.328 kB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.268, allocations: 2.844 kB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.2682, allocations: 41.5 kB / 445.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2682, allocations: 0 / 445.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.215e-05/0.2683, allocations: 26.88 kB / 445.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.2683, allocations: 9.188 kB / 445.9 MB, free: 34.54 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 7.663e-05/0.2684, allocations: 131.9 kB / 446 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-05/0.2684, allocations: 15.47 kB / 446 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.652e-05/0.2685, allocations: 20.08 kB / 446.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2685, allocations: 3.375 kB / 446.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.2685, allocations: 0 / 446.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2685, allocations: 0 / 446.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.2687, allocations: 255.5 kB / 446.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2687, allocations: 4 kB / 446.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2689, allocations: 44.31 kB / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2689, allocations: 0 / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2689, allocations: 0 / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2689, allocations: 0 / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.269, allocations: 0 / 446.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000327/0.2693, allocations: 288 kB / 446.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/0.2693, allocations: 94.64 kB / 446.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.2693, allocations: 4.062 kB / 446.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.2695, allocations: 13.02 kB / 446.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.2695, allocations: 9.391 kB / 446.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.2695, allocations: 2.688 kB / 446.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.712e-05/0.2696, allocations: 100.2 kB / 446.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2696, allocations: 3.938 kB / 446.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.2698, allocations: 45.97 kB / 446.9 MB, free: 33.74 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 7.594e-05/0.2699, allocations: 103.5 kB / 447 MB, free: 33.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.2702, allocations: 115.4 kB / 447.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2702, allocations: 2.75 kB / 447.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.2703, allocations: 57.3 kB / 447.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.2706, allocations: 18.58 kB / 447.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007797/0.2714, allocations: 0.6157 MB / 447.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.2715, allocations: 0.7257 MB / 448.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.328e-05/0.2716, allocations: 16.59 kB / 448.5 MB, free: 32.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2716, allocations: 0 / 448.5 MB, free: 32.43 MB / 350.1 MB Notification: Performance of Templates: time 0.003087/0.2747, allocations: 1.73 MB / 450.3 MB, free: 32.29 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.makefile (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)