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.005946/0.005946, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001659/0.001659, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2173/0.2173, allocations: 22.35 MB / 312.9 MB, free: 12.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 64.09 kB / 437 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1249, allocations: 54.96 MB / 492 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.00166/0.1267, allocations: 0.5854 MB / 492.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001816/0.1269, allocations: 31.83 kB / 492.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.812e-05/0.1269, allocations: 0 / 492.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.972e-05/0.1269, allocations: 0 / 492.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.939e-05/0.127, allocations: 11.86 kB / 492.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001245/0.1272, allocations: 11.98 kB / 492.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.603e-05/0.1273, allocations: 31.86 kB / 492.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.416e-05/0.1273, allocations: 4 kB / 492.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.896e-05/0.1274, allocations: 19.92 kB / 492.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.239e-05/0.1275, allocations: 15.92 kB / 492.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.1275, allocations: 4 kB / 492.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1275, allocations: 0 / 492.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.1275, allocations: 15.91 kB / 492.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.1276, allocations: 11.88 kB / 492.7 MB, free: 492 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.125e-05/0.1277, allocations: 23.91 kB / 492.8 MB, free: 468 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1277, allocations: 0 / 492.8 MB, free: 468 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1277, allocations: 0 / 492.8 MB, free: 468 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1277, allocations: 0 / 492.8 MB, free: 468 kB / 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.0003921/0.1281, allocations: 359.3 kB / 493.1 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.1281, allocations: 12.03 kB / 493.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.1282, allocations: 4.844 kB / 493.1 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.1283, allocations: 164.4 kB / 493.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1283, allocations: 8.375 kB / 493.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.1284, allocations: 8.312 kB / 493.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.1285, allocations: 58.22 kB / 493.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.1285, allocations: 4.125 kB / 493.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.1285, allocations: 3.938 kB / 493.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1286, allocations: 0 / 493.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.942e-05/0.1286, allocations: 16 kB / 493.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004824/0.1291, allocations: 280.7 kB / 493.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.1293, allocations: 58.48 kB / 493.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.761e-05/0.1294, allocations: 16.86 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.1294, allocations: 0 / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.1294, allocations: 34.5 kB / 493.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.1294, allocations: 0 / 493.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002048/0.1296, allocations: 65.67 kB / 493.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1297, allocations: 55.41 kB / 493.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1298, allocations: 125.8 kB / 494 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.1298, allocations: 25.7 kB / 494 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.1299, allocations: 92.03 kB / 494.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1299, allocations: 15.81 kB / 494.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.445e-05/0.13, allocations: 17.72 kB / 494.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1301, allocations: 322.8 kB / 494.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.254e-05/0.1302, allocations: 4 kB / 494.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-05/0.1302, allocations: 29.7 kB / 494.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.1305, allocations: 73.56 kB / 494.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1305, allocations: 4 kB / 494.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000133/0.1307, allocations: 77.59 kB / 494.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1307, allocations: 8 kB / 494.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1307, allocations: 32 / 494.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1307, allocations: 4 kB / 494.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.1308, allocations: 19.98 kB / 494.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.1309, allocations: 3.938 kB / 494.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.196e-05/0.1309, allocations: 8 kB / 494.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.1309, allocations: 4 kB / 494.7 MB, free: 14.28 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.000195/0.1311, allocations: 120.6 kB / 494.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.1312, allocations: 11.91 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.1312, allocations: 11.89 kB / 494.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.1312, allocations: 4 kB / 494.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.1312, allocations: 0 / 494.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1312, allocations: 0 / 494.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1314, allocations: 165.6 kB / 495 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1315, allocations: 3.984 kB / 495 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1316, allocations: 12 kB / 495 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1316, allocations: 4 kB / 495 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.1316, allocations: 3.938 kB / 495 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1316, allocations: 0 / 495 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1316, allocations: 8.094 kB / 495 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.1318, allocations: 175.3 kB / 495.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.1319, allocations: 81.14 kB / 495.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.1319, allocations: 0 / 495.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.421e-05/0.132, allocations: 0 / 495.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.376e-05/0.132, allocations: 4 kB / 495.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.132, allocations: 3.984 kB / 495.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.749e-05/0.1321, allocations: 91.34 kB / 495.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1321, allocations: 4 kB / 495.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.1323, allocations: 8 kB / 495.4 MB, free: 13.48 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 0.0001225/0.1324, allocations: 99.23 kB / 495.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.1326, allocations: 39.91 kB / 495.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1326, allocations: 0 / 495.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.133e-05/0.1326, allocations: 8 kB / 495.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.1329, allocations: 11.94 kB / 495.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003602/0.1332, allocations: 158.5 kB / 495.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.1335, allocations: 0.6846 MB / 496.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.132e-05/0.1335, allocations: 8 kB / 496.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.1336, allocations: 7.438 kB / 496.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1336, allocations: 0 / 496.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of Templates: time 0.002441/0.136, allocations: 420.9 kB / 496.8 MB, free: 12 MB / 366.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)