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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.08385/0.08385, allocations: 17.69 MB / 33.63 MB, free: 1.621 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 181.2 kB / 38.92 MB, free: 8.246 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.799/1.799, allocations: 205.4 MB / 249.5 MB, free: 2.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008492/0.000849, allocations: 89 kB / 302.2 MB, free: 4.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004585, allocations: 12 kB / 366.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2542, allocations: 51.99 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002773/0.257, allocations: 2.692 MB / 421.6 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.2582, allocations: 0.8933 MB / 422.5 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.2585, allocations: 11.94 kB / 422.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.2587, allocations: 51.56 kB / 422.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.2589, allocations: 91.25 kB / 422.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.2593, allocations: 135.2 kB / 422.8 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003432/0.2596, allocations: 438.9 kB / 423.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.2599, allocations: 189.7 kB / 423.4 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.2601, allocations: 123.4 kB / 423.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.2602, allocations: 143.2 kB / 423.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.2603, allocations: 16 kB / 423.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.657e-05/0.2603, allocations: 12 kB / 423.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.112e-05/0.2604, allocations: 55.77 kB / 423.7 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2605, allocations: 188.7 kB / 423.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000354/0.2609, allocations: 414.4 kB / 424.3 MB, free: 18.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2609, allocations: 0 / 424.3 MB, free: 18.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2609, allocations: 0 / 424.3 MB, free: 18.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.2609, allocations: 0 / 424.3 MB, free: 18.94 MB / 298.7 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.0007997/0.2617, allocations: 0.6277 MB / 425 MB, free: 18.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2618, allocations: 8.031 kB / 425 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.978e-05/0.2618, allocations: 48.41 kB / 425 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.2622, allocations: 327.2 kB / 425.3 MB, free: 17.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.2622, allocations: 29.38 kB / 425.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.2623, allocations: 32.38 kB / 425.4 MB, free: 17.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.2628, allocations: 376.2 kB / 425.8 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2628, allocations: 4 kB / 425.8 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.2628, allocations: 15.98 kB / 425.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2629, allocations: 8 kB / 425.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.2633, allocations: 263.8 kB / 426.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.2649, allocations: 1.319 MB / 427.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.2655, allocations: 299.8 kB / 427.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.2657, allocations: 125.3 kB / 427.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.2658, allocations: 4.234 kB / 427.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.2658, allocations: 38.8 kB / 427.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.2658, allocations: 0 / 427.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006263/0.2664, allocations: 336.2 kB / 428.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.2665, allocations: 85.11 kB / 428.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.2667, allocations: 275.2 kB / 428.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.2667, allocations: 29.7 kB / 428.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.2668, allocations: 212.1 kB / 428.7 MB, free: 14.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.2669, allocations: 98.64 kB / 428.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.2669, allocations: 8 kB / 428.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.2669, allocations: 342.8 kB / 429.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.2671, allocations: 79.97 kB / 429.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.2673, allocations: 150.8 kB / 429.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.2676, allocations: 245.9 kB / 429.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2676, allocations: 4 kB / 429.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004226/0.2681, allocations: 305.6 kB / 429.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/0.2681, allocations: 142.3 kB / 430.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2682, allocations: 4 kB / 430.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2682, allocations: 4 kB / 430.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.2684, allocations: 63.91 kB / 430.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2685, allocations: 7.938 kB / 430.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.2686, allocations: 39.73 kB / 430.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2687, allocations: 12 kB / 430.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.031e-06/0.2687, allocations: 4 kB / 430.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003148/0.269, allocations: 223.8 kB / 430.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-06/0.269, allocations: 0 / 430.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.286e-06/0.269, allocations: 4 kB / 430.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.2692, allocations: 72.09 kB / 430.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.2693, allocations: 7.938 kB / 430.5 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.2694, allocations: 31.69 kB / 430.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.2694, allocations: 15.92 kB / 430.6 MB, free: 12.36 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.2696, allocations: 229 kB / 430.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.2696, allocations: 35.56 kB / 430.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/0.2701, allocations: 285.5 kB / 431.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2701, allocations: 4 kB / 431.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2701, allocations: 0 / 431.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2701, allocations: 0 / 431.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003544/0.2705, allocations: 401.2 kB / 431.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2705, allocations: 0 / 431.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.2708, allocations: 67.84 kB / 431.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.2708, allocations: 4 kB / 431.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.2708, allocations: 4 kB / 431.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2708, allocations: 0 / 431.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2708, allocations: 0 / 431.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005868/0.2714, allocations: 479 kB / 432 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/0.2715, allocations: 132.6 kB / 432.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/0.2715, allocations: 7.938 kB / 432.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.2717, allocations: 19.98 kB / 432.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.2718, allocations: 15.98 kB / 432.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.2718, allocations: 8 kB / 432.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001328/0.2719, allocations: 190 kB / 432.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2719, allocations: 0 / 432.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000404/0.2723, allocations: 151.4 kB / 432.6 MB, free: 10.27 MB / 298.7 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 (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 9.248e-05/0.2724, allocations: 103.2 kB / 432.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000551/0.273, allocations: 356.6 kB / 433 MB, free: 9.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.273, allocations: 0 / 433 MB, free: 9.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.2732, allocations: 112.6 kB / 433.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.2737, allocations: 72.53 kB / 433.2 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.2749, allocations: 0.9369 MB / 434.1 MB, free: 8.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.2751, allocations: 0.7956 MB / 434.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.2753, allocations: 38.95 kB / 435 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.2754, allocations: 27.44 kB / 435 MB, free: 7.777 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2754, allocations: 4 kB / 435 MB, free: 7.773 MB / 298.7 MB Notification: Performance of Templates: time 0.00586/0.2813, allocations: 2.897 MB / 437.9 MB, free: 4.887 MB / 298.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)