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.005706/0.005706, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001401/0.001401, allocations: 195.7 kB / 16.79 MB, free: 5.809 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.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2096/0.2096, allocations: 22.34 MB / 313 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001396, allocations: 60.09 kB / 380.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.255, allocations: 54.94 MB / 435.7 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003112/0.2581, allocations: 1.81 MB / 437.5 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2593, allocations: 0.7079 MB / 438.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2594, allocations: 3.938 kB / 438.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.2597, allocations: 62.72 kB / 438.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.2599, allocations: 80.28 kB / 438.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.2603, allocations: 134.3 kB / 438.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.2605, allocations: 250.4 kB / 438.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2606, allocations: 30.72 kB / 438.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2608, allocations: 109.4 kB / 438.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.261, allocations: 146.5 kB / 439 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.261, allocations: 5.438 kB / 439 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.2612, allocations: 82.17 kB / 439.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.998e-05/0.2613, allocations: 57.31 kB / 439.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.294e-05/0.2613, allocations: 87.02 kB / 439.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.2615, allocations: 163.5 kB / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2615, allocations: 0 / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2615, allocations: 0 / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2615, allocations: 4 kB / 439.4 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.001209/0.2628, allocations: 0.6298 MB / 440 MB, free: 36.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2628, allocations: 12.66 kB / 440 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.722e-05/0.2629, allocations: 24.5 kB / 440.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.2634, allocations: 305.7 kB / 440.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.2635, allocations: 9.875 kB / 440.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.2635, allocations: 9.688 kB / 440.4 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.2638, allocations: 152.5 kB / 440.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2638, allocations: 3.938 kB / 440.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.2638, allocations: 6.812 kB / 440.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2638, allocations: 0 / 440.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.2641, allocations: 142.7 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006817/0.2648, allocations: 0.4999 MB / 441.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.2652, allocations: 195.3 kB / 441.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.2653, allocations: 109.5 kB / 441.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.2654, allocations: 7.984 kB / 441.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.2656, allocations: 183.1 kB / 441.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.703e-06/0.2656, allocations: 0 / 441.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001172/0.2668, allocations: 0.5706 MB / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.2668, allocations: 86.61 kB / 442.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.2673, allocations: 313.7 kB / 442.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2673, allocations: 32.7 kB / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.454e-05/0.2674, allocations: 131.2 kB / 442.8 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/0.2674, allocations: 59.19 kB / 442.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.793e-05/0.2675, allocations: 35.5 kB / 442.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.2676, allocations: 338.3 kB / 443.2 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.2677, allocations: 85.92 kB / 443.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.2678, allocations: 85.25 kB / 443.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.269, allocations: 0.5853 MB / 444 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.269, allocations: 0 / 444 MB, free: 34.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005429/0.2696, allocations: 387.7 kB / 444.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.2696, allocations: 42.38 kB / 444.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2696, allocations: 0 / 444.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002087/0.2698, allocations: 55.75 kB / 444.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.2699, allocations: 17.09 kB / 444.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.271, allocations: 1.497 MB / 445.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.2713, allocations: 47.11 kB / 446 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.2713, allocations: 6.125 kB / 446 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.0001796/0.2715, allocations: 194.9 kB / 446.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.2715, allocations: 22.81 kB / 446.2 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/0.2716, allocations: 37.77 kB / 446.2 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2716, allocations: 2.906 kB / 446.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.2716, allocations: 3.938 kB / 446.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2716, allocations: 7.312 kB / 446.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.2718, allocations: 288.1 kB / 446.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2718, allocations: 0 / 446.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.2719, allocations: 18.81 kB / 446.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001537/0.2721, allocations: 56.03 kB / 446.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.2721, allocations: 9.688 kB / 446.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008879/0.273, allocations: 1.496 MB / 448.1 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.273, allocations: 2.938 kB / 448.1 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007222/0.2738, allocations: 0.5373 MB / 448.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.2738, allocations: 98.58 kB / 448.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.2739, allocations: 5.344 kB / 448.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2741, allocations: 36.41 kB / 448.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.2742, allocations: 13.88 kB / 448.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.2742, allocations: 5.719 kB / 448.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000413/0.2746, allocations: 243.2 kB / 449.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2746, allocations: 0 / 449.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.2749, allocations: 72.06 kB / 449.1 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.0001677/0.2751, allocations: 123.4 kB / 449.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005754/0.2757, allocations: 438.8 kB / 449.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2757, allocations: 0 / 449.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.276, allocations: 323.2 kB / 450 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.2763, allocations: 38.67 kB / 450 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.277, allocations: 0.573 MB / 450.6 MB, free: 29.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.2772, allocations: 0.7617 MB / 451.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.2773, allocations: 13.16 kB / 451.4 MB, free: 28.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2773, allocations: 2.969 kB / 451.4 MB, free: 28.88 MB / 350.1 MB Notification: Performance of Templates: time 0.00487/0.2821, allocations: 3.554 MB / 454.9 MB, free: 28.59 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)