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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008362/0.0008362, allocations: 80.45 kB / 20.71 MB, free: 3.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008175/0.0008175, allocations: 165.2 kB / 23.98 MB, free: 0.5859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8761/0.8761, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.05951/0.05951, allocations: 18.13 MB / 278.8 MB, free: 11.52 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.72e-05/3.898e-05, allocations: 4.547 kB / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002056/0.002095, allocations: 1.733 MB / 418 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009071/0.003002, allocations: 0.6688 MB / 418.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.847e-05/0.00308, allocations: 5.438 kB / 418.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.003379, allocations: 85.92 kB / 418.8 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.00353, allocations: 84.44 kB / 418.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.003938, allocations: 190.9 kB / 419.1 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.004171, allocations: 198 kB / 419.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.524e-05/0.004266, allocations: 25.44 kB / 419.3 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.00438, allocations: 98.41 kB / 419.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.004568, allocations: 144.3 kB / 419.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.004596, allocations: 14.12 kB / 419.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.004704, allocations: 80.28 kB / 419.6 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.004781, allocations: 72.73 kB / 419.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.563e-05/0.004837, allocations: 47.06 kB / 419.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.005118, allocations: 259.8 kB / 420 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.005121, allocations: 2.766 kB / 420 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.005122, allocations: 0 / 420 MB, free: 10.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.005126, allocations: 4 kB / 420 MB, free: 10.42 MB / 330.7 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.0008152/0.005942, allocations: 0.5518 MB / 420.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.005975, allocations: 10.91 kB / 420.6 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.006026, allocations: 24.95 kB / 420.6 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.006384, allocations: 259.7 kB / 420.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.0064, allocations: 3.969 kB / 420.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.006424, allocations: 11.25 kB / 420.8 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.006641, allocations: 184.8 kB / 421 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.006652, allocations: 4.125 kB / 421 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.006665, allocations: 5.969 kB / 421 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.006671, allocations: 7.031 kB / 421 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.006859, allocations: 167.9 kB / 421.2 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005035/0.007362, allocations: 415.9 kB / 421.6 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.007696, allocations: 221.9 kB / 421.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.007823, allocations: 130.4 kB / 422 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.007839, allocations: 2.344 kB / 422 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.008029, allocations: 213.6 kB / 422.2 MB, free: 9.031 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.008031, allocations: 1.312 kB / 422.2 MB, free: 9.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008493/0.00888, allocations: 0.5637 MB / 422.7 MB, free: 8.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.00891, allocations: 81.86 kB / 422.8 MB, free: 8.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.009242, allocations: 317.8 kB / 423.1 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.009257, allocations: 35.86 kB / 423.2 MB, free: 8.492 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.009311, allocations: 140.8 kB / 423.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.009358, allocations: 63.73 kB / 423.4 MB, free: 8.316 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.009405, allocations: 39.05 kB / 423.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.009453, allocations: 339.3 kB / 423.7 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.009563, allocations: 112.4 kB / 423.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.009671, allocations: 115 kB / 424 MB, free: 7.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007979/0.01047, allocations: 0.591 MB / 424.5 MB, free: 7.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01047, allocations: 0 / 424.5 MB, free: 7.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004173/0.01089, allocations: 427.4 kB / 425 MB, free: 7.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.01092, allocations: 43.77 kB / 425 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.01092, allocations: 1.281 kB / 425 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.01107, allocations: 52.03 kB / 425.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.192e-05/0.01113, allocations: 20.45 kB / 425.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007639/0.01189, allocations: 1.469 MB / 426.5 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.01203, allocations: 34.06 kB / 426.6 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.01204, allocations: 8.562 kB / 426.6 MB, free: 6.008 MB / 330.7 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.0001423/0.01218, allocations: 202.3 kB / 426.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.01221, allocations: 28.02 kB / 426.8 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.01224, allocations: 35.83 kB / 426.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01224, allocations: 2.938 kB / 426.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.01224, allocations: 1.469 kB / 426.9 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.01225, allocations: 1.625 kB / 426.9 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.01239, allocations: 213.4 kB / 427.1 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01239, allocations: 0 / 427.1 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.01246, allocations: 23.17 kB / 427.1 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.01257, allocations: 55.12 kB / 427.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01259, allocations: 9.75 kB / 427.1 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006467/0.01324, allocations: 1.466 MB / 428.6 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01324, allocations: 1.125 kB / 428.6 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.01379, allocations: 0.5979 MB / 429.2 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.01382, allocations: 34.64 kB / 429.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.01384, allocations: 8.641 kB / 429.3 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.01396, allocations: 27.78 kB / 429.3 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.01401, allocations: 15.77 kB / 429.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.01403, allocations: 5.078 kB / 429.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000253/0.01428, allocations: 248.1 kB / 429.5 MB, free: 3.824 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01428, allocations: 0 / 429.5 MB, free: 3.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002205/0.0145, allocations: 68.03 kB / 429.6 MB, free: 3.812 MB / 330.7 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.0001512/0.01465, allocations: 132.8 kB / 429.7 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004572/0.01511, allocations: 464.9 kB / 430.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.01511, allocations: 0 / 430.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.01531, allocations: 341.4 kB / 430.5 MB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001915/0.0155, allocations: 33.67 kB / 430.6 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006012/0.0161, allocations: 0.5297 MB / 431.1 MB, free: 2.805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.01621, allocations: 152.9 kB / 431.2 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.456e-05/0.01625, allocations: 17.7 kB / 431.3 MB, free: 2.707 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01625, allocations: 3.938 kB / 431.3 MB, free: 2.703 MB / 330.7 MB Notification: Performance of Templates: time 0.004903/0.02115, allocations: 3.709 MB / 435 MB, free: 1.801 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.77957478351891] Failed to read output from testmodel.py, exit status != 0: 0.026889948174357414 0.034746161000000005 0.027876657000000003 Calling exit ...