Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.001399/0.001399, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001471/0.001471, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.108/0.108, allocations: 24.05 MB / 337.2 MB, free: 11.43 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.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",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.002185/0.002185, allocations: 75.89 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3267, allocations: 59.58 MB / 0.5209 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00161/0.3283, allocations: 0.5752 MB / 0.5215 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001824/0.3285, allocations: 54.7 kB / 0.5215 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.3285, allocations: 0 / 0.5215 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.715e-05/0.3286, allocations: 3.938 kB / 0.5215 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.444e-05/0.3286, allocations: 6.5 kB / 0.5215 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001355/0.3288, allocations: 26 kB / 0.5216 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.3288, allocations: 45.56 kB / 0.5216 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.077e-05/0.3289, allocations: 3.641 kB / 0.5216 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.316e-05/0.3289, allocations: 24.3 kB / 0.5216 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.186e-05/0.329, allocations: 25.62 kB / 0.5217 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.329, allocations: 3.094 kB / 0.5217 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.097e-05/0.329, allocations: 2.375 kB / 0.5217 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.3291, allocations: 16.86 kB / 0.5217 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.3291, allocations: 15.59 kB / 0.5217 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.497e-05/0.3292, allocations: 35.41 kB / 0.5217 GB, free: 9.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3292, allocations: 0 / 0.5217 GB, free: 9.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3292, allocations: 0 / 0.5217 GB, free: 9.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.3292, allocations: 1.5 kB / 0.5217 GB, free: 9.762 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003672/0.3295, allocations: 294.8 kB / 0.522 GB, free: 9.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3296, allocations: 10.66 kB / 0.522 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.559e-05/0.3296, allocations: 37.97 kB / 0.5221 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.3296, allocations: 9.141 kB / 0.5221 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.434e-05/0.3297, allocations: 119.2 kB / 0.5222 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.3297, allocations: 3.312 kB / 0.5222 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.3297, allocations: 8.453 kB / 0.5222 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.3299, allocations: 68.8 kB / 0.5223 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.3299, allocations: 0 / 0.5223 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.3299, allocations: 9.156 kB / 0.5223 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3299, allocations: 1.219 kB / 0.5223 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.62e-05/0.33, allocations: 33.33 kB / 0.5223 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.3303, allocations: 270.4 kB / 0.5226 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.3306, allocations: 93.3 kB / 0.5226 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.677e-05/0.3306, allocations: 30.05 kB / 0.5227 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.3306, allocations: 2.094 kB / 0.5227 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.339e-05/0.3307, allocations: 39.94 kB / 0.5227 GB, free: 8.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.3307, allocations: 0 / 0.5227 GB, free: 8.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002246/0.3309, allocations: 111.5 kB / 0.5228 GB, free: 8.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.3309, allocations: 56.81 kB / 0.5229 GB, free: 8.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.143e-05/0.331, allocations: 117 kB / 0.523 GB, free: 8.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/0.331, allocations: 26.89 kB / 0.523 GB, free: 8.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.327e-05/0.331, allocations: 92.58 kB / 0.5231 GB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.331, allocations: 42.75 kB / 0.5231 GB, free: 8.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.69e-05/0.3311, allocations: 24.06 kB / 0.5232 GB, free: 8.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.486e-05/0.3311, allocations: 324.1 kB / 0.5235 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.956e-05/0.3312, allocations: 20.8 kB / 0.5235 GB, free: 8.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.737e-05/0.3312, allocations: 36.56 kB / 0.5235 GB, free: 8.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.3316, allocations: 128.9 kB / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3316, allocations: 0 / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001448/0.3317, allocations: 105.3 kB / 0.5237 GB, free: 7.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.3318, allocations: 5.25 kB / 0.5238 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3318, allocations: 0.75 kB / 0.5238 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3318, allocations: 5.859 kB / 0.5238 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3319, allocations: 32.33 kB / 0.5238 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3319, allocations: 5.734 kB / 0.5238 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.3319, allocations: 10.02 kB / 0.5238 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.332, allocations: 4.125 kB / 0.5238 GB, free: 7.961 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real 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 (14): * Single equations (assignments): 14 * 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.000141/0.3321, allocations: 130.8 kB / 0.5239 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.3321, allocations: 7.984 kB / 0.5239 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.3323, allocations: 104 kB / 0.524 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3323, allocations: 6.562 kB / 0.524 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3323, allocations: 0 / 0.524 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3323, allocations: 0.7031 kB / 0.524 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.3324, allocations: 151.3 kB / 0.5242 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3324, allocations: 0 / 0.5242 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.3326, allocations: 29.89 kB / 0.5242 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3326, allocations: 3.938 kB / 0.5242 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.3326, allocations: 1.094 kB / 0.5242 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3326, allocations: 2.141 kB / 0.5242 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3326, allocations: 0 / 0.5242 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.3328, allocations: 227.7 kB / 0.5244 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.196e-05/0.3329, allocations: 15.3 kB / 0.5245 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.3329, allocations: 1.219 kB / 0.5245 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.92e-05/0.3329, allocations: 1.891 kB / 0.5245 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.299e-05/0.333, allocations: 9.5 kB / 0.5245 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.333, allocations: 7.172 kB / 0.5245 GB, free: 7.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.145e-05/0.333, allocations: 90.38 kB / 0.5246 GB, free: 7.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.333, allocations: 0 / 0.5246 GB, free: 7.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002283/0.3332, allocations: 19.61 kB / 0.5246 GB, free: 7.309 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,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 (11): * Single equations (assignments): 11 * 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.0003309/0.3336, allocations: 0.7556 MB / 0.5253 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.3337, allocations: 64.33 kB / 0.5254 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3337, allocations: 0 / 0.5254 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.968e-05/0.3338, allocations: 39.33 kB / 0.5254 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.334, allocations: 6.891 kB / 0.5254 GB, free: 6.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3351, allocations: 1.498 MB / 0.5269 GB, free: 5.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.99e-05/0.3352, allocations: 84.28 kB / 0.527 GB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.58e-05/0.3352, allocations: 10.59 kB / 0.527 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.3353, allocations: 21.73 kB / 0.527 GB, free: 5.164 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3353, allocations: 0 / 0.527 GB, free: 5.164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.3653, allocations: 2.247 MB / 0.5292 GB, free: 4.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.69, allocations: 7.516 kB / 0.5292 GB, free: 4.332 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M1_TimeDomain_fmu --startTime=0 --stopTime=100 --stepSize=0.001 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.267562599852681] Failed to read output from testmodel.py, exit status != 0: 11.803770067170262 11.830197028 11.496027721 Calling exit ...