Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1078/0.1078, allocations: 17.69 MB / 33.63 MB, free: 1.777 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001535/0.001536, allocations: 180.5 kB / 38.92 MB, free: 24 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.4 MB / 249.5 MB, free: 2.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007836/0.0007837, allocations: 97.39 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005586/0.0005593, allocations: 12 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2866, allocations: 51.98 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3941, allocations: 76.17 MB / 495.1 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.3944, allocations: 67.95 kB / 495.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002013/0.3964, allocations: 0.7851 MB / 495.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3965, allocations: 0 / 495.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.3965, allocations: 4 kB / 495.9 MB, free: 11.24 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004/0.3969, allocations: 371.3 kB / 496.3 MB, free: 10.83 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3969, allocations: 8.031 kB / 496.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.013e-05/0.397, allocations: 12.81 kB / 496.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3971, allocations: 176.2 kB / 496.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3971, allocations: 4.375 kB / 496.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.3972, allocations: 4.375 kB / 496.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.3973, allocations: 66.22 kB / 496.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3973, allocations: 3.938 kB / 496.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3974, allocations: 4 kB / 496.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.3974, allocations: 0 / 496.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.744e-05/0.3975, allocations: 35.92 kB / 496.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000457/0.3979, allocations: 308.7 kB / 496.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.3982, allocations: 90.66 kB / 497 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.124e-05/0.3983, allocations: 40.97 kB / 497.1 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.3983, allocations: 7.938 kB / 497.1 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.3983, allocations: 30.56 kB / 497.1 MB, free: 9.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.3983, allocations: 4 kB / 497.1 MB, free: 9.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002444/0.3986, allocations: 105.5 kB / 497.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.3986, allocations: 51.41 kB / 497.2 MB, free: 9.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.615e-05/0.3987, allocations: 117.8 kB / 497.4 MB, free: 9.641 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.3988, allocations: 25.7 kB / 497.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.3988, allocations: 92.06 kB / 497.5 MB, free: 9.516 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.3989, allocations: 39.45 kB / 497.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.3989, allocations: 4 kB / 497.5 MB, free: 9.473 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.399, allocations: 314.8 kB / 497.8 MB, free: 9.156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.3991, allocations: 27.98 kB / 497.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-05/0.3991, allocations: 37.64 kB / 497.9 MB, free: 9.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004316/0.3996, allocations: 125.9 kB / 498 MB, free: 8.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3996, allocations: 0 / 498 MB, free: 8.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001584/0.3998, allocations: 109.5 kB / 498.1 MB, free: 8.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3998, allocations: 4 kB / 498.1 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3998, allocations: 4 kB / 498.1 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3998, allocations: 3.984 kB / 498.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.3999, allocations: 24 kB / 498.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.4, allocations: 7.969 kB / 498.2 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.831e-05/0.4, allocations: 7.906 kB / 498.2 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.4, allocations: 8 kB / 498.2 MB, free: 8.789 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real I:VARIABLE(start = 0.0 fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.4002, allocations: 129.7 kB / 498.3 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.4002, allocations: 7.906 kB / 498.3 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.4004, allocations: 106 kB / 498.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4004, allocations: 4 kB / 498.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4005, allocations: 0 / 498.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4005, allocations: 0 / 498.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.4007, allocations: 185.6 kB / 498.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4007, allocations: 4 kB / 498.6 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.4008, allocations: 31.92 kB / 498.6 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4008, allocations: 0 / 498.6 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.4009, allocations: 11.98 kB / 498.6 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4009, allocations: 0 / 498.6 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4009, allocations: 0 / 498.6 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.4011, allocations: 227.2 kB / 498.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.4012, allocations: 81.11 kB / 498.9 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.4012, allocations: 4 kB / 499 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.541e-05/0.4013, allocations: 4.047 kB / 499 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.276e-05/0.4013, allocations: 11.98 kB / 499 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.4013, allocations: 4 kB / 499 MB, free: 7.895 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.138e-05/0.4014, allocations: 91.27 kB / 499.1 MB, free: 7.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.585e-06/0.4014, allocations: 0 / 499.1 MB, free: 7.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.4016, allocations: 23.88 kB / 499.1 MB, free: 7.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001007/0.4017, allocations: 95.25 kB / 499.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.4019, allocations: 71.84 kB / 499.2 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4019, allocations: 0 / 499.2 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.58e-05/0.4019, allocations: 31.98 kB / 499.3 MB, free: 7.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.4021, allocations: 10.33 kB / 499.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.4026, allocations: 241.2 kB / 499.5 MB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.4029, allocations: 0.6926 MB / 0.4885 GB, free: 6.586 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.79e-05/0.4029, allocations: 12.59 kB / 0.4885 GB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.318e-05/0.403, allocations: 11.44 kB / 0.4885 GB, free: 6.559 MB / 362.7 MB Notification: Performance of SimCode: time 4.057e-06/0.403, allocations: 3.938 kB / 0.4885 GB, free: 6.555 MB / 362.7 MB Notification: Performance of Templates: time 0.002375/0.4054, allocations: 0.5 MB / 0.489 GB, free: 6.059 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & ./AES_AES.Coursework.Modelling_principles.M1_TimeDomain -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)