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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 205.7 kB / 23.01 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1081/0.1081, allocations: 24.03 MB / 337.2 MB, free: 11.35 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 71.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3374, allocations: 59.58 MB / 0.5209 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.00235/0.3397, allocations: 0.5593 MB / 0.5215 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002243/0.3399, allocations: 24.17 kB / 0.5215 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.34, allocations: 1 kB / 0.5215 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.34, allocations: 3.938 kB / 0.5215 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.3401, allocations: 5.828 kB / 0.5215 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001816/0.3403, allocations: 13.17 kB / 0.5215 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.3404, allocations: 32.23 kB / 0.5215 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.66e-05/0.3405, allocations: 2.562 kB / 0.5215 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.609e-05/0.3406, allocations: 18.89 kB / 0.5216 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.3407, allocations: 23.08 kB / 0.5216 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.3407, allocations: 1.25 kB / 0.5216 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.3407, allocations: 2.406 kB / 0.5216 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.3407, allocations: 6.875 kB / 0.5216 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.3408, allocations: 12.77 kB / 0.5216 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.3409, allocations: 24.48 kB / 0.5216 GB, free: 9.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3409, allocations: 0 / 0.5216 GB, free: 9.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3409, allocations: 5.312 kB / 0.5216 GB, free: 9.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.3409, allocations: 0 / 0.5216 GB, free: 9.637 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.0005193/0.3414, allocations: 289 kB / 0.5219 GB, free: 9.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.3415, allocations: 9.891 kB / 0.5219 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.522e-05/0.3415, allocations: 32.91 kB / 0.5219 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.3416, allocations: 8.656 kB / 0.5219 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.3417, allocations: 110.6 kB / 0.5221 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3417, allocations: 3.438 kB / 0.5221 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.3417, allocations: 11.11 kB / 0.5221 GB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.3419, allocations: 54.3 kB / 0.5221 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3419, allocations: 3.938 kB / 0.5221 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3419, allocations: 4 kB / 0.5221 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3419, allocations: 5.469 kB / 0.5221 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.034e-05/0.342, allocations: 15.55 kB / 0.5221 GB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.3425, allocations: 239.8 kB / 0.5224 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.3427, allocations: 51.89 kB / 0.5224 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.057e-05/0.3428, allocations: 16.06 kB / 0.5224 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.3428, allocations: 1.188 kB / 0.5224 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.3428, allocations: 32.41 kB / 0.5225 GB, free: 8.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3428, allocations: 0 / 0.5225 GB, free: 8.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002625/0.3431, allocations: 62.08 kB / 0.5225 GB, free: 8.742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.3431, allocations: 57.19 kB / 0.5226 GB, free: 8.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3433, allocations: 125.3 kB / 0.5227 GB, free: 8.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3433, allocations: 25.7 kB / 0.5227 GB, free: 8.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.3434, allocations: 96.52 kB / 0.5228 GB, free: 8.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.3434, allocations: 20.2 kB / 0.5228 GB, free: 8.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.3434, allocations: 19.52 kB / 0.5229 GB, free: 8.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3436, allocations: 324.2 kB / 0.5232 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.53e-05/0.3436, allocations: 6.031 kB / 0.5232 GB, free: 8.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.778e-05/0.3437, allocations: 27.69 kB / 0.5232 GB, free: 8.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.3441, allocations: 78.3 kB / 0.5233 GB, free: 8.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3441, allocations: 0 / 0.5233 GB, free: 8.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001535/0.3442, allocations: 73.19 kB / 0.5233 GB, free: 7.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3442, allocations: 5.438 kB / 0.5234 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3442, allocations: 0 / 0.5234 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/0.3443, allocations: 1.797 kB / 0.5234 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3444, allocations: 17.97 kB / 0.5234 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3444, allocations: 1.938 kB / 0.5234 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.622e-05/0.3445, allocations: 22.55 kB / 0.5234 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.3445, allocations: 1.5 kB / 0.5234 GB, free: 7.957 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.0002568/0.3447, allocations: 123.3 kB / 0.5235 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.3448, allocations: 10.61 kB / 0.5235 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.3448, allocations: 6.656 kB / 0.5235 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3448, allocations: 1.281 kB / 0.5235 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3448, allocations: 0.5156 kB / 0.5235 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3448, allocations: 0 / 0.5235 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.345, allocations: 147.1 kB / 0.5237 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.345, allocations: 1.625 kB / 0.5237 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.3451, allocations: 14.41 kB / 0.5237 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3451, allocations: 0.6094 kB / 0.5237 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3451, allocations: 1.5 kB / 0.5237 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3451, allocations: 3.938 kB / 0.5237 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3451, allocations: 0.6094 kB / 0.5237 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.3453, allocations: 175.4 kB / 0.5239 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.567e-05/0.3453, allocations: 3.688 kB / 0.5239 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.3453, allocations: 5.078 kB / 0.5239 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.02e-05/0.3454, allocations: 1.516 kB / 0.5239 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.3454, allocations: 6.812 kB / 0.5239 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.3454, allocations: 1.922 kB / 0.5239 GB, free: 7.477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.217e-05/0.3455, allocations: 97.84 kB / 0.524 GB, free: 7.395 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3455, allocations: 0 / 0.524 GB, free: 7.395 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.3457, allocations: 11.72 kB / 0.524 GB, free: 7.391 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.0003838/0.3461, allocations: 0.6994 MB / 0.5247 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.3463, allocations: 32 kB / 0.5247 GB, free: 6.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3463, allocations: 0 / 0.5247 GB, free: 6.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.613e-05/0.3463, allocations: 21.55 kB / 0.5247 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3465, allocations: 7.438 kB / 0.5247 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.3475, allocations: 1.355 MB / 0.526 GB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.248e-05/0.3476, allocations: 69.58 kB / 0.5261 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.978e-05/0.3476, allocations: 2.516 kB / 0.5261 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.3477, allocations: 19.33 kB / 0.5261 GB, free: 5.348 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3477, allocations: 4 kB / 0.5261 GB, free: 5.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02817/0.3758, allocations: 1.968 MB / 0.5281 GB, free: 4.535 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.79, allocations: 6.234 kB / 0.5281 GB, free: 4.535 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.641393294092268] Failed to read output from testmodel.py, exit status != 0: 11.90374145610258 11.92837218 11.582744906 Calling exit ...