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.001308/0.001308, allocations: 75.64 kB / 19.96 MB, free: 1.746 MB / 14.72 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.001671/0.001671, allocations: 171.6 kB / 23.24 MB, free: 4.855 MB / 14.72 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 1.514/1.514, allocations: 177.1 MB / 203.5 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.1057/0.1057, allocations: 18.14 MB / 278.1 MB, free: 15.04 MB / 270.1 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.412e-06/1.412e-06, allocations: 0 / 415.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.792e-05/2.933e-05, allocations: 6.219 kB / 415.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002918/0.002948, allocations: 1.74 MB / 417.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.004243, allocations: 0.6738 MB / 418 MB, free: 136 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.764e-05/0.004331, allocations: 0 / 418 MB, free: 136 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.004657, allocations: 75.59 kB / 418.1 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002424/0.004899, allocations: 99.56 kB / 418.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.005481, allocations: 183.5 kB / 418.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.005792, allocations: 199.5 kB / 418.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.858e-05/0.005891, allocations: 25.72 kB / 418.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.006034, allocations: 99.7 kB / 418.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.006285, allocations: 147.7 kB / 418.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.006329, allocations: 16 kB / 418.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.006475, allocations: 75.94 kB / 418.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.006584, allocations: 67.8 kB / 419 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.987e-05/0.006674, allocations: 51.78 kB / 419 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.007026, allocations: 255.2 kB / 419.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.007029, allocations: 0 / 419.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00703, allocations: 4 kB / 419.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.007038, allocations: 0 / 419.3 MB, free: 14.86 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.00136/0.008398, allocations: 0.5532 MB / 419.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.008436, allocations: 12.92 kB / 419.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.008504, allocations: 24.8 kB / 419.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007138/0.009218, allocations: 264.7 kB / 420.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.009234, allocations: 4.375 kB / 420.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.039e-05/0.009274, allocations: 8.375 kB / 420.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.00965, allocations: 183.8 kB / 420.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.009663, allocations: 192 / 420.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.00968, allocations: 4.375 kB / 420.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.009697, allocations: 7.938 kB / 420.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003375/0.01003, allocations: 169.5 kB / 420.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/0.01086, allocations: 412.1 kB / 420.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.01134, allocations: 220 kB / 421.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.01155, allocations: 134.7 kB / 421.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.01156, allocations: 0 / 421.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003064/0.01187, allocations: 221.9 kB / 421.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.01187, allocations: 0 / 421.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00139/0.01326, allocations: 0.5577 MB / 422 MB, free: 11.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.243e-05/0.01334, allocations: 89.09 kB / 422.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006085/0.01395, allocations: 309.8 kB / 422.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.01398, allocations: 29.7 kB / 422.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.01408, allocations: 140 kB / 422.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.204e-05/0.01415, allocations: 71.42 kB / 422.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.01423, allocations: 37.7 kB / 422.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.01439, allocations: 338.8 kB / 423 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.01457, allocations: 109.7 kB / 423.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.01475, allocations: 113.7 kB / 423.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.01621, allocations: 0.592 MB / 423.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01622, allocations: 3.938 kB / 423.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007483/0.01696, allocations: 437.6 kB / 424.2 MB, free: 9.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.74e-05/0.01702, allocations: 37.69 kB / 424.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.01703, allocations: 4 kB / 424.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.01727, allocations: 48.81 kB / 424.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.01738, allocations: 19.98 kB / 424.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.01894, allocations: 1.468 MB / 425.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.01921, allocations: 35.84 kB / 425.8 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.01924, allocations: 8 kB / 425.9 MB, free: 7.848 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.0002285/0.01946, allocations: 191.5 kB / 426 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.01951, allocations: 35.81 kB / 426.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.016e-05/0.01958, allocations: 38.11 kB / 426.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01958, allocations: 0 / 426.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.01959, allocations: 3.938 kB / 426.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.01959, allocations: 0 / 426.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.01983, allocations: 209.2 kB / 426.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.01984, allocations: 4 kB / 426.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.01996, allocations: 15.98 kB / 426.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.02014, allocations: 48.81 kB / 426.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.02016, allocations: 8 kB / 426.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.02164, allocations: 1.468 MB / 427.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.02164, allocations: 0 / 427.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.02264, allocations: 0.6068 MB / 428.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/0.02268, allocations: 19.95 kB / 428.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.02272, allocations: 15.98 kB / 428.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.02299, allocations: 32.02 kB / 428.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.02305, allocations: 15.97 kB / 428.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.02308, allocations: 8 kB / 428.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005211/0.0236, allocations: 241.1 kB / 428.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0236, allocations: 3.938 kB / 428.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.02392, allocations: 71.89 kB / 428.9 MB, free: 4.645 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.0002386/0.02416, allocations: 131.2 kB / 429 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007932/0.02495, allocations: 465.3 kB / 429.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.02496, allocations: 0 / 429.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004552/0.02541, allocations: 334.7 kB / 429.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.02571, allocations: 38.77 kB / 429.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009099/0.02662, allocations: 0.5001 MB / 430.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.02678, allocations: 156.4 kB / 430.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.711e-05/0.02687, allocations: 29.47 kB / 430.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.02691, allocations: 16.5 kB / 430.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.02691, allocations: 0 / 430.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Templates: time 0.007719/0.03463, allocations: 3.014 MB / 433.5 MB, free: 15.88 MB / 366.1 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.616555038839579] Failed to read output from testmodel.py, exit status != 0: 0.043912988156080246 0.062229581000000006 0.049786462000000004 Calling exit ...