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.00106/0.00106, allocations: 113.5 kB / 16.37 MB, free: 6.012 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.001859/0.00186, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09326/0.09326, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 61.31 kB / 382.2 MB, free: 41.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1069, allocations: 54.97 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.004496/0.1115, allocations: 1.819 MB / 439 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.113, allocations: 0.6585 MB / 439.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1132, allocations: 4 kB / 439.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000305/0.1135, allocations: 23.8 kB / 439.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.1137, allocations: 51.64 kB / 439.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.1141, allocations: 123.8 kB / 439.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.1145, allocations: 219.6 kB / 440.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1147, allocations: 53.53 kB / 440.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.1149, allocations: 87.69 kB / 440.2 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.1151, allocations: 99.58 kB / 440.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.249e-05/0.1152, allocations: 16 kB / 440.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.218e-05/0.1153, allocations: 20 kB / 440.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.1154, allocations: 51.83 kB / 440.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1155, allocations: 99.5 kB / 440.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.1159, allocations: 191.3 kB / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1159, allocations: 0 / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1159, allocations: 0 / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1159, allocations: 0 / 440.7 MB, free: 8.766 MB / 318.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.001323/0.1172, allocations: 0.5839 MB / 441.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.1173, allocations: 8.031 kB / 441.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.082e-05/0.1174, allocations: 20.75 kB / 441.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005987/0.118, allocations: 284.6 kB / 441.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.118, allocations: 12.38 kB / 441.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.958e-05/0.1181, allocations: 16.38 kB / 441.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.1186, allocations: 180.3 kB / 441.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1186, allocations: 0 / 441.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.1187, allocations: 4 kB / 441.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.1187, allocations: 4 kB / 441.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/0.1191, allocations: 136.1 kB / 441.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.1204, allocations: 0.5241 MB / 442.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005234/0.1209, allocations: 190.3 kB / 442.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.1211, allocations: 88.81 kB / 442.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.1211, allocations: 0 / 442.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.1214, allocations: 190.7 kB / 442.9 MB, free: 6.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1214, allocations: 7.938 kB / 442.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001575/0.123, allocations: 0.614 MB / 443.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.1231, allocations: 162.2 kB / 443.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.1234, allocations: 214.6 kB / 443.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1235, allocations: 25.7 kB / 443.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.1236, allocations: 128.2 kB / 444.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.496e-05/0.1236, allocations: 51.28 kB / 444.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.1237, allocations: 41.7 kB / 444.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1239, allocations: 334.8 kB / 444.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.1241, allocations: 68.81 kB / 444.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.1243, allocations: 86.55 kB / 444.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.1255, allocations: 0.5261 MB / 445.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1255, allocations: 112 / 445.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004289/0.126, allocations: 280.6 kB / 445.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/0.126, allocations: 63.39 kB / 445.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.126, allocations: 0 / 445.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1261, allocations: 0 / 445.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.1263, allocations: 35.97 kB / 445.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.1263, allocations: 3.984 kB / 445.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.1265, allocations: 35.91 kB / 445.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1265, allocations: 8 kB / 445.6 MB, free: 3.5 MB / 318.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.0002125/0.1267, allocations: 156 kB / 445.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001162/0.1269, allocations: 73.67 kB / 445.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/0.1279, allocations: 0.4939 MB / 446.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.666e-06/0.1279, allocations: 7.938 kB / 446.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.000349/0.1282, allocations: 252.8 kB / 446.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.1283, allocations: 55.41 kB / 446.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.1283, allocations: 3.984 kB / 446.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.757e-06/0.1283, allocations: 4 kB / 446.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1285, allocations: 31.92 kB / 446.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-06/0.1285, allocations: 0 / 446.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.1287, allocations: 27.81 kB / 446.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.1287, allocations: 4 kB / 446.7 MB, free: 2.32 MB / 318.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.0001416/0.1288, allocations: 241.8 kB / 446.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.1289, allocations: 19.75 kB / 446.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.1289, allocations: 21.53 kB / 446.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.129, allocations: 4 kB / 446.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.129, allocations: 0 / 446.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.129, allocations: 0 / 446.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.1292, allocations: 273.5 kB / 447.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1292, allocations: 4 kB / 447.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.1294, allocations: 15.92 kB / 447.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003659/0.1297, allocations: 142.5 kB / 447.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.1298, allocations: 4 kB / 447.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008638/0.1306, allocations: 0.8038 MB / 448.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1307, allocations: 7.875 kB / 448.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000907/0.1316, allocations: 0.4993 MB / 448.7 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.1316, allocations: 96.89 kB / 448.8 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.1317, allocations: 4 kB / 448.8 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.1319, allocations: 31.97 kB / 448.8 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.132, allocations: 7.984 kB / 448.8 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.132, allocations: 8 kB / 448.8 MB, free: 8 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.1323, allocations: 168.3 kB / 449 MB, free: 15.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1323, allocations: 0 / 449 MB, free: 15.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1326, allocations: 67.84 kB / 449.1 MB, free: 15.77 MB / 334.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.0001132/0.1327, allocations: 103.2 kB / 449.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006536/0.1334, allocations: 481.2 kB / 449.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1334, allocations: 0 / 449.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.1338, allocations: 223.2 kB / 449.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.1341, allocations: 51.5 kB / 449.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008072/0.1349, allocations: 409.8 kB / 450.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.1352, allocations: 0.7397 MB / 451 MB, free: 13.67 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.1353, allocations: 37.03 kB / 451.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.098e-05/0.1354, allocations: 15.44 kB / 451.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1354, allocations: 0 / 451.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Templates: time 0.005659/0.1411, allocations: 2.641 MB / 453.7 MB, free: 11 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)