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.001153/0.001153, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001391/0.001391, allocations: 191.7 kB / 16.25 MB, free: 6.633 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.322/1.322, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2191/0.2191, allocations: 22.36 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.88 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.301, allocations: 54.93 MB / 435.2 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001563/0.3026, allocations: 0.6268 MB / 435.9 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001366/0.3027, allocations: 35.95 kB / 435.9 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.3028, allocations: 0 / 435.9 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.3028, allocations: 0 / 435.9 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.247e-05/0.3029, allocations: 7.938 kB / 435.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.649e-05/0.303, allocations: 11.2 kB / 435.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.474e-05/0.303, allocations: 29.5 kB / 435.9 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.237e-05/0.3031, allocations: 7.844 kB / 435.9 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.575e-05/0.3031, allocations: 20.61 kB / 436 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.656e-05/0.3032, allocations: 16.25 kB / 436 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.3032, allocations: 2.562 kB / 436 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.3032, allocations: 2.781 kB / 436 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.3033, allocations: 7.172 kB / 436 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.3033, allocations: 18.03 kB / 436 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.12e-05/0.3033, allocations: 20.69 kB / 436 MB, free: 39.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3033, allocations: 3.328 kB / 436 MB, free: 39.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3034, allocations: 0 / 436 MB, free: 39.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.3034, allocations: 2.812 kB / 436 MB, free: 39.41 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.0003747/0.3037, allocations: 362.8 kB / 436.4 MB, free: 39.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.3038, allocations: 7.656 kB / 436.4 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.337e-05/0.3038, allocations: 12.81 kB / 436.4 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.332e-05/0.3039, allocations: 170.6 kB / 436.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3039, allocations: 4.375 kB / 436.6 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.3039, allocations: 11.03 kB / 436.6 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.304, allocations: 52.45 kB / 436.6 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.3041, allocations: 192 / 436.6 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3041, allocations: 3.938 kB / 436.6 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3041, allocations: 3.938 kB / 436.7 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.067e-05/0.3041, allocations: 15.25 kB / 436.7 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003213/0.3045, allocations: 282.5 kB / 436.9 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.3046, allocations: 55.97 kB / 437 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.794e-05/0.3047, allocations: 18.61 kB / 437 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.3047, allocations: 0 / 437 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.425e-05/0.3047, allocations: 30.56 kB / 437 MB, free: 38.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.3047, allocations: 0 / 437 MB, free: 38.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001503/0.3049, allocations: 69.16 kB / 437.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/0.3049, allocations: 55.41 kB / 437.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.473e-05/0.3049, allocations: 121.1 kB / 437.3 MB, free: 38.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-06/0.305, allocations: 25.7 kB / 437.3 MB, free: 38.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.305, allocations: 90.83 kB / 437.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/0.305, allocations: 22.23 kB / 437.4 MB, free: 38.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.305, allocations: 16.69 kB / 437.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.973e-05/0.3051, allocations: 317 kB / 437.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.328e-05/0.3051, allocations: 13.92 kB / 437.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.835e-05/0.3052, allocations: 33.56 kB / 437.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.3054, allocations: 75.09 kB / 437.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3054, allocations: 0 / 437.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.276e-05/0.3055, allocations: 73.84 kB / 437.9 MB, free: 37.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.3055, allocations: 9.594 kB / 437.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3055, allocations: 0 / 437.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.3056, allocations: 0 / 437.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.09e-05/0.3057, allocations: 23.75 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3057, allocations: 2.781 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.053e-05/0.3057, allocations: 0 / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.3057, allocations: 6.812 kB / 438 MB, free: 37.57 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.0001228/0.3059, allocations: 120.2 kB / 438.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.3059, allocations: 6.531 kB / 438.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.543e-05/0.3059, allocations: 13.7 kB / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3059, allocations: 0 / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3059, allocations: 3.938 kB / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3059, allocations: 0 / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.3061, allocations: 170.4 kB / 438.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3061, allocations: 6.969 kB / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.68e-05/0.3062, allocations: 14.62 kB / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3062, allocations: 0 / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.3062, allocations: 6.656 kB / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3062, allocations: 7.938 kB / 438.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3062, allocations: 0 / 438.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.3064, allocations: 167.8 kB / 438.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.949e-05/0.3064, allocations: 77.11 kB / 438.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.3064, allocations: 6.438 kB / 438.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.574e-05/0.3065, allocations: 0 / 438.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.193e-05/0.3065, allocations: 2.656 kB / 438.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.3065, allocations: 3.438 kB / 438.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.3e-05/0.3065, allocations: 98.56 kB / 438.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3065, allocations: 0 / 438.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.3068, allocations: 15.75 kB / 438.7 MB, free: 36.88 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.084e-05/0.3068, allocations: 94.78 kB / 438.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.3069, allocations: 35.73 kB / 438.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3069, allocations: 0 / 438.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.799e-05/0.307, allocations: 8.781 kB / 438.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.3072, allocations: 19.22 kB / 438.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002608/0.3074, allocations: 171.2 kB / 439 MB, free: 36.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.3076, allocations: 0.6872 MB / 439.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.895e-05/0.3076, allocations: 6.938 kB / 439.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.384e-05/0.3076, allocations: 7.438 kB / 439.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3076, allocations: 0 / 439.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of Templates: time 0.002051/0.3097, allocations: 421 kB / 440.1 MB, free: 35.84 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)