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.00136/0.00136, allocations: 101.3 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.001437/0.001437, allocations: 219.6 kB / 23.03 MB, free: 4.949 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1037/0.1037, allocations: 22.93 MB / 336.2 MB, free: 12.41 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.002994/0.002994, allocations: 55.91 kB / 472.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3555, allocations: 59.28 MB / 0.519 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.00181/0.3573, allocations: 0.5909 MB / 0.5196 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002073/0.3575, allocations: 58.67 kB / 0.5196 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.331e-05/0.3575, allocations: 0 / 0.5196 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.3576, allocations: 3.938 kB / 0.5196 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.283e-05/0.3576, allocations: 14.12 kB / 0.5197 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.3578, allocations: 12.91 kB / 0.5197 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.706e-05/0.3579, allocations: 42.03 kB / 0.5197 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.896e-05/0.3579, allocations: 5.172 kB / 0.5197 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.358, allocations: 23.22 kB / 0.5197 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.731e-05/0.3581, allocations: 30.09 kB / 0.5198 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.3581, allocations: 2.219 kB / 0.5198 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.3581, allocations: 3.156 kB / 0.5198 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.3581, allocations: 12.16 kB / 0.5198 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.3582, allocations: 15.72 kB / 0.5198 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.899e-05/0.3583, allocations: 38.05 kB / 0.5198 GB, free: 10.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3583, allocations: 1.062 kB / 0.5198 GB, free: 10.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3583, allocations: 0 / 0.5198 GB, free: 10.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3583, allocations: 0 / 0.5198 GB, free: 10.16 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.000427/0.3587, allocations: 295.8 kB / 0.5201 GB, free: 9.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3587, allocations: 11.06 kB / 0.5201 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.432e-05/0.3588, allocations: 1.469 kB / 0.5201 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.583e-05/0.3588, allocations: 42.5 kB / 0.5202 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.3588, allocations: 8.234 kB / 0.5202 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.565e-05/0.3589, allocations: 116.3 kB / 0.5203 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.3589, allocations: 2.688 kB / 0.5203 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.3589, allocations: 12.77 kB / 0.5203 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.3591, allocations: 66.81 kB / 0.5204 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.3591, allocations: 0.5625 kB / 0.5204 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3591, allocations: 9.156 kB / 0.5204 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3591, allocations: 1.219 kB / 0.5204 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.098e-05/0.3592, allocations: 35.16 kB / 0.5204 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003847/0.3596, allocations: 265.9 kB / 0.5207 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.3599, allocations: 100.2 kB / 0.5208 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.335e-05/0.36, allocations: 33.89 kB / 0.5208 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.36, allocations: 1.219 kB / 0.5208 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.36, allocations: 33.28 kB / 0.5208 GB, free: 9.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.36, allocations: 0 / 0.5208 GB, free: 9.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002591/0.3603, allocations: 111.7 kB / 0.5209 GB, free: 9.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.3603, allocations: 52.53 kB / 0.521 GB, free: 9.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.718e-05/0.3604, allocations: 125.5 kB / 0.5211 GB, free: 9.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.3604, allocations: 25.7 kB / 0.5211 GB, free: 8.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.3604, allocations: 87.89 kB / 0.5212 GB, free: 8.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.3604, allocations: 44.36 kB / 0.5212 GB, free: 8.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.3605, allocations: 24.11 kB / 0.5213 GB, free: 8.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.3605, allocations: 323.5 kB / 0.5216 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.3606, allocations: 21.36 kB / 0.5216 GB, free: 8.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.197e-05/0.3606, allocations: 39.98 kB / 0.5216 GB, free: 8.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004211/0.3611, allocations: 119.8 kB / 0.5218 GB, free: 8.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3611, allocations: 0.75 kB / 0.5218 GB, free: 8.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001492/0.3612, allocations: 108.1 kB / 0.5219 GB, free: 8.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3612, allocations: 6.062 kB / 0.5219 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3612, allocations: 1.469 kB / 0.5219 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3612, allocations: 1.406 kB / 0.5219 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.3614, allocations: 36.03 kB / 0.5219 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3614, allocations: 5.812 kB / 0.5219 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.155e-05/0.3614, allocations: 10.27 kB / 0.5219 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.3614, allocations: 6.969 kB / 0.5219 GB, free: 8.359 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.0001418/0.3616, allocations: 116 kB / 0.522 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.3616, allocations: 7.641 kB / 0.522 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001789/0.3618, allocations: 108.9 kB / 0.5221 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3618, allocations: 5.469 kB / 0.5221 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3618, allocations: 4 kB / 0.5222 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3618, allocations: 2.328 kB / 0.5222 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.3619, allocations: 159.3 kB / 0.5223 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3619, allocations: 3.938 kB / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.3621, allocations: 28.31 kB / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3621, allocations: 0 / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3621, allocations: 1.656 kB / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3621, allocations: 1.188 kB / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3621, allocations: 0 / 0.5223 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.3623, allocations: 227.6 kB / 0.5226 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.108e-05/0.3623, allocations: 16.05 kB / 0.5226 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.3624, allocations: 5.031 kB / 0.5226 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.3624, allocations: 1.766 kB / 0.5226 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.3625, allocations: 5.938 kB / 0.5226 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.3625, allocations: 2.812 kB / 0.5226 GB, free: 7.797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.218e-05/0.3625, allocations: 94.8 kB / 0.5227 GB, free: 7.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3625, allocations: 0 / 0.5227 GB, free: 7.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.3628, allocations: 15.34 kB / 0.5227 GB, free: 7.711 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.0003667/0.3632, allocations: 0.7605 MB / 0.5234 GB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001496/0.3633, allocations: 63.56 kB / 0.5235 GB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3633, allocations: 0 / 0.5235 GB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.944e-05/0.3634, allocations: 34.89 kB / 0.5235 GB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.3637, allocations: 6.188 kB / 0.5235 GB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.3652, allocations: 1.496 MB / 0.525 GB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.141e-05/0.3652, allocations: 85.36 kB / 0.5251 GB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.365e-05/0.3653, allocations: 9.953 kB / 0.5251 GB, free: 5.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.3653, allocations: 22.62 kB / 0.5251 GB, free: 5.574 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3653, allocations: 0 / 0.5251 GB, free: 5.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.3873, allocations: 1.935 MB / 0.527 GB, free: 5.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.86, allocations: 18.83 kB / 0.527 GB, free: 5.121 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.544606841984205] Failed to read output from testmodel.py, exit status != 0: 12.02310963801574 12.039507335 11.677408956 Calling exit ...