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.001085/0.001085, allocations: 106 kB / 15.99 MB, free: 6.352 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.001153/0.001153, allocations: 193.2 kB / 16.91 MB, free: 6.195 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.215/1.215, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08542/0.08542, allocations: 22.32 MB / 313.1 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 64.98 kB / 380.9 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07408/0.07534, allocations: 54.95 MB / 435.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002796/0.07817, allocations: 1.803 MB / 437.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.07929, allocations: 0.6857 MB / 438.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.923e-05/0.0794, allocations: 7.938 kB / 438.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002882/0.07971, allocations: 59.78 kB / 438.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.0799, allocations: 83.77 kB / 438.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.08038, allocations: 139.8 kB / 438.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.0807, allocations: 267.4 kB / 438.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.08081, allocations: 33.81 kB / 438.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.08099, allocations: 115.6 kB / 439 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.08125, allocations: 155.6 kB / 439.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.295e-05/0.0813, allocations: 12 kB / 439.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.08144, allocations: 91.86 kB / 439.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.98e-05/0.08154, allocations: 67.8 kB / 439.4 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.909e-05/0.08164, allocations: 87.41 kB / 439.5 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.08185, allocations: 171.7 kB / 439.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.08186, allocations: 0 / 439.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.08187, allocations: 0 / 439.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.08188, allocations: 0 / 439.6 MB, free: 9.598 MB / 318.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.001267/0.08315, allocations: 0.6233 MB / 440.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.08319, allocations: 8.031 kB / 440.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.519e-05/0.08326, allocations: 24.66 kB / 440.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.08383, allocations: 314.7 kB / 440.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.08386, allocations: 8.375 kB / 440.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.08389, allocations: 4.375 kB / 440.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.08416, allocations: 154.5 kB / 440.7 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.08418, allocations: 3.938 kB / 440.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.08421, allocations: 8 kB / 440.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.08421, allocations: 0 / 440.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.08448, allocations: 131.9 kB / 440.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007551/0.08524, allocations: 0.5042 MB / 441.4 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.08566, allocations: 198.4 kB / 441.6 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.08583, allocations: 106.8 kB / 441.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.08586, allocations: 4 kB / 441.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.08611, allocations: 185 kB / 441.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.08612, allocations: 0 / 441.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001208/0.08733, allocations: 0.5731 MB / 442.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.227e-05/0.08744, allocations: 85.11 kB / 442.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.08796, allocations: 316.9 kB / 442.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.08799, allocations: 29.7 kB / 442.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.757e-05/0.08808, allocations: 132 kB / 443 MB, free: 5.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.08814, allocations: 63.09 kB / 443.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.559e-05/0.08821, allocations: 41.64 kB / 443.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.08834, allocations: 338.8 kB / 443.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.08849, allocations: 87.95 kB / 443.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.08863, allocations: 90.33 kB / 443.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.08989, allocations: 0.5795 MB / 444.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.08991, allocations: 0 / 444.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000583/0.09049, allocations: 391.7 kB / 444.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.09054, allocations: 37.69 kB / 444.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.09055, allocations: 4 kB / 444.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.09076, allocations: 52.8 kB / 444.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.09087, allocations: 19.98 kB / 444.7 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.09225, allocations: 1.598 MB / 446.3 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.09251, allocations: 43.89 kB / 446.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.09254, allocations: 8 kB / 446.3 MB, free: 2.438 MB / 318.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.0002089/0.09275, allocations: 187.4 kB / 446.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.0928, allocations: 23.72 kB / 446.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.09286, allocations: 38.11 kB / 446.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.09287, allocations: 4.141 kB / 446.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.09288, allocations: 0 / 446.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.09289, allocations: 3.984 kB / 446.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.09317, allocations: 305.3 kB / 446.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.09318, allocations: 0 / 446.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.09331, allocations: 12 kB / 446.9 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001623/0.09348, allocations: 56.8 kB / 446.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.09351, allocations: 7.938 kB / 447 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.09476, allocations: 1.599 MB / 448.5 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.09478, allocations: 0 / 448.5 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.0956, allocations: 0.5331 MB / 449.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/0.09568, allocations: 104.8 kB / 449.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.09572, allocations: 7.938 kB / 449.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.09596, allocations: 36.06 kB / 449.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.09602, allocations: 11.98 kB / 449.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.09605, allocations: 11.98 kB / 449.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004319/0.09649, allocations: 236.4 kB / 449.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.0965, allocations: 0 / 449.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.0968, allocations: 72 kB / 449.6 MB, free: 14.96 MB / 334.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.0001993/0.09701, allocations: 139.1 kB / 449.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007026/0.09772, allocations: 430 kB / 450.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.09774, allocations: 0 / 450.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.09813, allocations: 329.9 kB / 450.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.09841, allocations: 28.66 kB / 450.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007919/0.09922, allocations: 0.5791 MB / 451 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.09952, allocations: 0.7634 MB / 451.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.068e-05/0.09956, allocations: 15.44 kB / 451.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09957, allocations: 0 / 451.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Templates: time 0.005501/0.1051, allocations: 3.571 MB / 455.4 MB, free: 9.004 MB / 334.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)