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.001002/0.001002, allocations: 109.5 kB / 16.38 MB, free: 6.473 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.001111/0.001111, allocations: 192.9 kB / 17.32 MB, free: 5.773 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08716/0.08716, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 60.05 kB / 437.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 54.95 MB / 492.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003125/0.1171, allocations: 1.756 MB / 494.4 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1184, allocations: 0.6856 MB / 495.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1185, allocations: 4 kB / 495.1 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.1189, allocations: 75.7 kB / 495.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.1191, allocations: 83.66 kB / 495.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.1197, allocations: 151.7 kB / 495.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.12, allocations: 271.5 kB / 495.6 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1201, allocations: 37.47 kB / 495.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.1203, allocations: 115.6 kB / 495.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.1206, allocations: 151.5 kB / 495.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.1206, allocations: 12 kB / 495.9 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.1207, allocations: 91.91 kB / 496 MB, free: 1.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1209, allocations: 63.81 kB / 496.1 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.121, allocations: 83.47 kB / 496.2 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.1213, allocations: 239.2 kB / 496.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1213, allocations: 0 / 496.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1213, allocations: 0 / 496.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1213, allocations: 0 / 496.4 MB, free: 1.105 MB / 366.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.00135/0.1226, allocations: 0.6287 MB / 497 MB, free: 432 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1227, allocations: 8.031 kB / 497 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.865e-05/0.1228, allocations: 24.66 kB / 497.1 MB, free: 400 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.1233, allocations: 310.7 kB / 497.4 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1234, allocations: 8.375 kB / 497.4 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.1234, allocations: 16.38 kB / 497.4 MB, free: 28 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002769/0.1237, allocations: 153.9 kB / 497.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1237, allocations: 0 / 497.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.1237, allocations: 7.938 kB / 497.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.1237, allocations: 4 kB / 497.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.124, allocations: 147.8 kB / 497.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007181/0.1247, allocations: 0.4887 MB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.1252, allocations: 198.4 kB / 498.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.1253, allocations: 108.8 kB / 498.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1254, allocations: 0 / 498.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.1256, allocations: 189 kB / 498.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.1256, allocations: 0 / 498.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001189/0.1268, allocations: 0.5711 MB / 499.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.1269, allocations: 85.11 kB / 499.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.1274, allocations: 304.9 kB / 499.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.1274, allocations: 37.69 kB / 499.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.1275, allocations: 132 kB / 499.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/0.1276, allocations: 63.11 kB / 499.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.1277, allocations: 37.7 kB / 499.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1278, allocations: 342.8 kB / 0.4885 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1279, allocations: 79.95 kB / 0.4886 GB, free: 12.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.1281, allocations: 90.12 kB / 0.4887 GB, free: 12.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.1293, allocations: 0.5744 MB / 0.4892 GB, free: 12.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1293, allocations: 4 kB / 0.4892 GB, free: 12.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006368/0.13, allocations: 391.8 kB / 0.4896 GB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.13, allocations: 43.72 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.13, allocations: 0 / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.1303, allocations: 52.81 kB / 0.4897 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.1304, allocations: 19.98 kB / 0.4897 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1317, allocations: 1.598 MB / 0.4913 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.132, allocations: 47.94 kB / 0.4913 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.1321, allocations: 4 kB / 0.4913 GB, free: 9.941 MB / 382.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.0002157/0.1323, allocations: 196.1 kB / 0.4915 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-05/0.1323, allocations: 27.72 kB / 0.4915 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.303e-05/0.1324, allocations: 38.11 kB / 0.4916 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1324, allocations: 4 kB / 0.4916 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1324, allocations: 0 / 0.4916 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1324, allocations: 4 kB / 0.4916 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.1327, allocations: 293.4 kB / 0.4919 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1327, allocations: 0 / 0.4919 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.1328, allocations: 16 kB / 0.4919 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.133, allocations: 56.8 kB / 0.4919 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.133, allocations: 11.94 kB / 0.4919 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.1343, allocations: 1.599 MB / 0.4935 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1343, allocations: 4.031 kB / 0.4935 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007939/0.1351, allocations: 0.5302 MB / 0.494 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/0.1352, allocations: 100.9 kB / 0.4941 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.1352, allocations: 7.938 kB / 0.4941 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.1354, allocations: 36.06 kB / 0.4942 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.1355, allocations: 11.97 kB / 0.4942 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.1355, allocations: 15.98 kB / 0.4942 GB, free: 6.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004588/0.136, allocations: 236.4 kB / 0.4944 GB, free: 6.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.136, allocations: 4 kB / 0.4944 GB, free: 6.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.1363, allocations: 72.03 kB / 0.4945 GB, free: 6.445 MB / 382.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.0001792/0.1365, allocations: 127.2 kB / 0.4946 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006392/0.1371, allocations: 426.5 kB / 0.495 GB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1372, allocations: 4 kB / 0.495 GB, free: 5.871 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003689/0.1375, allocations: 330 kB / 0.4953 GB, free: 5.523 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.1378, allocations: 24.42 kB / 0.4954 GB, free: 5.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007803/0.1386, allocations: 0.5186 MB / 0.4959 GB, free: 4.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.139, allocations: 0.7595 MB / 0.4966 GB, free: 4.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.139, allocations: 15.44 kB / 0.4966 GB, free: 4.141 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.139, allocations: 0 / 0.4966 GB, free: 4.141 MB / 382.1 MB Notification: Performance of Templates: time 0.005274/0.1443, allocations: 3.571 MB / 0.5001 GB, free: 0.5703 MB / 382.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)