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.001235/0.001235, allocations: 109 kB / 16.38 MB, free: 6.434 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.001021/0.001021, allocations: 190.2 kB / 17.32 MB, free: 5.758 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0872/0.0872, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.91 kB / 437.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 54.96 MB / 492.6 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002718/0.1051, allocations: 1.814 MB / 494.4 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.1062, allocations: 0.6584 MB / 495.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.809e-05/0.1063, allocations: 0 / 495.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002604/0.1066, allocations: 39.73 kB / 495.1 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.1067, allocations: 39.7 kB / 495.2 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.107, allocations: 119.8 kB / 495.3 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.1073, allocations: 223.5 kB / 495.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1074, allocations: 57.52 kB / 495.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.1075, allocations: 87.7 kB / 495.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1077, allocations: 99.62 kB / 495.7 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.1078, allocations: 20 kB / 495.8 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.876e-05/0.1078, allocations: 19.94 kB / 495.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.903e-05/0.1079, allocations: 51.89 kB / 495.8 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.206e-05/0.108, allocations: 87.52 kB / 495.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.1082, allocations: 191.3 kB / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1082, allocations: 0 / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1082, allocations: 0 / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.1082, allocations: 0 / 496.1 MB, free: 1.285 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.001041/0.1093, allocations: 0.5801 MB / 496.7 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1093, allocations: 12.03 kB / 496.7 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.306e-05/0.1094, allocations: 20.66 kB / 496.7 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004852/0.1099, allocations: 280.7 kB / 497 MB, free: 308 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1099, allocations: 12.38 kB / 497 MB, free: 296 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.11, allocations: 16.28 kB / 497 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.1103, allocations: 184.2 kB / 497.2 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1103, allocations: 7.938 kB / 497.2 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.1104, allocations: 8 kB / 497.2 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1104, allocations: 0 / 497.2 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.1107, allocations: 124.1 kB / 497.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008485/0.1115, allocations: 0.5358 MB / 497.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.1121, allocations: 178.4 kB / 498 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.1122, allocations: 84.81 kB / 498.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.1123, allocations: 8 kB / 498.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.1126, allocations: 194.8 kB / 498.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 2.785e-06/0.1126, allocations: 3.984 kB / 498.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001592/0.1142, allocations: 0.6217 MB / 499 MB, free: 14.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/0.1143, allocations: 158.2 kB / 499.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.1146, allocations: 214.6 kB / 499.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1146, allocations: 29.7 kB / 499.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.1147, allocations: 132.2 kB / 499.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.1148, allocations: 47.28 kB / 499.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.65e-05/0.1148, allocations: 41.7 kB / 499.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.115, allocations: 330.8 kB / 499.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.1151, allocations: 64.81 kB / 499.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.1153, allocations: 92.48 kB / 0.4883 GB, free: 13.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1165, allocations: 0.5259 MB / 0.4888 GB, free: 12.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1165, allocations: 0 / 0.4888 GB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004316/0.1169, allocations: 280.6 kB / 0.4891 GB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.117, allocations: 59.39 kB / 0.4892 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.117, allocations: 0 / 0.4892 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.117, allocations: 8 kB / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.1172, allocations: 35.91 kB / 0.4892 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1172, allocations: 4 kB / 0.4892 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.1174, allocations: 23.91 kB / 0.4892 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1175, allocations: 11.94 kB / 0.4892 GB, free: 12.02 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.0002304/0.1177, allocations: 162.2 kB / 0.4894 GB, free: 11.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001185/0.1178, allocations: 73.69 kB / 0.4895 GB, free: 11.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009568/0.1188, allocations: 0.4899 MB / 0.4899 GB, free: 11.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.575e-06/0.1188, allocations: 3.938 kB / 0.4899 GB, free: 11.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003432/0.1191, allocations: 256.9 kB / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.1192, allocations: 63.39 kB / 0.4902 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-06/0.1192, allocations: 0 / 0.4902 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.276e-06/0.1192, allocations: 3.938 kB / 0.4903 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.1194, allocations: 23.98 kB / 0.4903 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-06/0.1194, allocations: 4 kB / 0.4903 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.1196, allocations: 35.81 kB / 0.4903 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1196, allocations: 4 kB / 0.4903 GB, free: 10.83 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.0001756/0.1198, allocations: 237.7 kB / 0.4905 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.1198, allocations: 19.81 kB / 0.4906 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.955e-05/0.1199, allocations: 25.53 kB / 0.4906 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1199, allocations: 0 / 0.4906 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1199, allocations: 0 / 0.4906 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1199, allocations: 3.984 kB / 0.4906 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.1202, allocations: 277.4 kB / 0.4909 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1202, allocations: 0 / 0.4909 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.1203, allocations: 11.98 kB / 0.4909 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003615/0.1207, allocations: 150.5 kB / 0.491 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.1207, allocations: 4 kB / 0.491 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008683/0.1216, allocations: 0.7999 MB / 0.4918 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.1216, allocations: 7.969 kB / 0.4918 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008847/0.1225, allocations: 0.4953 MB / 0.4923 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.1226, allocations: 100.9 kB / 0.4924 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.1226, allocations: 4 kB / 0.4924 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.1228, allocations: 27.97 kB / 0.4924 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1229, allocations: 7.984 kB / 0.4924 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1229, allocations: 8 kB / 0.4924 GB, free: 8.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.1232, allocations: 168.2 kB / 0.4926 GB, free: 8.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1232, allocations: 0 / 0.4926 GB, free: 8.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1235, allocations: 67.84 kB / 0.4927 GB, free: 8.285 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.0001101/0.1236, allocations: 107.3 kB / 0.4928 GB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006372/0.1243, allocations: 483.2 kB / 0.4932 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1243, allocations: 0 / 0.4932 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004325/0.1247, allocations: 223.3 kB / 0.4934 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.125, allocations: 31.92 kB / 0.4935 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000787/0.1258, allocations: 443 kB / 0.4939 GB, free: 6.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.1261, allocations: 0.7398 MB / 0.4946 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.1261, allocations: 11.44 kB / 0.4946 GB, free: 6.148 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1261, allocations: 4 kB / 0.4946 GB, free: 6.145 MB / 382.1 MB Notification: Performance of Templates: time 0.004044/0.1302, allocations: 2.501 MB / 0.4971 GB, free: 3.656 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)