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.0008848/0.0008848, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.001362/0.001362, allocations: 165.6 kB / 23.23 MB, free: 1.336 MB / 18.57 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 0.9277/0.9277, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.06216/0.06216, allocations: 18.13 MB / 278.1 MB, free: 11.53 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 415 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.368e-05/2.54e-05, allocations: 7.812 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001244/0.001269, allocations: 0.5512 MB / 415.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.000138/0.001407, allocations: 36.59 kB / 415.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.752e-05/0.001435, allocations: 0 / 415.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.791e-05/0.001452, allocations: 3.938 kB / 415.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.259e-05/0.001515, allocations: 10.61 kB / 415.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001012/0.001616, allocations: 16.59 kB / 415.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 6.413e-05/0.00168, allocations: 32.06 kB / 415.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.624e-05/0.001727, allocations: 1.953 kB / 415.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.399e-05/0.001751, allocations: 14.45 kB / 415.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.905e-05/0.00183, allocations: 18.14 kB / 415.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.001851, allocations: 2.688 kB / 415.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-06/0.00186, allocations: 1.219 kB / 415.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.001875, allocations: 3.312 kB / 415.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.414e-05/0.001899, allocations: 14.33 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.426e-05/0.001974, allocations: 16.61 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.001977, allocations: 5.469 kB / 415.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.001979, allocations: 0 / 415.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.001983, allocations: 0 / 415.8 MB, free: 12.32 MB / 330.7 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.0003253/0.002308, allocations: 284.9 kB / 416.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.002349, allocations: 10.52 kB / 416.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.294e-05/0.002372, allocations: 31.92 kB / 416.1 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.002397, allocations: 9.016 kB / 416.1 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.933e-05/0.002456, allocations: 123.8 kB / 416.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.002469, allocations: 5.75 kB / 416.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.002489, allocations: 11.98 kB / 416.2 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.824e-05/0.002587, allocations: 46.33 kB / 416.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-06/0.002594, allocations: 192 / 416.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.002604, allocations: 5.359 kB / 416.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.002609, allocations: 5.5 kB / 416.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.69e-05/0.002646, allocations: 16.25 kB / 416.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003128/0.002959, allocations: 231.6 kB / 416.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.003102, allocations: 52.92 kB / 416.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.386e-05/0.003126, allocations: 18.28 kB / 416.6 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.003134, allocations: 5.375 kB / 416.6 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.143e-05/0.003145, allocations: 32.64 kB / 416.7 MB, free: 11.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.003146, allocations: 0 / 416.7 MB, free: 11.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001434/0.00329, allocations: 63.86 kB / 416.7 MB, free: 11.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.00331, allocations: 56.72 kB / 416.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.18e-05/0.003372, allocations: 121.5 kB / 416.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-06/0.003377, allocations: 30.34 kB / 416.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.2e-05/0.003409, allocations: 100.2 kB / 417 MB, free: 11.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.003422, allocations: 15.2 kB / 417 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.003451, allocations: 24.58 kB / 417.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.853e-05/0.003479, allocations: 323.2 kB / 417.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.158e-05/0.003501, allocations: 8.375 kB / 417.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.623e-05/0.003527, allocations: 26.3 kB / 417.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.003722, allocations: 76.47 kB / 417.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.003724, allocations: 0.7969 kB / 417.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.955e-05/0.003804, allocations: 68.09 kB / 417.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.003823, allocations: 6.156 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.003828, allocations: 6.906 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.003841, allocations: 2.031 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.69e-05/0.003898, allocations: 21.88 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.003903, allocations: 1.375 kB / 417.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.549e-05/0.003929, allocations: 14.64 kB / 417.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.003935, allocations: 1.375 kB / 417.6 MB, free: 10.64 MB / 330.7 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.0001353/0.00407, allocations: 115.9 kB / 417.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.004085, allocations: 14.64 kB / 417.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.004106, allocations: 10.27 kB / 417.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.004109, allocations: 192 / 417.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.004115, allocations: 2.641 kB / 417.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.004118, allocations: 3.984 kB / 417.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.142e-05/0.00421, allocations: 134.9 kB / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.004212, allocations: 4.547 kB / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.073e-05/0.004272, allocations: 15.72 kB / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.004274, allocations: 0 / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.004282, allocations: 6.609 kB / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.004283, allocations: 160 / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.004285, allocations: 0 / 417.9 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.004401, allocations: 171.7 kB / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.004413, allocations: 7.484 kB / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.004424, allocations: 5.375 kB / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.144e-05/0.004455, allocations: 0 / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.004469, allocations: 2.875 kB / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.004472, allocations: 2.031 kB / 418.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.762e-05/0.0045, allocations: 93.75 kB / 418.2 MB, free: 10.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0045, allocations: 0 / 418.2 MB, free: 10.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000151/0.004651, allocations: 10.88 kB / 418.2 MB, free: 10.09 MB / 330.7 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.0001828/0.004834, allocations: 0.7059 MB / 418.9 MB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.708e-05/0.004921, allocations: 34.83 kB / 418.9 MB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.004922, allocations: 0 / 418.9 MB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.561e-05/0.004938, allocations: 21.72 kB / 418.9 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.005093, allocations: 6.312 kB / 419 MB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006569/0.00575, allocations: 1.34 MB / 420.3 MB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.816e-05/0.005788, allocations: 70.38 kB / 420.4 MB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.575e-05/0.005814, allocations: 6.453 kB / 420.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.402e-05/0.005848, allocations: 15.61 kB / 420.4 MB, free: 8.043 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.005849, allocations: 3.938 kB / 420.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.02445, allocations: 2.118 MB / 422.5 MB, free: 7.129 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.795/6.819, allocations: 1.344 kB / 422.5 MB, free: 7.129 MB / 330.7 MB " [Timeout remaining time 653] (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: 8.878936889581382] Failed to read output from testmodel.py, exit status != 0: 6.900899589061737 6.911941184 6.906381422 Calling exit ...