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.001115/0.001115, allocations: 108 kB / 15.61 MB, free: 152 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.00152/0.00152, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2175/0.2175, allocations: 22.36 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 380.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3184, allocations: 54.95 MB / 435.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003746/0.3222, allocations: 3.164 MB / 438.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3235, allocations: 0.8976 MB / 439.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.3237, allocations: 14.94 kB / 439.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.324, allocations: 65.78 kB / 439.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.3242, allocations: 102.7 kB / 440 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.3245, allocations: 195.3 kB / 440.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.3249, allocations: 468.2 kB / 440.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002861/0.3252, allocations: 209.6 kB / 440.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.3253, allocations: 167.7 kB / 441 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.3255, allocations: 182.3 kB / 441.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.3255, allocations: 37.84 kB / 441.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.485e-05/0.3256, allocations: 42.56 kB / 441.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.844e-05/0.3257, allocations: 92.84 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.3258, allocations: 204 kB / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003388/0.3261, allocations: 446.5 kB / 442 MB, free: 35.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3262, allocations: 0 / 442 MB, free: 35.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3262, allocations: 0 / 442 MB, free: 35.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3262, allocations: 0 / 442 MB, free: 35.66 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.0008578/0.327, allocations: 0.6957 MB / 442.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3271, allocations: 8.719 kB / 442.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.801e-05/0.3272, allocations: 47.34 kB / 442.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.3275, allocations: 323.6 kB / 443.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3275, allocations: 24.47 kB / 443.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.629e-05/0.3276, allocations: 40.47 kB / 443.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005478/0.3281, allocations: 375.4 kB / 443.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.3282, allocations: 3.469 kB / 443.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.3282, allocations: 14.94 kB / 443.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3282, allocations: 9.094 kB / 443.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/0.3287, allocations: 245.8 kB / 443.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.3303, allocations: 1.315 MB / 445.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000596/0.3309, allocations: 289.3 kB / 445.4 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.3312, allocations: 123.8 kB / 445.5 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.3312, allocations: 3.141 kB / 445.5 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.3312, allocations: 37.7 kB / 445.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.3312, allocations: 0 / 445.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00063/0.3319, allocations: 323.7 kB / 445.9 MB, free: 33.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.3319, allocations: 80.14 kB / 445.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/0.3321, allocations: 270.6 kB / 446.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3321, allocations: 33.64 kB / 446.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.3323, allocations: 218.1 kB / 446.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.234e-05/0.3323, allocations: 88.5 kB / 446.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/0.3324, allocations: 60.91 kB / 446.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.733e-05/0.3325, allocations: 340.8 kB / 446.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3327, allocations: 89.98 kB / 447 MB, free: 32.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.3329, allocations: 149 kB / 447.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.3332, allocations: 248.9 kB / 447.4 MB, free: 32.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3333, allocations: 0 / 447.4 MB, free: 32.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004595/0.3337, allocations: 305.6 kB / 447.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3337, allocations: 7.344 kB / 447.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3338, allocations: 3.938 kB / 447.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3338, allocations: 5.281 kB / 447.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.3341, allocations: 74.34 kB / 447.8 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3341, allocations: 2.031 kB / 447.8 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.3342, allocations: 30.06 kB / 447.8 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.3343, allocations: 8.438 kB / 447.8 MB, free: 31.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001969/0.3345, allocations: 195.9 kB / 448 MB, free: 31.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001501/0.3346, allocations: 138.5 kB / 448.1 MB, free: 31.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002713/0.3349, allocations: 214.3 kB / 448.4 MB, free: 31.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.3349, allocations: 2.562 kB / 448.4 MB, free: 31.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003871/0.3353, allocations: 274.2 kB / 448.6 MB, free: 31.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3353, allocations: 15.53 kB / 448.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.3353, allocations: 3.938 kB / 448.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.772e-06/0.3353, allocations: 6.5 kB / 448.7 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.3356, allocations: 64.86 kB / 448.7 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.3356, allocations: 2.625 kB / 448.7 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.3358, allocations: 23.62 kB / 448.7 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.3358, allocations: 10.44 kB / 448.8 MB, free: 31.31 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.0001583/0.3359, allocations: 205.4 kB / 449 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.78e-05/0.336, allocations: 26.28 kB / 449 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005556/0.3366, allocations: 277.3 kB / 449.2 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3366, allocations: 2.625 kB / 449.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3366, allocations: 0 / 449.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3366, allocations: 0 / 449.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004383/0.337, allocations: 404.9 kB / 449.6 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3371, allocations: 3.938 kB / 449.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002674/0.3373, allocations: 59.91 kB / 449.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3373, allocations: 2.625 kB / 449.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3374, allocations: 10.62 kB / 449.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3374, allocations: 0 / 449.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3374, allocations: 0 / 449.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.3381, allocations: 468.5 kB / 450.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.3382, allocations: 124.2 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.3382, allocations: 8 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.3384, allocations: 16.78 kB / 450.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.3385, allocations: 15.34 kB / 450.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3385, allocations: 5.25 kB / 450.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.3387, allocations: 193.1 kB / 450.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3387, allocations: 3.938 kB / 450.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004921/0.3392, allocations: 149.1 kB / 450.7 MB, free: 30.1 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.0001415/0.3394, allocations: 111 kB / 450.8 MB, free: 30 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007188/0.3401, allocations: 361.5 kB / 451.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3401, allocations: 3.938 kB / 451.1 MB, free: 29.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.3403, allocations: 122.5 kB / 451.3 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006261/0.3409, allocations: 69.61 kB / 451.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.3423, allocations: 0.7642 MB / 452.1 MB, free: 29.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3425, allocations: 0.792 MB / 452.9 MB, free: 28.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.3427, allocations: 44.38 kB / 452.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.3428, allocations: 23.12 kB / 453 MB, free: 28.6 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3428, allocations: 0 / 453 MB, free: 28.6 MB / 350.1 MB Notification: Performance of Templates: time 0.009046/0.3518, allocations: 3.121 MB / 456.1 MB, free: 28.38 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)