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.001572/0.001572, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001605/0.001605, allocations: 207.5 kB / 23.01 MB, free: 4.621 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.424/1.424, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.03 MB / 337.2 MB, free: 11.35 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.002217/0.002217, allocations: 63.91 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3412, allocations: 59.58 MB / 0.5209 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001565/0.3427, allocations: 0.5789 MB / 0.5215 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001814/0.3429, allocations: 54.27 kB / 0.5215 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.3429, allocations: 0 / 0.5215 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.343, allocations: 3.938 kB / 0.5215 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.358e-05/0.343, allocations: 6.453 kB / 0.5215 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.3432, allocations: 22.05 kB / 0.5216 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.076e-05/0.3432, allocations: 49.89 kB / 0.5216 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.955e-05/0.3433, allocations: 4.125 kB / 0.5216 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.66e-05/0.3433, allocations: 15.17 kB / 0.5216 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.955e-05/0.3434, allocations: 26.11 kB / 0.5216 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.3434, allocations: 2.375 kB / 0.5216 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.3434, allocations: 3.438 kB / 0.5217 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.9e-05/0.3434, allocations: 15.72 kB / 0.5217 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.551e-05/0.3435, allocations: 15.11 kB / 0.5217 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.869e-05/0.3435, allocations: 28.09 kB / 0.5217 GB, free: 9.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3435, allocations: 1.125 kB / 0.5217 GB, free: 9.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3435, allocations: 4 kB / 0.5217 GB, free: 9.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3436, allocations: 0 / 0.5217 GB, free: 9.629 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.0003592/0.3439, allocations: 291.5 kB / 0.522 GB, free: 9.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3439, allocations: 11.22 kB / 0.522 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.373e-05/0.344, allocations: 37.25 kB / 0.522 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.344, allocations: 16.58 kB / 0.5221 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.139e-05/0.3441, allocations: 121.1 kB / 0.5222 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.3441, allocations: 5.688 kB / 0.5222 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.3441, allocations: 8.25 kB / 0.5222 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.3442, allocations: 72.41 kB / 0.5223 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.3442, allocations: 3.938 kB / 0.5223 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.3442, allocations: 0.7969 kB / 0.5223 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3443, allocations: 4.469 kB / 0.5223 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.241e-05/0.3443, allocations: 39.58 kB / 0.5223 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.3446, allocations: 265.6 kB / 0.5225 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.3449, allocations: 89.08 kB / 0.5226 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.718e-05/0.345, allocations: 35.5 kB / 0.5227 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.345, allocations: 9.344 kB / 0.5227 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.192e-05/0.345, allocations: 32.53 kB / 0.5227 GB, free: 8.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.345, allocations: 0 / 0.5227 GB, free: 8.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002171/0.3452, allocations: 107.5 kB / 0.5228 GB, free: 8.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.3452, allocations: 53.75 kB / 0.5229 GB, free: 8.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.816e-05/0.3453, allocations: 120 kB / 0.523 GB, free: 8.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.336e-06/0.3453, allocations: 26.83 kB / 0.523 GB, free: 8.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.05e-05/0.3453, allocations: 92.28 kB / 0.5231 GB, free: 8.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.3454, allocations: 38.7 kB / 0.5231 GB, free: 8.332 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.3454, allocations: 28.47 kB / 0.5232 GB, free: 8.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.51e-05/0.3455, allocations: 324.5 kB / 0.5235 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.901e-05/0.3455, allocations: 24.55 kB / 0.5235 GB, free: 7.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.475e-05/0.3455, allocations: 36.12 kB / 0.5235 GB, free: 7.953 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.3459, allocations: 124.1 kB / 0.5236 GB, free: 7.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3459, allocations: 1.25 kB / 0.5236 GB, free: 7.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000141/0.346, allocations: 107.6 kB / 0.5237 GB, free: 7.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3461, allocations: 6.422 kB / 0.5238 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3461, allocations: 5.5 kB / 0.5238 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3461, allocations: 1.75 kB / 0.5238 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.3462, allocations: 27.95 kB / 0.5238 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3462, allocations: 2.188 kB / 0.5238 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.947e-05/0.3463, allocations: 9.359 kB / 0.5238 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.3463, allocations: 11.75 kB / 0.5238 GB, free: 7.82 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.0001233/0.3464, allocations: 123.2 kB / 0.5239 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.3464, allocations: 12.08 kB / 0.5239 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.3466, allocations: 104.8 kB / 0.524 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3466, allocations: 1.25 kB / 0.524 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3466, allocations: 0.5625 kB / 0.524 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3466, allocations: 0.6562 kB / 0.524 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.3467, allocations: 150.8 kB / 0.5242 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3467, allocations: 0.6094 kB / 0.5242 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.3469, allocations: 33.08 kB / 0.5242 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3469, allocations: 1.281 kB / 0.5242 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.3469, allocations: 5.438 kB / 0.5242 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3469, allocations: 4.656 kB / 0.5242 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3469, allocations: 0 / 0.5242 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.3471, allocations: 227.3 kB / 0.5244 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.043e-05/0.3471, allocations: 8.266 kB / 0.5244 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.3471, allocations: 2.266 kB / 0.5245 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.872e-05/0.3472, allocations: 4 kB / 0.5245 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.3472, allocations: 10.2 kB / 0.5245 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.3472, allocations: 3.469 kB / 0.5245 GB, free: 7.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.3472, allocations: 94.7 kB / 0.5246 GB, free: 7.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3472, allocations: 0 / 0.5246 GB, free: 7.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.3475, allocations: 26.77 kB / 0.5246 GB, free: 7.164 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.0003247/0.3478, allocations: 0.7507 MB / 0.5253 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.3479, allocations: 60.59 kB / 0.5254 GB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3479, allocations: 4 kB / 0.5254 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.657e-05/0.348, allocations: 31.88 kB / 0.5254 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.3482, allocations: 9.75 kB / 0.5254 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3493, allocations: 1.497 MB / 0.5269 GB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.826e-05/0.3493, allocations: 89.08 kB / 0.527 GB, free: 5.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.54e-05/0.3493, allocations: 9.984 kB / 0.527 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.3494, allocations: 22.2 kB / 0.527 GB, free: 5.027 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3494, allocations: 0 / 0.527 GB, free: 5.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.3776, allocations: 2.254 MB / 0.5292 GB, free: 4.195 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 5.641 kB / 0.5292 GB, free: 4.195 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M1_TimeDomain_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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: 17.401776432059705] Failed to read output from testmodel.py, exit status != 0: 11.862883781082928 11.883423741 11.535734119 Calling exit ...