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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 109.9 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1002/0.1002, allocations: 22.7 MB / 325.4 MB, free: 3.539 MB / 254.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 71.88 kB / 457.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1268, allocations: 58.02 MB / 0.5031 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001817/0.1286, allocations: 0.5673 MB / 0.5037 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001573/0.1288, allocations: 35.81 kB / 0.5037 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.937e-05/0.1288, allocations: 0 / 0.5037 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/0.1288, allocations: 7.938 kB / 0.5037 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.359e-05/0.1289, allocations: 3.938 kB / 0.5037 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001047/0.129, allocations: 7.984 kB / 0.5037 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.1291, allocations: 35.84 kB / 0.5037 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.602e-05/0.1292, allocations: 4 kB / 0.5038 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.828e-05/0.1292, allocations: 11.94 kB / 0.5038 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.38e-05/0.1293, allocations: 23.89 kB / 0.5038 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.1293, allocations: 0 / 0.5038 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.115e-05/0.1293, allocations: 4 kB / 0.5038 GB, free: 6.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.1293, allocations: 7.938 kB / 0.5038 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.1294, allocations: 19.86 kB / 0.5038 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.953e-05/0.1294, allocations: 19.86 kB / 0.5038 GB, free: 6.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1294, allocations: 0 / 0.5038 GB, free: 6.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1294, allocations: 4 kB / 0.5038 GB, free: 6.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.1294, allocations: 0 / 0.5038 GB, free: 6.898 MB / 382.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.0005428/0.13, allocations: 355.3 kB / 0.5042 GB, free: 6.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.13, allocations: 16.02 kB / 0.5042 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.1301, allocations: 42.69 kB / 0.5042 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.283e-05/0.1301, allocations: 0.9375 kB / 0.5042 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.1302, allocations: 176.3 kB / 0.5044 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1303, allocations: 384 / 0.5044 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.1303, allocations: 4.375 kB / 0.5044 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.1304, allocations: 54.23 kB / 0.5045 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1304, allocations: 3.938 kB / 0.5045 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.1304, allocations: 0 / 0.5045 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1304, allocations: 0 / 0.5045 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.511e-05/0.1305, allocations: 15.94 kB / 0.5045 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004834/0.1309, allocations: 284.7 kB / 0.5047 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.1311, allocations: 50.5 kB / 0.5048 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.494e-05/0.1312, allocations: 12.86 kB / 0.5048 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.1312, allocations: 0 / 0.5048 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1312, allocations: 38.56 kB / 0.5048 GB, free: 5.691 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.1312, allocations: 0 / 0.5048 GB, free: 5.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.000187/0.1314, allocations: 65.67 kB / 0.5049 GB, free: 5.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1314, allocations: 59.39 kB / 0.505 GB, free: 5.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.1316, allocations: 117.8 kB / 0.5051 GB, free: 5.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1316, allocations: 25.7 kB / 0.5051 GB, free: 5.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/0.1317, allocations: 96.08 kB / 0.5052 GB, free: 5.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.1317, allocations: 7.906 kB / 0.5052 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.1317, allocations: 21.72 kB / 0.5052 GB, free: 5.262 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1319, allocations: 326.8 kB / 0.5055 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.577e-05/0.1319, allocations: 8 kB / 0.5055 GB, free: 4.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.761e-05/0.1319, allocations: 25.7 kB / 0.5056 GB, free: 4.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.1322, allocations: 85.69 kB / 0.5056 GB, free: 4.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1322, allocations: 4 kB / 0.5057 GB, free: 4.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001245/0.1323, allocations: 77.58 kB / 0.5057 GB, free: 4.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.1324, allocations: 4 kB / 0.5057 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1324, allocations: 0 / 0.5057 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1324, allocations: 4 kB / 0.5057 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.1325, allocations: 19.98 kB / 0.5058 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1325, allocations: 0 / 0.5058 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.1325, allocations: 3.953 kB / 0.5058 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1325, allocations: 4 kB / 0.5058 GB, free: 4.684 MB / 382.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.0001647/0.1327, allocations: 126.5 kB / 0.5059 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.1327, allocations: 64 / 0.5059 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.1327, allocations: 15.91 kB / 0.5059 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1327, allocations: 0 / 0.5059 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1328, allocations: 3.984 kB / 0.5059 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1328, allocations: 3.938 kB / 0.5059 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.1329, allocations: 169.6 kB / 0.5061 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1329, allocations: 7.875 kB / 0.5061 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.1331, allocations: 19.98 kB / 0.5061 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1331, allocations: 0 / 0.5061 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.1331, allocations: 0 / 0.5061 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1331, allocations: 0 / 0.5061 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1331, allocations: 192 / 0.5061 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.1333, allocations: 175.4 kB / 0.5063 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.1334, allocations: 81.06 kB / 0.5063 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.1334, allocations: 0 / 0.5063 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.1334, allocations: 4.094 kB / 0.5063 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1334, allocations: 4 kB / 0.5063 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1334, allocations: 0 / 0.5063 GB, free: 3.988 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.889e-05/0.1335, allocations: 99.27 kB / 0.5064 GB, free: 3.891 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1335, allocations: 0 / 0.5064 GB, free: 3.891 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002123/0.1337, allocations: 11.94 kB / 0.5065 GB, free: 3.879 MB / 382.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.0005255/0.1343, allocations: 0.7007 MB / 0.5071 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.1344, allocations: 35.92 kB / 0.5072 GB, free: 3.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1344, allocations: 0 / 0.5072 GB, free: 3.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.269e-05/0.1344, allocations: 12 kB / 0.5072 GB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.1346, allocations: 4.75 kB / 0.5072 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.1359, allocations: 1.359 MB / 0.5085 GB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.1363, allocations: 0.6924 MB / 0.5092 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.507e-05/0.1363, allocations: 0 / 0.5092 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.1364, allocations: 15.44 kB / 0.5092 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1364, allocations: 3.938 kB / 0.5092 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2603/0.3967, allocations: 1.474 MB / 0.5106 GB, free: 15.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.15, allocations: 2 kB / 0.5106 GB, free: 15.28 MB / 382.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M2_PhasorDomain_fmu --startTime=0 --stopTime=864000 --stepSize=21.4925 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.937589333858341] Failed to read output from testmodel.py, exit status != 0: 8.216055016033351 8.231027133 8.09854281 Calling exit ...