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.001919/0.001919, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002581/0.002581, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1023/0.1023, allocations: 22.92 MB / 336.1 MB, free: 12.45 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="cs",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.002016/0.002016, allocations: 63.91 kB / 472.2 MB, free: 7.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3451, allocations: 59.29 MB / 0.519 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.00165/0.3467, allocations: 0.5663 MB / 0.5196 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001449/0.3468, allocations: 27.36 kB / 0.5196 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.3469, allocations: 0.7812 kB / 0.5196 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.3469, allocations: 0 / 0.5196 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.801e-05/0.347, allocations: 10.5 kB / 0.5196 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001062/0.3471, allocations: 13.55 kB / 0.5196 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.922e-05/0.3471, allocations: 28.47 kB / 0.5196 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.476e-05/0.3472, allocations: 10.39 kB / 0.5196 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.739e-05/0.3472, allocations: 13.97 kB / 0.5197 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.493e-05/0.3473, allocations: 23.02 kB / 0.5197 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.3473, allocations: 1.062 kB / 0.5197 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.068e-05/0.3473, allocations: 2.312 kB / 0.5197 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.653e-05/0.3473, allocations: 3.031 kB / 0.5197 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.796e-05/0.3474, allocations: 17.84 kB / 0.5197 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.181e-05/0.3474, allocations: 23.52 kB / 0.5197 GB, free: 10.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3475, allocations: 5.562 kB / 0.5197 GB, free: 10.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3475, allocations: 0 / 0.5197 GB, free: 10.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.3475, allocations: 0 / 0.5197 GB, free: 10.22 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.0003771/0.3478, allocations: 285.2 kB / 0.52 GB, free: 9.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3479, allocations: 15.05 kB / 0.52 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.609e-05/0.3479, allocations: 1.344 kB / 0.52 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.935e-05/0.3479, allocations: 33.03 kB / 0.52 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.3479, allocations: 7.672 kB / 0.5201 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.298e-05/0.348, allocations: 115.3 kB / 0.5202 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.348, allocations: 10.53 kB / 0.5202 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.348, allocations: 3.156 kB / 0.5202 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.3481, allocations: 53.83 kB / 0.5202 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.3481, allocations: 0 / 0.5202 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.3481, allocations: 4.562 kB / 0.5202 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3482, allocations: 1.219 kB / 0.5202 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.519e-05/0.3482, allocations: 16.08 kB / 0.5203 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003302/0.3485, allocations: 239.2 kB / 0.5205 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.3487, allocations: 49.56 kB / 0.5205 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.15e-05/0.3487, allocations: 19.11 kB / 0.5205 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.3487, allocations: 0 / 0.5205 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.117e-05/0.3488, allocations: 33.33 kB / 0.5206 GB, free: 9.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.433e-06/0.3488, allocations: 2.625 kB / 0.5206 GB, free: 9.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001853/0.3489, allocations: 66.52 kB / 0.5206 GB, free: 9.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.196e-05/0.349, allocations: 52.44 kB / 0.5207 GB, free: 9.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.141e-05/0.349, allocations: 121.9 kB / 0.5208 GB, free: 9.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.349, allocations: 25.7 kB / 0.5208 GB, free: 9.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.3491, allocations: 100.1 kB / 0.5209 GB, free: 9.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.226e-05/0.3491, allocations: 16.48 kB / 0.5209 GB, free: 9.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.3491, allocations: 22.92 kB / 0.521 GB, free: 8.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.65e-05/0.3492, allocations: 327.3 kB / 0.5213 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.587e-05/0.3492, allocations: 7.719 kB / 0.5213 GB, free: 8.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.14e-05/0.3492, allocations: 32.81 kB / 0.5213 GB, free: 8.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.3495, allocations: 79.72 kB / 0.5214 GB, free: 8.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3495, allocations: 1.156 kB / 0.5214 GB, free: 8.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001052/0.3496, allocations: 64.91 kB / 0.5215 GB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.3496, allocations: 5.906 kB / 0.5215 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.3496, allocations: 7.969 kB / 0.5215 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3496, allocations: 1.719 kB / 0.5215 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.961e-05/0.3497, allocations: 25.72 kB / 0.5215 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.3497, allocations: 1.672 kB / 0.5215 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.336e-05/0.3498, allocations: 9.891 kB / 0.5215 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.3498, allocations: 2 kB / 0.5215 GB, free: 8.539 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.0001175/0.3499, allocations: 119.6 kB / 0.5216 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.3499, allocations: 7.328 kB / 0.5216 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.406e-05/0.35, allocations: 14.47 kB / 0.5216 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.35, allocations: 0 / 0.5216 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.35, allocations: 1.188 kB / 0.5216 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.35, allocations: 0.75 kB / 0.5216 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.3501, allocations: 135.2 kB / 0.5218 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3501, allocations: 0 / 0.5218 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.3502, allocations: 15.33 kB / 0.5218 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3502, allocations: 0 / 0.5218 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.3502, allocations: 6.203 kB / 0.5218 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3502, allocations: 3.938 kB / 0.5218 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3502, allocations: 9.188 kB / 0.5218 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001297/0.3503, allocations: 167.9 kB / 0.522 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.3503, allocations: 2.188 kB / 0.522 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.3503, allocations: 6.062 kB / 0.522 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.914e-05/0.3504, allocations: 4 kB / 0.522 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.3504, allocations: 2.75 kB / 0.522 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.3504, allocations: 2.375 kB / 0.522 GB, free: 8.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.628e-05/0.3505, allocations: 97.62 kB / 0.5221 GB, free: 7.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3505, allocations: 0 / 0.5221 GB, free: 7.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.3507, allocations: 6.906 kB / 0.5221 GB, free: 7.988 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.0002505/0.3509, allocations: 0.7055 MB / 0.5228 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.744e-05/0.351, allocations: 29.73 kB / 0.5228 GB, free: 7.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.351, allocations: 1.125 kB / 0.5228 GB, free: 7.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.402e-05/0.3511, allocations: 17.98 kB / 0.5228 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.3513, allocations: 1.031 kB / 0.5228 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008405/0.3521, allocations: 1.363 MB / 0.5241 GB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.297e-05/0.3522, allocations: 69.08 kB / 0.5242 GB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.574e-05/0.3522, allocations: 7.562 kB / 0.5242 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.3522, allocations: 19.11 kB / 0.5242 GB, free: 5.941 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3522, allocations: 0 / 0.5242 GB, free: 5.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3736, allocations: 1.662 MB / 0.5259 GB, free: 5.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 4.531 kB / 0.5259 GB, free: 5.504 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.780894701951183] Failed to read output from testmodel.py, exit status != 0: 11.909525804920122 11.923591057 11.572512802 Calling exit ...