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.001369/0.001368, allocations: 100.1 kB / 15.88 MB, free: 12 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.001421/0.001421, allocations: 200.6 kB / 16.79 MB, free: 6.809 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.309/1.309, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1861/0.1861, allocations: 22.35 MB / 313 MB, free: 12.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.89 kB / 380.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2483, allocations: 54.93 MB / 435.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001685/0.25, allocations: 0.6205 MB / 436.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001453/0.2502, allocations: 34.83 kB / 436.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.392e-05/0.2502, allocations: 0 / 436.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.2502, allocations: 0 / 436.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.974e-05/0.2503, allocations: 6.688 kB / 436.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001038/0.2504, allocations: 7.234 kB / 436.4 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.134e-05/0.2505, allocations: 32.41 kB / 436.4 MB, free: 39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.926e-05/0.2505, allocations: 13.34 kB / 436.4 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.213e-05/0.2505, allocations: 10.25 kB / 436.4 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.215e-05/0.2506, allocations: 24.64 kB / 436.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.2506, allocations: 0 / 436.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.2507, allocations: 2.906 kB / 436.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.2507, allocations: 7.938 kB / 436.5 MB, free: 38.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.2507, allocations: 21.19 kB / 436.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.605e-05/0.2508, allocations: 10.25 kB / 436.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2508, allocations: 0 / 436.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2508, allocations: 0 / 436.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2508, allocations: 4 kB / 436.5 MB, free: 38.95 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.000395/0.2512, allocations: 358.6 kB / 436.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2512, allocations: 12.88 kB / 436.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.203e-05/0.2513, allocations: 10.16 kB / 436.9 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.739e-05/0.2513, allocations: 178.7 kB / 437 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.2514, allocations: 4.375 kB / 437 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.2514, allocations: 14.31 kB / 437.1 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.2515, allocations: 48.23 kB / 437.1 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.2515, allocations: 192 / 437.1 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.2515, allocations: 3.938 kB / 437.1 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.2515, allocations: 2.656 kB / 437.1 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.26e-05/0.2516, allocations: 15.72 kB / 437.1 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.2519, allocations: 278.6 kB / 437.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.2521, allocations: 51.95 kB / 437.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.094e-05/0.2522, allocations: 20.53 kB / 437.5 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.2522, allocations: 2.844 kB / 437.5 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.3e-05/0.2522, allocations: 30.56 kB / 437.5 MB, free: 37.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.2522, allocations: 0 / 437.5 MB, free: 37.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001694/0.2524, allocations: 69.03 kB / 437.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.2524, allocations: 51.41 kB / 437.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.929e-05/0.2525, allocations: 126.7 kB / 437.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.2525, allocations: 29.7 kB / 437.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.2525, allocations: 91.33 kB / 437.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.2525, allocations: 23 kB / 437.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.2526, allocations: 16.84 kB / 437.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.2526, allocations: 320.9 kB / 438.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.324e-05/0.2527, allocations: 5 kB / 438.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.935e-05/0.2527, allocations: 25.72 kB / 438.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.253, allocations: 88.28 kB / 438.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.253, allocations: 0 / 438.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.593e-05/0.2531, allocations: 69.17 kB / 438.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2531, allocations: 6.406 kB / 438.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2531, allocations: 0 / 438.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2531, allocations: 2.812 kB / 438.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.184e-05/0.2532, allocations: 28.03 kB / 438.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2532, allocations: 3.469 kB / 438.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.027e-05/0.2533, allocations: 2.875 kB / 438.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.2533, allocations: 2.656 kB / 438.4 MB, free: 37.11 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.0001406/0.2534, allocations: 120.7 kB / 438.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.2535, allocations: 6.844 kB / 438.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.2535, allocations: 7.906 kB / 438.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2535, allocations: 4 kB / 438.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2535, allocations: 5.594 kB / 438.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2535, allocations: 0 / 438.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.2537, allocations: 164.6 kB / 438.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2537, allocations: 3.938 kB / 438.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.543e-05/0.2538, allocations: 17.06 kB / 438.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2538, allocations: 3.031 kB / 438.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.2538, allocations: 4 kB / 438.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2538, allocations: 3.281 kB / 438.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2538, allocations: 3.984 kB / 438.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.2539, allocations: 177.2 kB / 438.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.07e-05/0.254, allocations: 80.39 kB / 439 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.254, allocations: 2.625 kB / 439 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.561e-05/0.2541, allocations: 3.938 kB / 439 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/0.2541, allocations: 2.531 kB / 439 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.2541, allocations: 0 / 439 MB, free: 36.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.332e-05/0.2541, allocations: 93.12 kB / 439.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2541, allocations: 0 / 439.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002136/0.2543, allocations: 21.16 kB / 439.1 MB, free: 36.41 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.51e-05/0.2544, allocations: 93.59 kB / 439.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.701e-05/0.2545, allocations: 38.31 kB / 439.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2545, allocations: 0 / 439.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.989e-05/0.2545, allocations: 12.38 kB / 439.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.2548, allocations: 9.703 kB / 439.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002857/0.2551, allocations: 197.5 kB / 439.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.194e-05/0.2552, allocations: 0.6913 MB / 440.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.8e-05/0.2552, allocations: 10.25 kB / 440.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2552, allocations: 0 / 440.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of Templates: time 0.001719/0.2569, allocations: 0.7255 MB / 440.9 MB, free: 35.38 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)