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.001787/0.001787, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002209/0.002209, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.1026/0.1026, allocations: 22.93 MB / 336.2 MB, free: 12.68 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",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.002191/0.002191, allocations: 67.91 kB / 472.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3217, allocations: 59.28 MB / 0.5191 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001729/0.3234, allocations: 0.5885 MB / 0.5197 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001931/0.3236, allocations: 69.56 kB / 0.5197 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.3237, allocations: 0 / 0.5197 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.3237, allocations: 4.688 kB / 0.5197 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.854e-05/0.3238, allocations: 6.531 kB / 0.5198 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001374/0.3239, allocations: 25.08 kB / 0.5198 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.101e-05/0.324, allocations: 45.58 kB / 0.5198 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.669e-05/0.324, allocations: 6.203 kB / 0.5198 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.645e-05/0.3241, allocations: 19.27 kB / 0.5198 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.4e-05/0.3242, allocations: 26.17 kB / 0.5199 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.3242, allocations: 3.25 kB / 0.5199 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.143e-05/0.3242, allocations: 2.281 kB / 0.5199 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.3242, allocations: 12.2 kB / 0.5199 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.3242, allocations: 24.17 kB / 0.5199 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.948e-05/0.3243, allocations: 34.64 kB / 0.5199 GB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3243, allocations: 0.7969 kB / 0.5199 GB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3243, allocations: 0 / 0.5199 GB, free: 10.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3243, allocations: 1.156 kB / 0.5199 GB, free: 10.2 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.000416/0.3248, allocations: 290.9 kB / 0.5202 GB, free: 9.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3248, allocations: 10.02 kB / 0.5202 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.705e-05/0.3248, allocations: 3.156 kB / 0.5202 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.288e-05/0.3248, allocations: 44.7 kB / 0.5203 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.3249, allocations: 8.797 kB / 0.5203 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.691e-05/0.325, allocations: 120 kB / 0.5204 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.325, allocations: 2.484 kB / 0.5204 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.325, allocations: 12.38 kB / 0.5204 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.3251, allocations: 66.45 kB / 0.5205 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3251, allocations: 2.062 kB / 0.5205 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.3252, allocations: 0 / 0.5205 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3252, allocations: 1.438 kB / 0.5205 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.277e-05/0.3252, allocations: 46.02 kB / 0.5205 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.3256, allocations: 270.2 kB / 0.5208 GB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.3259, allocations: 92.55 kB / 0.5209 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.467e-05/0.326, allocations: 35.39 kB / 0.5209 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.326, allocations: 1.344 kB / 0.5209 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.326, allocations: 40.64 kB / 0.5209 GB, free: 9.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.326, allocations: 3.938 kB / 0.5209 GB, free: 9.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002591/0.3262, allocations: 106.2 kB / 0.5211 GB, free: 9.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.408e-05/0.3263, allocations: 53.77 kB / 0.5211 GB, free: 9.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.3263, allocations: 112 kB / 0.5212 GB, free: 9.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.208e-06/0.3263, allocations: 30.77 kB / 0.5212 GB, free: 9.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.3264, allocations: 87.47 kB / 0.5213 GB, free: 8.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.3264, allocations: 43.86 kB / 0.5214 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.3264, allocations: 27.92 kB / 0.5214 GB, free: 8.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.967e-05/0.3265, allocations: 323.9 kB / 0.5217 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.954e-05/0.3265, allocations: 21.86 kB / 0.5217 GB, free: 8.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.451e-05/0.3266, allocations: 34.38 kB / 0.5218 GB, free: 8.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.327, allocations: 128.6 kB / 0.5219 GB, free: 8.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.327, allocations: 0 / 0.5219 GB, free: 8.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001818/0.3272, allocations: 109.2 kB / 0.522 GB, free: 8.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3272, allocations: 5.688 kB / 0.522 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3272, allocations: 0 / 0.522 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.3272, allocations: 2.078 kB / 0.522 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3274, allocations: 29.17 kB / 0.522 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3274, allocations: 5.156 kB / 0.522 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.338e-05/0.3274, allocations: 10.17 kB / 0.522 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.3274, allocations: 7.125 kB / 0.522 GB, free: 8.395 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.0002219/0.3277, allocations: 131.7 kB / 0.5222 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.3277, allocations: 8.453 kB / 0.5222 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002389/0.3279, allocations: 99.3 kB / 0.5223 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3279, allocations: 2.094 kB / 0.5223 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3279, allocations: 0 / 0.5223 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.3279, allocations: 5.984 kB / 0.5223 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3281, allocations: 153.5 kB / 0.5224 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3281, allocations: 1.812 kB / 0.5224 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.3283, allocations: 32.61 kB / 0.5225 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3283, allocations: 1 kB / 0.5225 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.3283, allocations: 1.062 kB / 0.5225 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3283, allocations: 3.938 kB / 0.5225 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3283, allocations: 4.984 kB / 0.5225 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.3286, allocations: 234.9 kB / 0.5227 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.221e-05/0.3286, allocations: 10.86 kB / 0.5227 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.3287, allocations: 2.875 kB / 0.5227 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.038e-05/0.3287, allocations: 0 / 0.5227 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.3288, allocations: 10.98 kB / 0.5227 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.3288, allocations: 6.797 kB / 0.5227 GB, free: 7.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.424e-05/0.3288, allocations: 93.67 kB / 0.5228 GB, free: 7.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3288, allocations: 1.156 kB / 0.5228 GB, free: 7.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.3291, allocations: 10.91 kB / 0.5228 GB, free: 7.738 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.0004673/0.3296, allocations: 0.7529 MB / 0.5236 GB, free: 7.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001804/0.3297, allocations: 63.58 kB / 0.5236 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3297, allocations: 1.312 kB / 0.5236 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.046e-05/0.3298, allocations: 36.14 kB / 0.5236 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.33, allocations: 5.312 kB / 0.5237 GB, free: 7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.3315, allocations: 1.497 MB / 0.5251 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.3317, allocations: 0.6934 MB / 0.5258 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.602e-05/0.3317, allocations: 9.391 kB / 0.5258 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.3318, allocations: 26.5 kB / 0.5258 GB, free: 4.977 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3318, allocations: 4 kB / 0.5258 GB, free: 4.973 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.3542, allocations: 1.955 MB / 0.5277 GB, free: 4.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.6, allocations: 11.34 kB / 0.5278 GB, free: 4.555 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.242288100998849] Failed to read output from testmodel.py, exit status != 0: 11.760445732972585 11.77862476 11.450822719 Calling exit ...