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.001013/0.001013, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.001034/0.001034, allocations: 187 kB / 17.34 MB, free: 5.75 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09069/0.09069, allocations: 22.33 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 67.89 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 54.95 MB / 492.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001867/0.1125, allocations: 0.567 MB / 493.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001705/0.1127, allocations: 39.83 kB / 493.3 MB, free: 4.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.481e-05/0.1127, allocations: 0 / 493.3 MB, free: 4.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.11e-05/0.1128, allocations: 3.938 kB / 493.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.942e-05/0.1128, allocations: 7.922 kB / 493.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001155/0.113, allocations: 7.984 kB / 493.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.037e-05/0.113, allocations: 27.92 kB / 493.3 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.889e-05/0.1131, allocations: 4 kB / 493.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.1132, allocations: 19.91 kB / 493.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.368e-05/0.1132, allocations: 23.86 kB / 493.4 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.1133, allocations: 4 kB / 493.4 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.148e-05/0.1133, allocations: 0 / 493.4 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.1133, allocations: 11.92 kB / 493.4 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.1134, allocations: 11.88 kB / 493.4 MB, free: 4.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.149e-05/0.1134, allocations: 31.83 kB / 493.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1134, allocations: 0 / 493.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1135, allocations: 0 / 493.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1135, allocations: 3.938 kB / 493.4 MB, free: 4.043 MB / 366.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.0004616/0.1139, allocations: 359.3 kB / 493.8 MB, free: 3.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.114, allocations: 8.031 kB / 493.8 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.338e-05/0.114, allocations: 8.844 kB / 493.8 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1142, allocations: 172.3 kB / 494 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1142, allocations: 384 / 494 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.1142, allocations: 12.28 kB / 494 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.1143, allocations: 42.25 kB / 494 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1143, allocations: 4.188 kB / 494 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.1144, allocations: 11.94 kB / 494 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1144, allocations: 4 kB / 494 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.803e-05/0.1144, allocations: 19.92 kB / 494.1 MB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004201/0.1149, allocations: 264.9 kB / 494.3 MB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.1151, allocations: 50.56 kB / 494.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.638e-05/0.1151, allocations: 16.86 kB / 494.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.1151, allocations: 0 / 494.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.1152, allocations: 42.58 kB / 494.4 MB, free: 2.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.1152, allocations: 0 / 494.4 MB, free: 2.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002166/0.1154, allocations: 61.59 kB / 494.5 MB, free: 2.816 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.1154, allocations: 51.41 kB / 494.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.718e-05/0.1155, allocations: 118.2 kB / 494.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.1156, allocations: 29.7 kB / 494.7 MB, free: 2.594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.1156, allocations: 96.11 kB / 494.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.1156, allocations: 19.73 kB / 494.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.1157, allocations: 25.7 kB / 494.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.1158, allocations: 314.8 kB / 495.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.144e-05/0.1158, allocations: 15.98 kB / 495.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.751e-05/0.1159, allocations: 21.72 kB / 495.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002911/0.1162, allocations: 81.5 kB / 495.2 MB, free: 2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1162, allocations: 0 / 495.2 MB, free: 2 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000126/0.1163, allocations: 77.53 kB / 495.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1163, allocations: 10.5 kB / 495.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1163, allocations: 0 / 495.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1164, allocations: 0 / 495.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.292e-05/0.1165, allocations: 19.98 kB / 495.3 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1165, allocations: 0 / 495.3 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.217e-05/0.1165, allocations: 4 kB / 495.3 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.1165, allocations: 0 / 495.3 MB, free: 1.887 MB / 366.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.0001653/0.1167, allocations: 134.4 kB / 495.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.1168, allocations: 15.83 kB / 495.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.1168, allocations: 7.906 kB / 495.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1168, allocations: 0 / 495.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1168, allocations: 0 / 495.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1168, allocations: 4 kB / 495.5 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.117, allocations: 165.6 kB / 495.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.117, allocations: 4 kB / 495.7 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.947e-05/0.1171, allocations: 12 kB / 495.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1171, allocations: 192 / 495.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1171, allocations: 12.06 kB / 495.7 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1171, allocations: 0 / 495.7 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1171, allocations: 4.141 kB / 495.7 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.1173, allocations: 167.4 kB / 495.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.1174, allocations: 81.14 kB / 495.9 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.1174, allocations: 4.062 kB / 495.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.538e-05/0.1175, allocations: 0 / 495.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.1175, allocations: 7.922 kB / 495.9 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.1175, allocations: 4 kB / 496 MB, free: 1.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.1176, allocations: 99.31 kB / 496 MB, free: 1.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1176, allocations: 0 / 496 MB, free: 1.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002188/0.1178, allocations: 11.91 kB / 496.1 MB, free: 1.07 MB / 366.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 8.448e-05/0.1179, allocations: 95.25 kB / 496.2 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.118, allocations: 43.91 kB / 496.2 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.118, allocations: 0 / 496.2 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.266e-05/0.118, allocations: 15.94 kB / 496.2 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.1183, allocations: 7.922 kB / 496.2 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003322/0.1186, allocations: 184 kB / 496.4 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.1188, allocations: 0.6885 MB / 497.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.1189, allocations: 7.5 kB / 497.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1189, allocations: 4 kB / 497.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of Templates: time 0.00203/0.1209, allocations: 0.7422 MB / 497.8 MB, free: 15.22 MB / 382.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)