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.001422/0.001422, allocations: 77.7 kB / 19.76 MB, free: 2.031 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.001778/0.001778, allocations: 157.7 kB / 23.01 MB, free: 4.945 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.526/1.526, allocations: 177.2 MB / 203.4 MB, free: 8.961 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.1006/0.1006, allocations: 17.8 MB / 277.6 MB, free: 15.36 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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 68.08 kB / 414.6 MB, free: 4.523 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1194, allocations: 59.56 MB / 474.2 MB, free: 8.852 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003176/0.1226, allocations: 1.741 MB / 475.9 MB, free: 7.098 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1239, allocations: 0.6662 MB / 476.6 MB, free: 6.426 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.48e-05/0.124, allocations: 4 kB / 476.6 MB, free: 6.422 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.1243, allocations: 83.64 kB / 476.7 MB, free: 6.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.1246, allocations: 95.62 kB / 476.8 MB, free: 6.246 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.1251, allocations: 159.6 kB / 476.9 MB, free: 6.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004747/0.1255, allocations: 299.4 kB / 477.2 MB, free: 5.797 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.1256, allocations: 25.78 kB / 477.3 MB, free: 5.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/0.1258, allocations: 127.6 kB / 477.4 MB, free: 5.645 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.1261, allocations: 171.4 kB / 477.5 MB, free: 5.477 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.1262, allocations: 12 kB / 477.6 MB, free: 5.465 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.1263, allocations: 79.94 kB / 477.6 MB, free: 5.387 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1264, allocations: 63.81 kB / 477.7 MB, free: 5.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.407e-05/0.1265, allocations: 63.59 kB / 477.8 MB, free: 5.258 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.1268, allocations: 246.9 kB / 478 MB, free: 5.016 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1268, allocations: 0 / 478 MB, free: 5.016 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1268, allocations: 3.938 kB / 478 MB, free: 5.012 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1269, allocations: 0 / 478 MB, free: 5.012 MB / 446.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.001333/0.1282, allocations: 0.5572 MB / 478.6 MB, free: 4.418 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1282, allocations: 16.92 kB / 478.6 MB, free: 4.402 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.934e-05/0.1283, allocations: 24.8 kB / 478.6 MB, free: 4.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006237/0.1289, allocations: 245.5 kB / 478.8 MB, free: 4.117 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.1289, allocations: 12.33 kB / 478.9 MB, free: 4.105 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.129, allocations: 16.31 kB / 478.9 MB, free: 4.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.1293, allocations: 179.6 kB / 479 MB, free: 3.902 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1293, allocations: 4 kB / 479.1 MB, free: 3.898 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1293, allocations: 4 kB / 479.1 MB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.1293, allocations: 4 kB / 479.1 MB, free: 3.891 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.1296, allocations: 167 kB / 479.2 MB, free: 3.723 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007796/0.1304, allocations: 424.1 kB / 479.6 MB, free: 3.277 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.1309, allocations: 212.2 kB / 479.8 MB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.1311, allocations: 130.5 kB / 480 MB, free: 2.918 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.1311, allocations: 3.938 kB / 480 MB, free: 2.914 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.1314, allocations: 210.7 kB / 480.2 MB, free: 2.684 MB / 446.1 MB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/0.1314, allocations: 0 / 480.2 MB, free: 2.684 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001356/0.1327, allocations: 0.5709 MB / 480.8 MB, free: 2.086 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.1328, allocations: 81.11 kB / 480.8 MB, free: 1.988 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006149/0.1334, allocations: 313.8 kB / 481.1 MB, free: 1.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1334, allocations: 33.7 kB / 481.2 MB, free: 1.637 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.933e-05/0.1335, allocations: 140 kB / 481.3 MB, free: 1.496 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-05/0.1336, allocations: 59.53 kB / 481.4 MB, free: 1.438 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.387e-05/0.1337, allocations: 37.7 kB / 481.4 MB, free: 1.395 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1338, allocations: 334.8 kB / 481.7 MB, free: 1.059 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.134, allocations: 117.7 kB / 481.8 MB, free: 0.9375 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1342, allocations: 116.2 kB / 482 MB, free: 0.8203 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1356, allocations: 0.5795 MB / 482.5 MB, free: 220 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1356, allocations: 3.938 kB / 482.5 MB, free: 216 kB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.2443/0.3799, allocations: 439.2 kB / 483 MB, free: 52.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.3799, allocations: 34.48 kB / 483 MB, free: 52.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.3799, allocations: 2.5 kB / 483 MB, free: 52.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.3802, allocations: 56.16 kB / 483.1 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.3803, allocations: 26 kB / 483.1 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.3814, allocations: 1.463 MB / 484.6 MB, free: 51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.3817, allocations: 45.42 kB / 484.6 MB, free: 51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3817, allocations: 6.094 kB / 484.6 MB, free: 51 MB / 446.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.0001999/0.3819, allocations: 202.2 kB / 484.8 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.3819, allocations: 24.44 kB / 484.8 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.382, allocations: 33.5 kB / 484.9 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.382, allocations: 0 / 484.9 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.382, allocations: 3.469 kB / 484.9 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.382, allocations: 0 / 484.9 MB, free: 50.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.3822, allocations: 211.6 kB / 485.1 MB, free: 50.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3822, allocations: 3.312 kB / 485.1 MB, free: 50.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.3823, allocations: 16.97 kB / 485.1 MB, free: 50.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.3825, allocations: 50.33 kB / 485.1 MB, free: 50.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.3825, allocations: 8.672 kB / 485.1 MB, free: 50.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009327/0.3834, allocations: 1.476 MB / 486.6 MB, free: 49.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3834, allocations: 0 / 486.6 MB, free: 49.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007391/0.3842, allocations: 0.591 MB / 487.2 MB, free: 49.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.3842, allocations: 36.16 kB / 487.2 MB, free: 49.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.3842, allocations: 6.375 kB / 487.3 MB, free: 49.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.3845, allocations: 31.7 kB / 487.3 MB, free: 49.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/0.3845, allocations: 13.12 kB / 487.3 MB, free: 49.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.3846, allocations: 10.41 kB / 487.3 MB, free: 49.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004366/0.385, allocations: 245.2 kB / 487.5 MB, free: 49.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.385, allocations: 0 / 487.5 MB, free: 49.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.3853, allocations: 68.97 kB / 487.6 MB, free: 49.27 MB / 446.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.0001913/0.3855, allocations: 128.6 kB / 487.7 MB, free: 49.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006246/0.3862, allocations: 473.2 kB / 488.2 MB, free: 48.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3862, allocations: 0 / 488.2 MB, free: 48.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.3865, allocations: 324.4 kB / 488.5 MB, free: 48.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.3868, allocations: 33.66 kB / 488.5 MB, free: 48.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007257/0.3875, allocations: 0.522 MB / 489.1 MB, free: 48.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.3876, allocations: 151.6 kB / 489.2 MB, free: 48.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.671e-05/0.3877, allocations: 31.83 kB / 489.2 MB, free: 48.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.3877, allocations: 14.75 kB / 489.3 MB, free: 48.39 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3877, allocations: 0 / 489.3 MB, free: 48.39 MB / 446.1 MB Notification: Performance of Templates: time 0.006518/0.3942, allocations: 3.024 MB / 492.3 MB, free: 48.16 MB / 446.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 -s ida -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.045416048029438] Failed to read output from testmodel.py, exit status != 0: 0.40287629002705216 0.41298445500000003 0.28369134900000004 Calling exit ...