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.001536/0.001536, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2306/0.2306, allocations: 22.35 MB / 312.7 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.001911, allocations: 59.91 kB / 380.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3196, allocations: 54.95 MB / 435.8 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001699/0.3214, allocations: 0.575 MB / 436.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001543/0.3215, allocations: 32.92 kB / 436.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.01e-05/0.3216, allocations: 0 / 436.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.3216, allocations: 3.938 kB / 436.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.563e-05/0.3217, allocations: 3.938 kB / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001092/0.3218, allocations: 3.422 kB / 436.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.3219, allocations: 39.22 kB / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.289e-05/0.3219, allocations: 2.656 kB / 436.4 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.94e-05/0.322, allocations: 12.92 kB / 436.4 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.869e-05/0.322, allocations: 20.97 kB / 436.4 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.3221, allocations: 2.938 kB / 436.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.258e-05/0.3221, allocations: 0 / 436.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.3221, allocations: 17.94 kB / 436.5 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.3222, allocations: 14.28 kB / 436.5 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.058e-05/0.3222, allocations: 20.88 kB / 436.5 MB, free: 39.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3222, allocations: 3.281 kB / 436.5 MB, free: 39.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3222, allocations: 0 / 436.5 MB, free: 39.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3222, allocations: 0 / 436.5 MB, free: 39.27 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.0004082/0.3227, allocations: 356.5 kB / 436.9 MB, free: 38.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3227, allocations: 11.44 kB / 436.9 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.3227, allocations: 7.75 kB / 436.9 MB, free: 38.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.479e-05/0.3228, allocations: 170.8 kB / 437 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.108e-06/0.3229, allocations: 4.375 kB / 437 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.3229, allocations: 16.16 kB / 437.1 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.323, allocations: 49.09 kB / 437.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.323, allocations: 4.125 kB / 437.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.323, allocations: 11.94 kB / 437.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.323, allocations: 2.812 kB / 437.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.326e-05/0.3231, allocations: 15.73 kB / 437.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003486/0.3234, allocations: 272.8 kB / 437.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.3236, allocations: 52.28 kB / 437.5 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.971e-05/0.3236, allocations: 12.64 kB / 437.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.3237, allocations: 7.844 kB / 437.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.3237, allocations: 33.75 kB / 437.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.3237, allocations: 0 / 437.5 MB, free: 38.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.000169/0.3239, allocations: 64.8 kB / 437.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.3239, allocations: 51.41 kB / 437.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.215e-05/0.324, allocations: 121 kB / 437.7 MB, free: 38.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.324, allocations: 29.7 kB / 437.8 MB, free: 38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.324, allocations: 94.17 kB / 437.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.324, allocations: 18.47 kB / 437.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.3241, allocations: 20.06 kB / 437.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.3241, allocations: 317.5 kB / 438.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.3242, allocations: 12.64 kB / 438.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.865e-05/0.3242, allocations: 21.72 kB / 438.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.3245, allocations: 84.58 kB / 438.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3245, allocations: 0 / 438.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.376e-05/0.3246, allocations: 73.86 kB / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.3246, allocations: 8.781 kB / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3246, allocations: 0 / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3246, allocations: 0 / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.833e-05/0.3247, allocations: 21.59 kB / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3247, allocations: 0 / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.662e-05/0.3248, allocations: 7.406 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.3248, allocations: 3.281 kB / 438.4 MB, free: 37.43 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw: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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.3249, allocations: 121.3 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.3249, allocations: 6.438 kB / 438.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.37e-05/0.325, allocations: 14.72 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.325, allocations: 0 / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.325, allocations: 0 / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.325, allocations: 11.39 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.3251, allocations: 163.1 kB / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3251, allocations: 192 / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.202e-05/0.3252, allocations: 23.19 kB / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3252, allocations: 0 / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3252, allocations: 7.922 kB / 438.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3252, allocations: 0 / 438.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3252, allocations: 3.328 kB / 438.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.3254, allocations: 173 kB / 439 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.254e-05/0.3254, allocations: 83.48 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.3254, allocations: 0 / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.11e-05/0.3255, allocations: 0 / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.3255, allocations: 3.094 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.3255, allocations: 0 / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.459e-05/0.3256, allocations: 98.47 kB / 439.1 MB, free: 36.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3256, allocations: 0 / 439.1 MB, free: 36.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002117/0.3258, allocations: 14.22 kB / 439.1 MB, free: 36.74 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.866e-05/0.3259, allocations: 98.75 kB / 439.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.326, allocations: 36.86 kB / 439.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.326, allocations: 0 / 439.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.004e-05/0.326, allocations: 13.69 kB / 439.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.3262, allocations: 7.875 kB / 439.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002776/0.3265, allocations: 163.9 kB / 439.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.3266, allocations: 0.6873 MB / 440.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.678e-05/0.3267, allocations: 0 / 440.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.3267, allocations: 11.41 kB / 440.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3267, allocations: 0 / 440.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of Templates: time 0.002144/0.3289, allocations: 415.5 kB / 440.6 MB, free: 35.73 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)