Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 104.5 kB / 16.41 MB, free: 6.449 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.001495/0.001495, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08936/0.08936, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 67.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1183, allocations: 54.96 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.00347/0.1218, allocations: 1.81 MB / 494.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1232, allocations: 0.6624 MB / 495.1 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.1234, allocations: 0 / 495.1 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003078/0.1237, allocations: 31.73 kB / 495.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.1239, allocations: 39.7 kB / 495.2 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.1243, allocations: 119.8 kB / 495.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.1247, allocations: 231.5 kB / 495.5 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.1249, allocations: 53.52 kB / 495.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.125, allocations: 87.69 kB / 495.7 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.1253, allocations: 103.6 kB / 495.8 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.055e-05/0.1253, allocations: 16 kB / 495.8 MB, free: 1.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.665e-05/0.1254, allocations: 20 kB / 495.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.423e-05/0.1255, allocations: 47.84 kB / 495.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1256, allocations: 99.5 kB / 496 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.1258, allocations: 187.3 kB / 496.1 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1258, allocations: 4 kB / 496.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1258, allocations: 0 / 496.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1259, allocations: 0 / 496.2 MB, free: 1.246 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001175/0.127, allocations: 0.5826 MB / 496.7 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.1271, allocations: 8.031 kB / 496.7 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.668e-05/0.1272, allocations: 24.66 kB / 496.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004958/0.1277, allocations: 272.7 kB / 497 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.1277, allocations: 12.38 kB / 497 MB, free: 264 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1278, allocations: 24.28 kB / 497.1 MB, free: 240 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000386/0.1282, allocations: 184.2 kB / 497.2 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1282, allocations: 0 / 497.2 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.1282, allocations: 8 kB / 497.3 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1282, allocations: 4 kB / 497.3 MB, free: 28 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.1285, allocations: 128.1 kB / 497.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009938/0.1296, allocations: 0.528 MB / 497.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.1301, allocations: 186.4 kB / 498.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.1303, allocations: 84.81 kB / 498.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1303, allocations: 4 kB / 498.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.1307, allocations: 190.8 kB / 498.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.1307, allocations: 4 kB / 498.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001668/0.1324, allocations: 0.6178 MB / 499 MB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.1325, allocations: 162.2 kB / 499.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.1328, allocations: 214.6 kB / 499.4 MB, free: 13.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.1329, allocations: 29.7 kB / 499.4 MB, free: 13.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.384e-05/0.133, allocations: 128.2 kB / 499.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.918e-05/0.133, allocations: 55.28 kB / 499.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-05/0.1331, allocations: 33.7 kB / 499.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1333, allocations: 334.8 kB / 499.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.1334, allocations: 72.81 kB / 500 MB, free: 13.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.1336, allocations: 81.67 kB / 0.4884 GB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.1349, allocations: 0.526 MB / 0.4889 GB, free: 12.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1349, allocations: 4 kB / 0.4889 GB, free: 12.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004662/0.1354, allocations: 274.9 kB / 0.4891 GB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.926e-05/0.1355, allocations: 67.39 kB / 0.4892 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1355, allocations: 3.984 kB / 0.4892 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1355, allocations: 0 / 0.4892 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.1357, allocations: 35.91 kB / 0.4892 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1357, allocations: 0 / 0.4892 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1359, allocations: 31.91 kB / 0.4893 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1359, allocations: 12 kB / 0.4893 GB, free: 11.98 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: 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: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002375/0.1362, allocations: 154.3 kB / 0.4894 GB, free: 11.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001195/0.1363, allocations: 73.62 kB / 0.4895 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009769/0.1373, allocations: 0.4953 MB / 0.49 GB, free: 11.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.856e-06/0.1373, allocations: 3.938 kB / 0.49 GB, free: 11.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003662/0.1377, allocations: 252.8 kB / 0.4902 GB, free: 10.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.1377, allocations: 63.39 kB / 0.4903 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/0.1377, allocations: 3.938 kB / 0.4903 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-06/0.1378, allocations: 0 / 0.4903 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.1379, allocations: 27.98 kB / 0.4903 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1379, allocations: 4 kB / 0.4903 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.1381, allocations: 27.81 kB / 0.4903 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.1381, allocations: 8 kB / 0.4904 GB, free: 10.8 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: 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: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001801/0.1383, allocations: 245.6 kB / 0.4906 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.1384, allocations: 19.81 kB / 0.4906 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.127e-05/0.1384, allocations: 21.53 kB / 0.4906 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.1384, allocations: 0 / 0.4906 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.1385, allocations: 0 / 0.4906 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1385, allocations: 4 kB / 0.4906 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.1387, allocations: 273.4 kB / 0.4909 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1387, allocations: 4 kB / 0.4909 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.1389, allocations: 15.98 kB / 0.4909 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003803/0.1393, allocations: 142.5 kB / 0.491 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.1393, allocations: 8 kB / 0.4911 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009305/0.1402, allocations: 0.7999 MB / 0.4918 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1403, allocations: 3.938 kB / 0.4918 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009528/0.1412, allocations: 0.4981 MB / 0.4923 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.228e-05/0.1413, allocations: 96.89 kB / 0.4924 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.1413, allocations: 8 kB / 0.4924 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.1416, allocations: 27.97 kB / 0.4925 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.1416, allocations: 15.97 kB / 0.4925 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1417, allocations: 4 kB / 0.4925 GB, free: 8.477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002848/0.142, allocations: 168.2 kB / 0.4926 GB, free: 8.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.142, allocations: 0 / 0.4926 GB, free: 8.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003344/0.1423, allocations: 63.84 kB / 0.4927 GB, free: 8.25 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],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.1424, allocations: 115.1 kB / 0.4928 GB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006989/0.1432, allocations: 474.9 kB / 0.4933 GB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1432, allocations: 4 kB / 0.4933 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.1436, allocations: 215.3 kB / 0.4935 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1439, allocations: 41.02 kB / 0.4935 GB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008609/0.1448, allocations: 443 kB / 0.4939 GB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.1451, allocations: 0.7398 MB / 0.4946 GB, free: 6.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.271e-05/0.1452, allocations: 15.44 kB / 0.4947 GB, free: 6.109 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1452, allocations: 0 / 0.4947 GB, free: 6.109 MB / 382.1 MB Notification: Performance of Templates: time 0.005029/0.1502, allocations: 2.502 MB / 0.4971 GB, free: 3.609 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & ./AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)