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.0008724/0.0008724, allocations: 86.41 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.0009405/0.0009405, 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.234/1.234, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1836/0.1836, allocations: 22.36 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003213, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2241, allocations: 55.97 MB / 437.9 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0005396/0.2247, allocations: 293.7 kB / 438.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001278/0.2248, allocations: 29.27 kB / 438.2 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.259e-05/0.2249, allocations: 4 kB / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.053e-05/0.2249, allocations: 0 / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.03e-05/0.2249, allocations: 10.41 kB / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.865e-05/0.225, allocations: 7.281 kB / 438.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.313e-05/0.2251, allocations: 23.7 kB / 438.3 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.734e-05/0.2251, allocations: 0 / 438.3 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.468e-05/0.2252, allocations: 23.92 kB / 438.3 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.08e-05/0.2253, allocations: 17.02 kB / 438.3 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.2253, allocations: 0 / 438.3 MB, free: 39.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.037e-05/0.2253, allocations: 6.969 kB / 438.3 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.2253, allocations: 7.375 kB / 438.3 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.738e-05/0.2253, allocations: 32.45 kB / 438.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.821e-05/0.2254, allocations: 13.33 kB / 438.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2254, allocations: 2.875 kB / 438.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2254, allocations: 0 / 438.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.2254, allocations: 0 / 438.4 MB, free: 39.01 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.0002962/0.2257, allocations: 356.9 kB / 438.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.2257, allocations: 16.62 kB / 438.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.2258, allocations: 3 kB / 438.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.86e-05/0.2258, allocations: 169.5 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.2259, allocations: 7.984 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.2259, allocations: 6.453 kB / 438.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.857e-05/0.226, allocations: 43.67 kB / 439 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.226, allocations: 0 / 439 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.226, allocations: 7.953 kB / 439 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.226, allocations: 2.781 kB / 439 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.788e-05/0.226, allocations: 20.22 kB / 439 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002876/0.2263, allocations: 274.9 kB / 439.3 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.2265, allocations: 53.45 kB / 439.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.449e-05/0.2265, allocations: 18.08 kB / 439.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.714e-06/0.2265, allocations: 0 / 439.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.2266, allocations: 38.5 kB / 439.4 MB, free: 38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2266, allocations: 0 / 439.4 MB, free: 38 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001406/0.2267, allocations: 62.17 kB / 439.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.638e-05/0.2267, allocations: 51.41 kB / 439.5 MB, free: 37.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.03e-05/0.2268, allocations: 125.2 kB / 439.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.362e-06/0.2268, allocations: 29.7 kB / 439.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.755e-05/0.2268, allocations: 94.34 kB / 439.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.678e-06/0.2269, allocations: 11.75 kB / 439.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.2269, allocations: 0 / 439.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.817e-05/0.2269, allocations: 324.9 kB / 440.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.066e-05/0.2269, allocations: 9.969 kB / 440.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.664e-05/0.227, allocations: 25.72 kB / 440.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.626e-05/0.227, allocations: 13.83 kB / 440.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.227, allocations: 0 / 440.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.159e-05/0.2271, allocations: 86.06 kB / 440.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.2271, allocations: 5.156 kB / 440.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.2271, allocations: 4.031 kB / 440.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2272, allocations: 3 kB / 440.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.517e-05/0.2272, allocations: 24.44 kB / 440.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.2273, allocations: 3.938 kB / 440.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.286e-05/0.2273, allocations: 2.531 kB / 440.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.2273, allocations: 5.891 kB / 440.2 MB, free: 37.22 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.0001096/0.2274, allocations: 112.5 kB / 440.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.2275, allocations: 14.67 kB / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.2275, allocations: 11.69 kB / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2275, allocations: 0 / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2275, allocations: 0 / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.2275, allocations: 3.469 kB / 440.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.2276, allocations: 165.1 kB / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2276, allocations: 0 / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.835e-05/0.2277, allocations: 13.81 kB / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2277, allocations: 0 / 440.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.2277, allocations: 6.672 kB / 440.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2277, allocations: 0 / 440.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2278, allocations: 7.375 kB / 440.6 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001207/0.2279, allocations: 166.3 kB / 440.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.2279, allocations: 88 kB / 440.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.2279, allocations: 3.984 kB / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.125e-05/0.228, allocations: 3.953 kB / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.062e-05/0.228, allocations: 2.969 kB / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.228, allocations: 4.062 kB / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.255e-05/0.2281, allocations: 101 kB / 440.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2281, allocations: 0 / 440.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.2283, allocations: 7.75 kB / 440.9 MB, free: 36.54 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 6.037e-05/0.2283, allocations: 97.16 kB / 441 MB, free: 36.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.807e-05/0.2284, allocations: 33.67 kB / 441.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2284, allocations: 2.562 kB / 441.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.876e-05/0.2285, allocations: 11.25 kB / 441.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.2287, allocations: 6.531 kB / 441.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.2289, allocations: 178.6 kB / 441.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.553e-05/0.229, allocations: 0.6884 MB / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.73e-05/0.229, allocations: 6.844 kB / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.022e-05/0.2291, allocations: 7.438 kB / 442 MB, free: 35.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2291, allocations: 0 / 442 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Templates: time 0.001832/0.2309, allocations: 379.5 kB / 442.3 MB, free: 35.51 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)