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.001161/0.001161, allocations: 108 kB / 15.61 MB, free: 148 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.00111/0.00111, allocations: 195.3 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.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2141/0.2141, allocations: 22.36 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 63.91 kB / 380.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3129, allocations: 54.94 MB / 435.8 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002371/0.3153, allocations: 1.753 MB / 437.5 MB, free: 38.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008723/0.3161, allocations: 0.6824 MB / 438.2 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.3162, allocations: 3.938 kB / 438.2 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.3165, allocations: 78.09 kB / 438.3 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.3166, allocations: 85.36 kB / 438.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003354/0.317, allocations: 159.5 kB / 438.5 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.3172, allocations: 272 kB / 438.8 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.337e-05/0.3173, allocations: 30.47 kB / 438.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.3174, allocations: 116.1 kB / 438.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.3176, allocations: 149 kB / 439.1 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.3177, allocations: 15.44 kB / 439.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3178, allocations: 93.38 kB / 439.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.731e-05/0.3179, allocations: 60.48 kB / 439.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.199e-05/0.3179, allocations: 83.47 kB / 439.3 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.3181, allocations: 233.5 kB / 439.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3181, allocations: 0 / 439.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3182, allocations: 2.75 kB / 439.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.3182, allocations: 0 / 439.5 MB, free: 37.65 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.001037/0.3192, allocations: 0.6323 MB / 440.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.3192, allocations: 12.38 kB / 440.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.247e-05/0.3193, allocations: 23.81 kB / 440.2 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.3198, allocations: 306.9 kB / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3198, allocations: 10.22 kB / 440.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.849e-05/0.3199, allocations: 6.562 kB / 440.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3201, allocations: 155.5 kB / 440.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3201, allocations: 3.188 kB / 440.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.3201, allocations: 10.62 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.3201, allocations: 2.594 kB / 440.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.3203, allocations: 134.3 kB / 440.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006149/0.321, allocations: 0.5026 MB / 441.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.3213, allocations: 193.1 kB / 441.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.3215, allocations: 106.1 kB / 441.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.3215, allocations: 2.656 kB / 441.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.3217, allocations: 179.6 kB / 441.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.412e-06/0.3217, allocations: 0 / 441.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00104/0.3228, allocations: 0.5759 MB / 442.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.3228, allocations: 83.89 kB / 442.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/0.3233, allocations: 308.2 kB / 442.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.3233, allocations: 32.55 kB / 442.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.28e-05/0.3233, allocations: 139 kB / 442.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.601e-05/0.3234, allocations: 64.77 kB / 443 MB, free: 35.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.3234, allocations: 35.58 kB / 443 MB, free: 35.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.874e-05/0.3235, allocations: 335.3 kB / 443.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3236, allocations: 79.47 kB / 443.4 MB, free: 35.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.3237, allocations: 86.36 kB / 443.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3248, allocations: 0.5851 MB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3248, allocations: 3.938 kB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004853/0.3253, allocations: 391.4 kB / 444.5 MB, free: 34.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3253, allocations: 35.48 kB / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3254, allocations: 0 / 444.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.3255, allocations: 53.48 kB / 444.6 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.477e-05/0.3257, allocations: 28.16 kB / 444.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.3267, allocations: 1.601 MB / 446.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.3269, allocations: 40.58 kB / 446.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.327, allocations: 4.906 kB / 446.2 MB, free: 33.09 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.0001945/0.3272, allocations: 202.7 kB / 446.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.3272, allocations: 23.75 kB / 446.5 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.278e-05/0.3273, allocations: 37.14 kB / 446.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3273, allocations: 2.219 kB / 446.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3273, allocations: 0 / 446.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3273, allocations: 2.219 kB / 446.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.3275, allocations: 289.6 kB / 446.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3275, allocations: 0 / 446.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.3276, allocations: 13.47 kB / 446.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001503/0.3278, allocations: 56.95 kB / 446.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3278, allocations: 12.16 kB / 446.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009267/0.3287, allocations: 1.607 MB / 448.5 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3288, allocations: 0 / 448.5 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.3295, allocations: 0.5394 MB / 449 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.3296, allocations: 104.1 kB / 449.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.3296, allocations: 12.77 kB / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3298, allocations: 31.86 kB / 449.2 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.3299, allocations: 9.219 kB / 449.2 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.3299, allocations: 10.3 kB / 449.2 MB, free: 30.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003943/0.3303, allocations: 244.9 kB / 449.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3303, allocations: 0 / 449.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.3306, allocations: 61 kB / 449.5 MB, free: 30.63 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.0001645/0.3308, allocations: 132.7 kB / 449.6 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005586/0.3314, allocations: 445.5 kB / 450 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3314, allocations: 0 / 450 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.3317, allocations: 319.5 kB / 450.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.332, allocations: 32.88 kB / 450.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007189/0.3327, allocations: 497.2 kB / 450.9 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.3329, allocations: 0.7705 MB / 451.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.733e-05/0.333, allocations: 28.12 kB / 451.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.333, allocations: 15.62 kB / 451.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3331, allocations: 0 / 451.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of Templates: time 0.006164/0.3392, allocations: 2.821 MB / 454.5 MB, free: 28.81 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)