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.001308/0.001308, allocations: 109.8 kB / 16.41 MB, free: 6.461 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.00127/0.00127, allocations: 187 kB / 17.34 MB, free: 5.719 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08888/0.08888, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.89 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1098, allocations: 54.95 MB / 492.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001662/0.1116, allocations: 0.5737 MB / 493.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001706/0.1117, allocations: 31.83 kB / 493.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.862e-05/0.1118, allocations: 0 / 493.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.1118, allocations: 7.938 kB / 493.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.704e-05/0.1119, allocations: 7.922 kB / 493.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001188/0.112, allocations: 15.92 kB / 493.3 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.581e-05/0.1121, allocations: 23.92 kB / 493.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.809e-05/0.1121, allocations: 4 kB / 493.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.381e-05/0.1122, allocations: 23.91 kB / 493.3 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.1123, allocations: 15.86 kB / 493.4 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.1123, allocations: 4 kB / 493.4 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1123, allocations: 0 / 493.4 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.42e-05/0.1123, allocations: 15.98 kB / 493.4 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.1124, allocations: 11.88 kB / 493.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.252e-05/0.1125, allocations: 23.89 kB / 493.4 MB, free: 4.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1125, allocations: 3.938 kB / 493.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1125, allocations: 0 / 493.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1125, allocations: 0 / 493.4 MB, free: 4.031 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.0004682/0.113, allocations: 355.3 kB / 493.8 MB, free: 3.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.113, allocations: 12.03 kB / 493.8 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.309e-05/0.1131, allocations: 8.844 kB / 493.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.1132, allocations: 172.3 kB / 494 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.1132, allocations: 8.359 kB / 494 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.1132, allocations: 4.281 kB / 494 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.1134, allocations: 54.19 kB / 494 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1134, allocations: 192 / 494 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.1134, allocations: 3.938 kB / 494 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.1134, allocations: 3.938 kB / 494 MB, free: 3.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.797e-05/0.1134, allocations: 19.98 kB / 494.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004084/0.1139, allocations: 268.9 kB / 494.3 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.114, allocations: 50.5 kB / 494.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.92e-05/0.1141, allocations: 16.86 kB / 494.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.1141, allocations: 0 / 494.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.1141, allocations: 30.66 kB / 494.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.1142, allocations: 0 / 494.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001922/0.1144, allocations: 73.58 kB / 494.5 MB, free: 2.801 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1144, allocations: 55.41 kB / 494.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.417e-05/0.1145, allocations: 117.8 kB / 494.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.1145, allocations: 25.7 kB / 494.7 MB, free: 2.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.1146, allocations: 96.05 kB / 494.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.1146, allocations: 19.73 kB / 494.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1146, allocations: 21.7 kB / 494.8 MB, free: 2.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1148, allocations: 318.8 kB / 495.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.866e-05/0.1148, allocations: 12 kB / 495.1 MB, free: 2.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.378e-05/0.1148, allocations: 25.7 kB / 495.2 MB, free: 2.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.1151, allocations: 73.69 kB / 495.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1151, allocations: 4 kB / 495.2 MB, free: 1.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000107/0.1152, allocations: 81.47 kB / 495.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.1153, allocations: 8 kB / 495.3 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1153, allocations: 0 / 495.3 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1153, allocations: 0 / 495.3 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.886e-05/0.1154, allocations: 19.98 kB / 495.3 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1154, allocations: 0 / 495.3 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.822e-05/0.1154, allocations: 7.938 kB / 495.3 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.1155, allocations: 4 kB / 495.4 MB, free: 1.863 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.0001554/0.1156, allocations: 130.5 kB / 495.5 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.1156, allocations: 7.906 kB / 495.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.632e-05/0.1157, allocations: 11.89 kB / 495.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1157, allocations: 4 kB / 495.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1157, allocations: 0 / 495.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1157, allocations: 0 / 495.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.1159, allocations: 169.6 kB / 495.7 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1159, allocations: 0 / 495.7 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-05/0.116, allocations: 12 kB / 495.7 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.116, allocations: 4 kB / 495.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.116, allocations: 4.188 kB / 495.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.116, allocations: 0 / 495.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.116, allocations: 0 / 495.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001716/0.1162, allocations: 175.3 kB / 495.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.1162, allocations: 85.08 kB / 495.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.1163, allocations: 0 / 495.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.091e-05/0.1163, allocations: 0 / 495.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.1164, allocations: 11.98 kB / 496 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1164, allocations: 4.062 kB / 496 MB, free: 1.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.837e-05/0.1164, allocations: 95.64 kB / 496.1 MB, free: 1.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1164, allocations: 4 kB / 496.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002102/0.1166, allocations: 7.906 kB / 496.1 MB, free: 1.055 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.794e-05/0.1167, allocations: 95.25 kB / 496.2 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.1169, allocations: 35.92 kB / 496.2 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.1169, allocations: 0 / 496.2 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.055e-05/0.1169, allocations: 20 kB / 496.2 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.1171, allocations: 15.92 kB / 496.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003214/0.1174, allocations: 176 kB / 496.4 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.1177, allocations: 0.6885 MB / 497.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.704e-05/0.1177, allocations: 7.438 kB / 497.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1178, allocations: 0 / 497.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Templates: time 0.001912/0.1197, allocations: 0.7345 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)