Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") translateModel(AES.Coursework.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001302, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001056/0.001056, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2665/0.2665, allocations: 22.34 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003335, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4093, allocations: 55.98 MB / 437.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0007233/0.4101, allocations: 294.4 kB / 438.2 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001631/0.4103, allocations: 29.11 kB / 438.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.4103, allocations: 0 / 438.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.4103, allocations: 0 / 438.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-05/0.4104, allocations: 7.219 kB / 438.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001085/0.4105, allocations: 14.14 kB / 438.2 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.339e-05/0.4106, allocations: 22.17 kB / 438.3 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.39e-05/0.4106, allocations: 3.984 kB / 438.3 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.14e-05/0.4107, allocations: 18.91 kB / 438.3 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.259e-05/0.4108, allocations: 20.56 kB / 438.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.4108, allocations: 2.438 kB / 438.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.4108, allocations: 2.875 kB / 438.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.4108, allocations: 3.234 kB / 438.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.4109, allocations: 32.64 kB / 438.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.243e-05/0.4109, allocations: 9.344 kB / 438.4 MB, free: 38.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4109, allocations: 4 kB / 438.4 MB, free: 38.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4109, allocations: 0 / 438.4 MB, free: 38.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.4109, allocations: 3.312 kB / 438.4 MB, free: 38.74 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003962/0.4113, allocations: 353.5 kB / 438.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.4114, allocations: 15.41 kB / 438.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.4114, allocations: 6.906 kB / 438.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.25e-05/0.4115, allocations: 177.8 kB / 438.9 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.4116, allocations: 7.328 kB / 438.9 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.4116, allocations: 2.719 kB / 438.9 MB, free: 38.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.4117, allocations: 48.3 kB / 439 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.4117, allocations: 0 / 439 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.4117, allocations: 3.953 kB / 439 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.4117, allocations: 0 / 439 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.846e-05/0.4118, allocations: 21.92 kB / 439 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.4122, allocations: 266.3 kB / 439.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.4123, allocations: 56.81 kB / 439.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/0.4124, allocations: 18.27 kB / 439.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.4124, allocations: 3.984 kB / 439.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.4124, allocations: 37.44 kB / 439.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.193e-06/0.4124, allocations: 0 / 439.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001827/0.4126, allocations: 64.17 kB / 439.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.4127, allocations: 55.41 kB / 439.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.4128, allocations: 123.9 kB / 439.6 MB, free: 37.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.4128, allocations: 25.7 kB / 439.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.4129, allocations: 94.25 kB / 439.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.4129, allocations: 14.69 kB / 439.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.4129, allocations: 4 kB / 439.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.072e-05/0.413, allocations: 314.3 kB / 440 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.359e-05/0.413, allocations: 9.688 kB / 440 MB, free: 37.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.733e-05/0.413, allocations: 30.02 kB / 440.1 MB, free: 37.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.151e-05/0.4131, allocations: 20.81 kB / 440.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4131, allocations: 0 / 440.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001072/0.4132, allocations: 79.47 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4132, allocations: 3.906 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4133, allocations: 3.969 kB / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4133, allocations: 0 / 440.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.436e-05/0.4134, allocations: 24.91 kB / 440.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4134, allocations: 2.938 kB / 440.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.745e-05/0.4135, allocations: 6.875 kB / 440.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.4135, allocations: 0 / 440.2 MB, free: 36.95 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.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 (8): * Single equations (assignments): 8 * 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.0002019/0.4137, allocations: 116 kB / 440.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.4137, allocations: 10.64 kB / 440.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.4138, allocations: 10.66 kB / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.4138, allocations: 0 / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.4138, allocations: 0 / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.4138, allocations: 7.938 kB / 440.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.414, allocations: 167.8 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.414, allocations: 0 / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.4141, allocations: 16.94 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4142, allocations: 0 / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.4142, allocations: 3.953 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4142, allocations: 0 / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4142, allocations: 4.062 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.4144, allocations: 174.2 kB / 440.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.362e-05/0.4144, allocations: 84.33 kB / 440.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.4144, allocations: 0 / 440.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.872e-05/0.4145, allocations: 7.953 kB / 440.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.4145, allocations: 6.281 kB / 440.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.4145, allocations: 0 / 440.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.269e-05/0.4146, allocations: 93.59 kB / 440.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4146, allocations: 0 / 440.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002229/0.4148, allocations: 8.562 kB / 440.9 MB, free: 36.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (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 (4): * Single equations (assignments): 4 * 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 9.632e-05/0.4149, allocations: 101 kB / 441 MB, free: 36.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.415, allocations: 30.75 kB / 441 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.415, allocations: 0 / 441 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.04e-05/0.4151, allocations: 15.42 kB / 441.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.4153, allocations: 10.5 kB / 441.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002929/0.4156, allocations: 170.6 kB / 441.2 MB, free: 36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.4157, allocations: 0.6853 MB / 441.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.955e-05/0.4158, allocations: 7.438 kB / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.264e-05/0.4158, allocations: 7.438 kB / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4158, allocations: 0 / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of Templates: time 0.002395/0.4182, allocations: 387.5 kB / 442.3 MB, free: 35.23 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & ./AES_AES.Coursework.Modelling_principles.M2_PhasorDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)