Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 98.27 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.008292/0.008292, allocations: 170.6 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2285/0.2285, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 12 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3139, allocations: 55.98 MB / 438.6 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003401/0.3173, allocations: 2.817 MB / 441.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3191, allocations: 0.8681 MB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003076/0.3195, allocations: 11.62 kB / 442.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.3197, allocations: 46.28 kB / 442.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003709/0.3201, allocations: 85.72 kB / 442.4 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.3206, allocations: 169.8 kB / 442.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.3211, allocations: 445.3 kB / 443 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004273/0.3216, allocations: 200.2 kB / 443.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.3217, allocations: 122.7 kB / 443.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.322, allocations: 144.2 kB / 443.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.892e-05/0.322, allocations: 16.19 kB / 443.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.287e-05/0.3221, allocations: 13.44 kB / 443.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.3222, allocations: 63.08 kB / 443.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3223, allocations: 188.6 kB / 443.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.3228, allocations: 423.6 kB / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3228, allocations: 0 / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3228, allocations: 0 / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3228, allocations: 2.656 kB / 444.1 MB, free: 35.57 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001046/0.3238, allocations: 0.6227 MB / 444.8 MB, free: 35.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3239, allocations: 17.91 kB / 444.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.324, allocations: 45.62 kB / 444.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.3245, allocations: 328.1 kB / 445.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.3245, allocations: 22.56 kB / 445.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.496e-05/0.3246, allocations: 38.5 kB / 445.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007932/0.3254, allocations: 381.9 kB / 445.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.3254, allocations: 0 / 445.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.3255, allocations: 17.88 kB / 445.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3255, allocations: 6.031 kB / 445.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007059/0.3262, allocations: 253.8 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.3285, allocations: 1.327 MB / 447.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008672/0.3294, allocations: 312.5 kB / 447.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.3297, allocations: 118.3 kB / 447.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.3297, allocations: 3.109 kB / 447.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.3298, allocations: 41.67 kB / 447.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.723e-06/0.3298, allocations: 0 / 447.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009556/0.3307, allocations: 335.1 kB / 448 MB, free: 33.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3308, allocations: 87.58 kB / 448.1 MB, free: 33.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.3311, allocations: 270.4 kB / 448.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3311, allocations: 32.83 kB / 448.4 MB, free: 32.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3313, allocations: 221.2 kB / 448.6 MB, free: 32.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.994e-05/0.3314, allocations: 95.73 kB / 448.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-05/0.3314, allocations: 29.81 kB / 448.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.65e-05/0.3315, allocations: 341.8 kB / 449 MB, free: 32.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.3318, allocations: 95.06 kB / 449.1 MB, free: 32.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.3321, allocations: 144 kB / 449.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005279/0.3326, allocations: 251.7 kB / 449.5 MB, free: 31.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3326, allocations: 6.781 kB / 449.5 MB, free: 31.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006937/0.3333, allocations: 308.7 kB / 449.8 MB, free: 31.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.3334, allocations: 142.2 kB / 449.9 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3334, allocations: 3.125 kB / 450 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3334, allocations: 3 kB / 450 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.3338, allocations: 69.09 kB / 450 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.3339, allocations: 6.766 kB / 450 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3341, allocations: 45.28 kB / 450.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3342, allocations: 8.844 kB / 450.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.134e-06/0.3342, allocations: 2.875 kB / 450.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004734/0.3347, allocations: 231.8 kB / 450.3 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.3347, allocations: 3.438 kB / 450.3 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-06/0.3347, allocations: 3.844 kB / 450.3 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003362/0.335, allocations: 64.34 kB / 450.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3351, allocations: 6.125 kB / 450.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.3353, allocations: 24.22 kB / 450.4 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.3353, allocations: 8.344 kB / 450.4 MB, free: 31.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0001864/0.3355, allocations: 236.8 kB / 450.7 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.3356, allocations: 34.59 kB / 450.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006858/0.3363, allocations: 280 kB / 451 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3363, allocations: 2.344 kB / 451 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3363, allocations: 6.531 kB / 451 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3363, allocations: 3.328 kB / 451 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005344/0.3369, allocations: 392.1 kB / 451.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3369, allocations: 0 / 451.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.3373, allocations: 63.66 kB / 451.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3373, allocations: 3.281 kB / 451.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3373, allocations: 10.97 kB / 451.4 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.3373, allocations: 0 / 451.4 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3374, allocations: 2.25 kB / 451.4 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009416/0.3383, allocations: 476.8 kB / 451.9 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.3384, allocations: 130 kB / 452 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3385, allocations: 14.2 kB / 452 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.3388, allocations: 17.69 kB / 452.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.114e-05/0.3389, allocations: 12.06 kB / 452.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.3389, allocations: 10.73 kB / 452.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.3391, allocations: 200.6 kB / 452.3 MB, free: 30.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3391, allocations: 0 / 452.3 MB, free: 30.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007681/0.3399, allocations: 146.8 kB / 452.4 MB, free: 30.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,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 (28): * Single equations (assignments): 28 * 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.0001184/0.34, allocations: 103 kB / 452.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.3409, allocations: 353.5 kB / 452.9 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3409, allocations: 6.625 kB / 452.9 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.3412, allocations: 111.7 kB / 453 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007593/0.3419, allocations: 63.73 kB / 453 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.3436, allocations: 0.983 MB / 454 MB, free: 29.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.3438, allocations: 0.7877 MB / 454.8 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002863/0.3441, allocations: 37.41 kB / 454.8 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.551e-05/0.3442, allocations: 26.75 kB / 454.9 MB, free: 28.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3442, allocations: 0 / 454.9 MB, free: 28.66 MB / 350.1 MB Notification: Performance of Templates: time 0.008994/0.3532, allocations: 2.94 MB / 457.8 MB, free: 28.45 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)