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.004948/0.004948, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001173/0.001174, allocations: 195.9 kB / 16.67 MB, free: 5.52 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.333/1.333, allocations: 222.9 MB / 240.4 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.09177/0.09177, allocations: 22.32 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.89 kB / 437 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 54.96 MB / 492 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.003207/0.1223, allocations: 1.818 MB / 493.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1235, allocations: 0.6507 MB / 494.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1237, allocations: 4 kB / 494.5 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.124, allocations: 31.72 kB / 494.5 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.1242, allocations: 43.7 kB / 494.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.1245, allocations: 119.8 kB / 494.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.1249, allocations: 235.5 kB / 494.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.125, allocations: 49.55 kB / 494.9 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.1252, allocations: 87.67 kB / 495 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.1254, allocations: 95.66 kB / 495.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.389e-05/0.1254, allocations: 20 kB / 495.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.215e-05/0.1255, allocations: 16 kB / 495.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.941e-05/0.1256, allocations: 55.81 kB / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.563e-05/0.1257, allocations: 83.53 kB / 495.3 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.1259, allocations: 207.3 kB / 495.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.126, allocations: 0 / 495.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.126, allocations: 0 / 495.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.126, allocations: 0 / 495.5 MB, free: 1.25 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.001135/0.1271, allocations: 0.5723 MB / 496 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1272, allocations: 12.02 kB / 496.1 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.377e-05/0.1272, allocations: 24.66 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005165/0.1278, allocations: 272.7 kB / 496.3 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.1278, allocations: 12.31 kB / 496.4 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.1278, allocations: 20.28 kB / 496.4 MB, free: 252 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.1282, allocations: 192.2 kB / 496.6 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1282, allocations: 0 / 496.6 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.1283, allocations: 4 kB / 496.6 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1283, allocations: 7.984 kB / 496.6 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003282/0.1286, allocations: 124.2 kB / 496.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009177/0.1295, allocations: 0.5241 MB / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.1301, allocations: 182.4 kB / 497.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.1303, allocations: 95.69 kB / 497.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.1303, allocations: 3.906 kB / 497.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.1306, allocations: 194.8 kB / 497.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.1306, allocations: 4 kB / 497.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001667/0.1323, allocations: 0.6204 MB / 498.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.946e-05/0.1324, allocations: 162.2 kB / 498.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.1328, allocations: 214.6 kB / 498.7 MB, free: 13.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1328, allocations: 29.7 kB / 498.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.1329, allocations: 120.2 kB / 498.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.674e-05/0.133, allocations: 51.3 kB / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.874e-05/0.1331, allocations: 37.7 kB / 498.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1332, allocations: 334.8 kB / 499.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1334, allocations: 72.81 kB / 499.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.1335, allocations: 85.67 kB / 499.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.1348, allocations: 0.5221 MB / 499.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1348, allocations: 0 / 499.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004749/0.1353, allocations: 280.7 kB / 0.4885 GB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.1354, allocations: 59.41 kB / 0.4885 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1354, allocations: 0 / 0.4885 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1354, allocations: 3.984 kB / 0.4885 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.1356, allocations: 31.92 kB / 0.4886 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1356, allocations: 0 / 0.4886 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.1358, allocations: 31.91 kB / 0.4886 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1358, allocations: 11.98 kB / 0.4886 GB, free: 12 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.000218/0.1361, allocations: 154.2 kB / 0.4888 GB, free: 11.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001396/0.1362, allocations: 83.33 kB / 0.4888 GB, free: 11.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009969/0.1372, allocations: 0.4899 MB / 0.4893 GB, free: 11.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.076e-06/0.1372, allocations: 3.938 kB / 0.4893 GB, free: 11.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003514/0.1376, allocations: 261.3 kB / 0.4896 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.1377, allocations: 61.75 kB / 0.4896 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-06/0.1377, allocations: 8 kB / 0.4896 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-06/0.1377, allocations: 0 / 0.4896 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1378, allocations: 31.97 kB / 0.4897 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.1378, allocations: 0 / 0.4897 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.138, allocations: 27.83 kB / 0.4897 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.1381, allocations: 7.984 kB / 0.4897 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.0001634/0.1382, allocations: 241.8 kB / 0.4899 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.1383, allocations: 15.81 kB / 0.4899 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.988e-05/0.1383, allocations: 25.52 kB / 0.49 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1383, allocations: 4 kB / 0.49 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1383, allocations: 0 / 0.49 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1384, allocations: 0 / 0.49 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.1386, allocations: 285.4 kB / 0.4902 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1387, allocations: 0 / 0.4902 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.1388, allocations: 8 kB / 0.4902 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003714/0.1392, allocations: 146.5 kB / 0.4904 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.1392, allocations: 8 kB / 0.4904 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.1403, allocations: 0.7999 MB / 0.4912 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1403, allocations: 3.938 kB / 0.4912 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009423/0.1412, allocations: 0.4954 MB / 0.4917 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.1413, allocations: 92.86 kB / 0.4918 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1414, allocations: 8 kB / 0.4918 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.1416, allocations: 28 kB / 0.4918 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.1417, allocations: 11.98 kB / 0.4918 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.1417, allocations: 12 kB / 0.4918 GB, free: 8.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000278/0.142, allocations: 164.2 kB / 0.492 GB, free: 8.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.142, allocations: 3.938 kB / 0.492 GB, free: 8.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.1423, allocations: 63.84 kB / 0.492 GB, free: 8.258 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.0001208/0.1424, allocations: 111.2 kB / 0.4921 GB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007155/0.1432, allocations: 481.3 kB / 0.4926 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1432, allocations: 0 / 0.4926 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005097/0.1437, allocations: 211.3 kB / 0.4928 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.144, allocations: 37.94 kB / 0.4928 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009518/0.145, allocations: 417.3 kB / 0.4932 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.1454, allocations: 0.7321 MB / 0.4939 GB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.1455, allocations: 41.05 kB / 0.494 GB, free: 6.137 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.1456, allocations: 15.44 kB / 0.494 GB, free: 6.121 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1456, allocations: 0 / 0.494 GB, free: 6.121 MB / 382.1 MB Notification: Performance of Templates: time 0.006543/0.1522, allocations: 2.677 MB / 0.4966 GB, free: 3.461 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)