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.0008882/0.0008882, allocations: 98.56 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.0009806/0.0009806, allocations: 188.2 kB / 16.92 MB, free: 6.75 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.262/1.262, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1957/0.1957, allocations: 22.35 MB / 314.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002913, allocations: 8 kB / 383.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2226, allocations: 55.98 MB / 439.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.00125/0.2239, allocations: 1.45 MB / 440.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008477/0.2248, allocations: 0.6983 MB / 441.4 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.44e-05/0.2249, allocations: 3.156 kB / 441.4 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.2251, allocations: 65.77 kB / 441.5 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.2253, allocations: 78.92 kB / 441.5 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.2256, allocations: 132.5 kB / 441.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.2258, allocations: 244.8 kB / 441.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.648e-05/0.2259, allocations: 39.3 kB / 441.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.226, allocations: 96.5 kB / 442 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.2262, allocations: 147.3 kB / 442.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.2262, allocations: 5.125 kB / 442.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.963e-05/0.2263, allocations: 76.08 kB / 442.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.11e-05/0.2264, allocations: 61.94 kB / 442.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.853e-05/0.2264, allocations: 102.2 kB / 442.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.2266, allocations: 166 kB / 442.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2266, allocations: 0 / 442.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2266, allocations: 4 kB / 442.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.2266, allocations: 0 / 442.6 MB, free: 37.38 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.001008/0.2276, allocations: 0.5986 MB / 443.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.2277, allocations: 12.69 kB / 443.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.2277, allocations: 24.5 kB / 443.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.2282, allocations: 315.8 kB / 443.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.2282, allocations: 3.375 kB / 443.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.2283, allocations: 10.16 kB / 443.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.2285, allocations: 157.6 kB / 443.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2285, allocations: 0 / 443.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.2286, allocations: 6.812 kB / 443.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2286, allocations: 2.906 kB / 443.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.2288, allocations: 142 kB / 443.8 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.2294, allocations: 0.5008 MB / 444.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.2298, allocations: 199.2 kB / 444.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2299, allocations: 108 kB / 444.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.23, allocations: 3.031 kB / 444.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002002/0.2302, allocations: 176.8 kB / 444.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.934e-06/0.2302, allocations: 0 / 444.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001094/0.2313, allocations: 0.5792 MB / 445.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.2313, allocations: 80.77 kB / 445.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.2318, allocations: 320.4 kB / 445.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2318, allocations: 36.48 kB / 445.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.2319, allocations: 128.1 kB / 445.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.2319, allocations: 60.05 kB / 446 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.232, allocations: 26.7 kB / 446 MB, free: 35.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.409e-05/0.232, allocations: 334.4 kB / 446.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.2321, allocations: 89.48 kB / 446.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.2323, allocations: 85.3 kB / 446.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.2334, allocations: 0.5845 MB / 447.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2334, allocations: 0 / 447.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005274/0.234, allocations: 397.6 kB / 447.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.234, allocations: 35.72 kB / 447.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.234, allocations: 0 / 447.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001764/0.2342, allocations: 55.05 kB / 447.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.56e-05/0.2343, allocations: 19.84 kB / 447.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.2352, allocations: 1.495 MB / 449.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.2355, allocations: 45.77 kB / 449.2 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.2355, allocations: 3.562 kB / 449.2 MB, free: 32.94 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.0001476/0.2357, allocations: 207.9 kB / 449.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.2357, allocations: 26.16 kB / 449.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.497e-05/0.2358, allocations: 27.45 kB / 449.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2358, allocations: 2.812 kB / 449.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2358, allocations: 0 / 449.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2358, allocations: 7.938 kB / 449.4 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.236, allocations: 287.5 kB / 449.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.236, allocations: 0 / 449.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.2361, allocations: 15.22 kB / 449.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.2362, allocations: 64.84 kB / 449.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.2363, allocations: 2.781 kB / 449.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008309/0.2371, allocations: 1.509 MB / 451.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2371, allocations: 0 / 451.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007035/0.2378, allocations: 0.5369 MB / 451.8 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.2379, allocations: 108 kB / 451.9 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/0.2379, allocations: 5.719 kB / 451.9 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.2382, allocations: 36.03 kB / 452 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.2382, allocations: 7.875 kB / 452 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.2383, allocations: 13.81 kB / 452 MB, free: 30.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004188/0.2387, allocations: 240 kB / 452.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2387, allocations: 0 / 452.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.239, allocations: 75.36 kB / 452.3 MB, free: 30.57 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.0001313/0.2391, allocations: 121.2 kB / 452.4 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005142/0.2396, allocations: 442.3 kB / 452.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2396, allocations: 0 / 452.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.2399, allocations: 316.4 kB / 453.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.2402, allocations: 32.84 kB / 453.2 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006196/0.2408, allocations: 0.585 MB / 453.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.241, allocations: 0.757 MB / 454.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/0.241, allocations: 22.55 kB / 454.6 MB, free: 28.9 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.241, allocations: 0 / 454.6 MB, free: 28.9 MB / 350.1 MB Notification: Performance of Templates: time 0.004362/0.2454, allocations: 3.53 MB / 458.1 MB, free: 28.62 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)