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.001332/0.001332, allocations: 107.1 kB / 15.79 MB, free: 5.484 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.001383/0.001383, allocations: 202 kB / 16.73 MB, free: 5.363 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.513/1.513, allocations: 225.6 MB / 243.1 MB, free: 3.699 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09491/0.09491, allocations: 22.69 MB / 318.7 MB, free: 9.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 59.48 kB / 448.9 MB, free: 39.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1228, allocations: 58.03 MB / 0.4951 GB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.003032/0.1258, allocations: 1.836 MB / 0.4969 GB, free: 6.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1269, allocations: 0.674 MB / 0.4975 GB, free: 6.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1271, allocations: 4 kB / 0.4975 GB, free: 6.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.1274, allocations: 27.73 kB / 0.4976 GB, free: 6.277 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.1275, allocations: 43.7 kB / 0.4976 GB, free: 6.234 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.1278, allocations: 119.8 kB / 0.4977 GB, free: 6.117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.1282, allocations: 227.6 kB / 0.4979 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1283, allocations: 33.55 kB / 0.498 GB, free: 5.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1284, allocations: 99.61 kB / 0.4981 GB, free: 5.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.1286, allocations: 99.64 kB / 0.4981 GB, free: 5.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.074e-05/0.1286, allocations: 16 kB / 0.4982 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.18e-05/0.1286, allocations: 20 kB / 0.4982 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.624e-05/0.1287, allocations: 55.81 kB / 0.4982 GB, free: 5.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.931e-05/0.1288, allocations: 83.59 kB / 0.4983 GB, free: 5.492 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.129, allocations: 207.1 kB / 0.4985 GB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.129, allocations: 0 / 0.4985 GB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.129, allocations: 0 / 0.4985 GB, free: 5.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.129, allocations: 0 / 0.4985 GB, free: 5.289 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.0009704/0.13, allocations: 0.5722 MB / 0.4991 GB, free: 4.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.13, allocations: 11.97 kB / 0.4991 GB, free: 4.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.1301, allocations: 24.8 kB / 0.4991 GB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.1305, allocations: 280.4 kB / 0.4994 GB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1305, allocations: 8.375 kB / 0.4994 GB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.1305, allocations: 20.36 kB / 0.4994 GB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.1308, allocations: 178.1 kB / 0.4996 GB, free: 4.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1308, allocations: 0 / 0.4996 GB, free: 4.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.1309, allocations: 15.98 kB / 0.4996 GB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1309, allocations: 4 kB / 0.4996 GB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002636/0.1311, allocations: 124.1 kB / 0.4997 GB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007233/0.1319, allocations: 0.532 MB / 0.5002 GB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.1323, allocations: 174.4 kB / 0.5004 GB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.1325, allocations: 72.81 kB / 0.5005 GB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.1325, allocations: 3.984 kB / 0.5005 GB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.1327, allocations: 194.7 kB / 0.5007 GB, free: 2.898 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1327, allocations: 0 / 0.5007 GB, free: 2.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001438/0.1341, allocations: 0.6101 MB / 0.5012 GB, free: 2.254 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1342, allocations: 162.2 kB / 0.5014 GB, free: 2.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.1345, allocations: 210.6 kB / 0.5016 GB, free: 1.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1345, allocations: 33.7 kB / 0.5016 GB, free: 1.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.1345, allocations: 124.3 kB / 0.5018 GB, free: 1.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.1346, allocations: 47.59 kB / 0.5018 GB, free: 1.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.939e-05/0.1346, allocations: 41.7 kB / 0.5018 GB, free: 1.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.957e-05/0.1347, allocations: 330.8 kB / 0.5022 GB, free: 1.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.1348, allocations: 68.81 kB / 0.5022 GB, free: 1.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.135, allocations: 89.67 kB / 0.5023 GB, free: 1.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.136, allocations: 0.5255 MB / 0.5028 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.136, allocations: 0 / 0.5028 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003762/0.1364, allocations: 282.1 kB / 0.5031 GB, free: 224 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.1365, allocations: 61.58 kB / 0.5031 GB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1365, allocations: 8 kB / 0.5032 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1365, allocations: 4 kB / 0.5032 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1367, allocations: 31.92 kB / 0.5032 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1367, allocations: 0 / 0.5032 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.1369, allocations: 31.92 kB / 0.5032 GB, free: 76 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.1369, allocations: 7.984 kB / 0.5032 GB, free: 68 kB / 366.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.0002537/0.1371, allocations: 152 kB / 0.5034 GB, free: 15.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001444/0.1373, allocations: 85.61 kB / 0.5035 GB, free: 15.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001112/0.1384, allocations: 498.7 kB / 0.5039 GB, free: 15.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.436e-06/0.1384, allocations: 3.938 kB / 0.5039 GB, free: 15.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0004026/0.1388, allocations: 261.9 kB / 0.5042 GB, free: 15.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.1388, allocations: 59.41 kB / 0.5042 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-06/0.1388, allocations: 0 / 0.5042 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-06/0.1388, allocations: 0 / 0.5042 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.139, allocations: 27.97 kB / 0.5043 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.214e-06/0.139, allocations: 4 kB / 0.5043 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.1392, allocations: 35.86 kB / 0.5043 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.1392, allocations: 4 kB / 0.5043 GB, free: 14.88 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.0001832/0.1394, allocations: 230.9 kB / 0.5045 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.33e-05/0.1394, allocations: 23.91 kB / 0.5046 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.367e-05/0.1395, allocations: 21.52 kB / 0.5046 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.1395, allocations: 4 kB / 0.5046 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1395, allocations: 0 / 0.5046 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1395, allocations: 0 / 0.5046 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.1398, allocations: 285.4 kB / 0.5048 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1398, allocations: 0 / 0.5048 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.14, allocations: 15.98 kB / 0.5049 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004083/0.1404, allocations: 146.5 kB / 0.505 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.1404, allocations: 4 kB / 0.505 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.1414, allocations: 0.8077 MB / 0.5058 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1414, allocations: 3.938 kB / 0.5058 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1424, allocations: 470.2 kB / 0.5062 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.593e-05/0.1425, allocations: 104.9 kB / 0.5063 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.1426, allocations: 8.031 kB / 0.5064 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.1428, allocations: 27.97 kB / 0.5064 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.1429, allocations: 15.86 kB / 0.5064 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.1429, allocations: 16.06 kB / 0.5064 GB, free: 12.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003101/0.1432, allocations: 164.2 kB / 0.5066 GB, free: 12.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1432, allocations: 4 kB / 0.5066 GB, free: 12.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.1436, allocations: 67.89 kB / 0.5066 GB, free: 12.34 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.0001405/0.1437, allocations: 107.2 kB / 0.5067 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007333/0.1444, allocations: 459.9 kB / 0.5072 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1444, allocations: 0 / 0.5072 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004655/0.1449, allocations: 195.2 kB / 0.5074 GB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.1452, allocations: 48.05 kB / 0.5074 GB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008828/0.1461, allocations: 412.6 kB / 0.5078 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.1464, allocations: 0.732 MB / 0.5085 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.1466, allocations: 37.05 kB / 0.5086 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.703e-05/0.1466, allocations: 23.42 kB / 0.5086 GB, free: 10.24 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1466, allocations: 0 / 0.5086 GB, free: 10.24 MB / 382.1 MB Notification: Performance of Templates: time 0.006945/0.1536, allocations: 2.76 MB / 0.5113 GB, free: 7.492 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)