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.00107/0.00107, allocations: 110.9 kB / 16.42 MB, free: 6.512 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.001062/0.001062, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.092/0.092, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 75.88 kB / 437.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/0.08971, allocations: 54.95 MB / 492.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002745/0.09248, allocations: 1.821 MB / 494.5 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.0936, allocations: 0.6545 MB / 495.1 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.036e-05/0.0937, allocations: 0 / 495.1 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.09397, allocations: 31.8 kB / 495.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.09413, allocations: 43.7 kB / 495.2 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.09445, allocations: 119.7 kB / 495.3 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.09474, allocations: 231.5 kB / 495.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.09487, allocations: 49.53 kB / 495.6 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.095, allocations: 83.75 kB / 495.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.09518, allocations: 103.6 kB / 495.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.285e-05/0.09523, allocations: 20 kB / 495.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.411e-05/0.09528, allocations: 23.94 kB / 495.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/0.09537, allocations: 51.83 kB / 495.9 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.965e-05/0.09547, allocations: 91.52 kB / 496 MB, free: 1.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.09569, allocations: 191.3 kB / 496.2 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.09571, allocations: 4 kB / 496.2 MB, free: 1.359 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09571, allocations: 0 / 496.2 MB, free: 1.359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.09572, allocations: 0 / 496.2 MB, free: 1.359 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.001124/0.09685, allocations: 0.5762 MB / 496.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.0969, allocations: 12.02 kB / 496.8 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.09698, allocations: 24.66 kB / 496.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.09749, allocations: 276.7 kB / 497 MB, free: 388 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.09752, allocations: 8.375 kB / 497.1 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.09758, allocations: 20.27 kB / 497.1 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.09795, allocations: 180.3 kB / 497.3 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.09798, allocations: 0 / 497.3 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.09801, allocations: 7.984 kB / 497.3 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.09802, allocations: 4 kB / 497.3 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003226/0.09835, allocations: 132.1 kB / 497.4 MB, free: 20 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/0.09929, allocations: 0.528 MB / 497.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.09981, allocations: 182.5 kB / 498.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.1, allocations: 84.81 kB / 498.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.1, allocations: 4 kB / 498.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.1003, allocations: 198.7 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.844e-06/0.1003, allocations: 0 / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001658/0.102, allocations: 0.6217 MB / 499 MB, free: 14.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.1021, allocations: 158.2 kB / 499.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.1024, allocations: 214.6 kB / 499.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1025, allocations: 33.7 kB / 499.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.1025, allocations: 120.2 kB / 499.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.1026, allocations: 55.28 kB / 499.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-05/0.1027, allocations: 37.7 kB / 499.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1028, allocations: 330.8 kB / 499.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.103, allocations: 72.81 kB / 0.4883 GB, free: 13.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.1031, allocations: 77.67 kB / 0.4884 GB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.1043, allocations: 0.5322 MB / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1044, allocations: 3.938 kB / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004473/0.1048, allocations: 276.7 kB / 0.4891 GB, free: 12.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.333e-05/0.1049, allocations: 59.41 kB / 0.4892 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1049, allocations: 7.984 kB / 0.4892 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1049, allocations: 3.938 kB / 0.4892 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1051, allocations: 31.98 kB / 0.4892 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1051, allocations: 0 / 0.4892 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.1053, allocations: 27.91 kB / 0.4893 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.1054, allocations: 11.98 kB / 0.4893 GB, free: 12.11 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.0002136/0.1056, allocations: 162.1 kB / 0.4894 GB, free: 11.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001194/0.1057, allocations: 79.33 kB / 0.4895 GB, free: 11.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009996/0.1067, allocations: 0.4938 MB / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.1067, allocations: 3.984 kB / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003474/0.1071, allocations: 253.4 kB / 0.4902 GB, free: 11.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.1071, allocations: 63.41 kB / 0.4903 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/0.1071, allocations: 0 / 0.4903 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-06/0.1071, allocations: 0 / 0.4903 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.1073, allocations: 31.91 kB / 0.4903 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.1073, allocations: 0 / 0.4903 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1075, allocations: 31.83 kB / 0.4904 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.1076, allocations: 11.98 kB / 0.4904 GB, free: 10.91 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.0001376/0.1077, allocations: 229.8 kB / 0.4906 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.1077, allocations: 19.81 kB / 0.4906 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.1078, allocations: 25.52 kB / 0.4906 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1078, allocations: 3.938 kB / 0.4906 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1078, allocations: 4 kB / 0.4906 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.608e-05/0.1079, allocations: 85.02 kB / 0.4907 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.1079, allocations: 11.98 kB / 0.4907 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.1082, allocations: 23.97 kB / 0.4908 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.108e-05/0.1083, allocations: 19.92 kB / 0.4908 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001238/0.1095, allocations: 0.5522 MB / 0.4913 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007433/0.1103, allocations: 0.5351 MB / 0.4918 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001927/0.1105, allocations: 99.94 kB / 0.4919 GB, free: 9.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.1108, allocations: 172.2 kB / 0.4921 GB, free: 9.055 MB / 382.1 MB Notification: Performance of Backend: time 4.5e-07/0.1108, allocations: 0 / 0.4921 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007522/0.1115, allocations: 493.4 kB / 0.4926 GB, free: 8.52 MB / 382.1 MB Notification: Performance of SimCode: time 0.0007695/0.1123, allocations: 0.8813 MB / 0.4934 GB, free: 7.578 MB / 382.1 MB Notification: Performance of Templates: time 0.005886/0.1182, allocations: 3.125 MB / 0.4965 GB, free: 4.473 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)