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.001464/0.001464, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002054/0.002054, allocations: 218 kB / 23.04 MB, free: 5.078 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.1041/0.1041, allocations: 22.94 MB / 336.2 MB, free: 12.6 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.002242/0.002242, allocations: 63.91 kB / 472.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3444, allocations: 59.28 MB / 0.5191 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001802/0.3462, allocations: 0.5796 MB / 0.5197 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001535/0.3463, allocations: 27.45 kB / 0.5197 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.3464, allocations: 0.75 kB / 0.5197 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.3464, allocations: 3.938 kB / 0.5197 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.409e-05/0.3465, allocations: 7.938 kB / 0.5197 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000113/0.3466, allocations: 18.08 kB / 0.5197 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.71e-05/0.3466, allocations: 23.47 kB / 0.5197 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.962e-05/0.3467, allocations: 11.5 kB / 0.5198 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.958e-05/0.3467, allocations: 17.59 kB / 0.5198 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.392e-05/0.3468, allocations: 26.34 kB / 0.5198 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.3468, allocations: 1.281 kB / 0.5198 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.467e-06/0.3468, allocations: 6 kB / 0.5198 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.3468, allocations: 4.078 kB / 0.5198 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.951e-05/0.3469, allocations: 17.27 kB / 0.5198 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.338e-05/0.3469, allocations: 19.34 kB / 0.5198 GB, free: 10.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3469, allocations: 0 / 0.5198 GB, free: 10.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3469, allocations: 3.938 kB / 0.5198 GB, free: 10.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.347, allocations: 6.031 kB / 0.5198 GB, free: 10.26 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.0004082/0.3474, allocations: 283.6 kB / 0.5201 GB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3474, allocations: 10.95 kB / 0.5201 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.519e-05/0.3474, allocations: 5.578 kB / 0.5201 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.286e-05/0.3474, allocations: 33.22 kB / 0.5202 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.3475, allocations: 6.328 kB / 0.5202 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.383e-05/0.3476, allocations: 116.1 kB / 0.5203 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.336e-06/0.3476, allocations: 6.766 kB / 0.5203 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.3476, allocations: 7.031 kB / 0.5203 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.3477, allocations: 54.67 kB / 0.5203 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3477, allocations: 0 / 0.5203 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.3477, allocations: 0 / 0.5203 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.3477, allocations: 1.406 kB / 0.5204 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.671e-05/0.3478, allocations: 15.61 kB / 0.5204 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003474/0.3481, allocations: 241.5 kB / 0.5206 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.3483, allocations: 52.11 kB / 0.5206 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.221e-05/0.3483, allocations: 15.3 kB / 0.5207 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.3483, allocations: 1 kB / 0.5207 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.3484, allocations: 31.98 kB / 0.5207 GB, free: 9.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3484, allocations: 0 / 0.5207 GB, free: 9.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001782/0.3485, allocations: 66.69 kB / 0.5208 GB, free: 9.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.3486, allocations: 55.41 kB / 0.5208 GB, free: 9.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.914e-05/0.3486, allocations: 128.4 kB / 0.5209 GB, free: 9.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.3486, allocations: 31.05 kB / 0.521 GB, free: 9.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/0.3487, allocations: 96.56 kB / 0.5211 GB, free: 9.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.3487, allocations: 10.7 kB / 0.5211 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.3487, allocations: 24.11 kB / 0.5211 GB, free: 9.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.3488, allocations: 322.7 kB / 0.5214 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.005e-05/0.3488, allocations: 11.42 kB / 0.5214 GB, free: 8.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.471e-05/0.3488, allocations: 31.91 kB / 0.5214 GB, free: 8.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.3491, allocations: 72.33 kB / 0.5215 GB, free: 8.645 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3491, allocations: 3.938 kB / 0.5215 GB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001097/0.3492, allocations: 78.44 kB / 0.5216 GB, free: 8.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3492, allocations: 4.781 kB / 0.5216 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3492, allocations: 4.031 kB / 0.5216 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3493, allocations: 1.828 kB / 0.5216 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.415e-05/0.3494, allocations: 17.89 kB / 0.5216 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3494, allocations: 5.156 kB / 0.5216 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.91e-05/0.3494, allocations: 11.11 kB / 0.5216 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.3494, allocations: 2.25 kB / 0.5216 GB, free: 8.574 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.0001623/0.3496, allocations: 122.4 kB / 0.5217 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.3496, allocations: 11.31 kB / 0.5218 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.493e-05/0.3496, allocations: 10.06 kB / 0.5218 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3496, allocations: 1.344 kB / 0.5218 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3496, allocations: 0 / 0.5218 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3496, allocations: 0.9844 kB / 0.5218 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.3498, allocations: 141.8 kB / 0.5219 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3498, allocations: 0 / 0.5219 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.865e-05/0.3499, allocations: 15.14 kB / 0.5219 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3499, allocations: 0 / 0.5219 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.3499, allocations: 1.125 kB / 0.5219 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3499, allocations: 4.562 kB / 0.5219 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3499, allocations: 0.9375 kB / 0.5219 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.35, allocations: 171.7 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.15e-05/0.35, allocations: 2.781 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.35, allocations: 0.75 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.455e-05/0.3501, allocations: 1.156 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.3501, allocations: 2.516 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3501, allocations: 1.375 kB / 0.5221 GB, free: 8.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.3502, allocations: 101.4 kB / 0.5222 GB, free: 8.023 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3502, allocations: 0 / 0.5222 GB, free: 8.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.3504, allocations: 7.781 kB / 0.5222 GB, free: 8.023 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.0002507/0.3506, allocations: 0.7004 MB / 0.5229 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.3507, allocations: 30.55 kB / 0.5229 GB, free: 7.336 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3507, allocations: 5.156 kB / 0.5229 GB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.194e-05/0.3508, allocations: 17.55 kB / 0.5229 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.351, allocations: 2.094 kB / 0.5229 GB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008781/0.3518, allocations: 1.364 MB / 0.5243 GB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.352, allocations: 0.6892 MB / 0.5249 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.734e-05/0.352, allocations: 7.859 kB / 0.5249 GB, free: 5.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.352, allocations: 15.22 kB / 0.525 GB, free: 5.344 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.352, allocations: 0 / 0.525 GB, free: 5.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.3732, allocations: 1.646 MB / 0.5266 GB, free: 4.938 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.71, allocations: 6.625 kB / 0.5266 GB, free: 4.938 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.71770811098395] Failed to read output from testmodel.py, exit status != 0: 11.873053121031262 11.896631708 11.544714179 Calling exit ...