Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001286/0.001286, allocations: 191 kB / 16.25 MB, free: 6.637 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.344/1.344, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2104/0.2104, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.91 kB / 380.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2887, allocations: 54.95 MB / 435.2 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002713/0.2915, allocations: 1.791 MB / 437 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.2925, allocations: 0.6879 MB / 437.7 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.742e-05/0.2926, allocations: 2.844 kB / 437.7 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.2929, allocations: 72.69 kB / 437.8 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.2931, allocations: 78.91 kB / 437.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.2935, allocations: 135.6 kB / 438 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.2938, allocations: 267.6 kB / 438.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.2939, allocations: 34.56 kB / 438.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.294, allocations: 120.8 kB / 438.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.2942, allocations: 152.6 kB / 438.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.2943, allocations: 14.19 kB / 438.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.2944, allocations: 89.55 kB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.364e-05/0.2945, allocations: 69.12 kB / 438.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.225e-05/0.2946, allocations: 89.11 kB / 438.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.2948, allocations: 235.1 kB / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2948, allocations: 0 / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2948, allocations: 0 / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2948, allocations: 0 / 439.1 MB, free: 37.48 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001209/0.296, allocations: 0.6246 MB / 439.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2961, allocations: 9.469 kB / 439.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.2962, allocations: 26.14 kB / 439.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.2967, allocations: 317.5 kB / 440 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.2968, allocations: 9.531 kB / 440 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.2968, allocations: 6.594 kB / 440 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.2971, allocations: 150.3 kB / 440.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2971, allocations: 0 / 440.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.2971, allocations: 4 kB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2971, allocations: 2.625 kB / 440.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.2974, allocations: 132.2 kB / 440.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.2981, allocations: 0.5099 MB / 440.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000406/0.2986, allocations: 203.3 kB / 441 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.2987, allocations: 107.7 kB / 441.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.2987, allocations: 0 / 441.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.299, allocations: 183.1 kB / 441.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.299, allocations: 0 / 441.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001168/0.3002, allocations: 0.5778 MB / 441.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.3002, allocations: 79.95 kB / 442 MB, free: 35.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.3007, allocations: 314.6 kB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.3007, allocations: 32.14 kB / 442.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.3008, allocations: 134.5 kB / 442.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.3009, allocations: 56.16 kB / 442.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.943e-05/0.3009, allocations: 38.94 kB / 442.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.301, allocations: 347.5 kB / 442.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.3011, allocations: 79.77 kB / 442.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.3013, allocations: 85.53 kB / 443 MB, free: 34.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.3025, allocations: 0.583 MB / 443.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3025, allocations: 0 / 443.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005685/0.3031, allocations: 392.5 kB / 444 MB, free: 34.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.3031, allocations: 41.67 kB / 444 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3031, allocations: 0 / 444 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/0.3033, allocations: 56.16 kB / 444.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.98e-05/0.3034, allocations: 21.8 kB / 444.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.3045, allocations: 1.599 MB / 445.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.3048, allocations: 41.75 kB / 445.8 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3048, allocations: 10.09 kB / 445.8 MB, free: 32.92 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001755/0.305, allocations: 189.8 kB / 445.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/0.305, allocations: 23.44 kB / 446 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.3051, allocations: 42.19 kB / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3051, allocations: 3.938 kB / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3051, allocations: 0 / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3051, allocations: 2.781 kB / 446 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.3053, allocations: 284.9 kB / 446.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3053, allocations: 3.328 kB / 446.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.3054, allocations: 17.47 kB / 446.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001478/0.3056, allocations: 51.66 kB / 446.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.3056, allocations: 17.92 kB / 446.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009605/0.3066, allocations: 1.6 MB / 448 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.3066, allocations: 3.094 kB / 448 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007496/0.3073, allocations: 0.5338 MB / 448.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.3074, allocations: 103.7 kB / 448.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.3075, allocations: 13.09 kB / 448.6 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.3077, allocations: 34.03 kB / 448.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.3078, allocations: 11.19 kB / 448.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.3078, allocations: 10.5 kB / 448.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004082/0.3082, allocations: 242.2 kB / 448.9 MB, free: 30.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3082, allocations: 0 / 448.9 MB, free: 30.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.3085, allocations: 65.91 kB / 449 MB, free: 30.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000168/0.3087, allocations: 121.3 kB / 449.1 MB, free: 30.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005979/0.3093, allocations: 443.6 kB / 449.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3093, allocations: 0 / 449.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.3096, allocations: 329.6 kB / 449.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.3099, allocations: 27.48 kB / 449.9 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.3106, allocations: 0.54 MB / 450.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.3108, allocations: 0.7636 MB / 451.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.954e-05/0.3109, allocations: 26.78 kB / 451.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.3109, allocations: 18.22 kB / 451.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.311, allocations: 7.938 kB / 451.2 MB, free: 28.81 MB / 350.1 MB Notification: Performance of Templates: time 0.005433/0.3164, allocations: 2.788 MB / 454 MB, free: 28.6 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)