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.00144/0.00144, allocations: 111 kB / 16.46 MB, free: 6.453 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.001511/0.001511, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.638/1.638, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.113/0.113, allocations: 24.11 MB / 333 MB, free: 12.63 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.002924/0.002924, allocations: 73.91 kB / 467.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3731, allocations: 59.56 MB / 0.5151 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001871/0.375, allocations: 0.5981 MB / 0.5156 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001983/0.3752, allocations: 65.66 kB / 0.5157 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.261e-05/0.3752, allocations: 0 / 0.5157 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/0.3752, allocations: 3.938 kB / 0.5157 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.651e-05/0.3753, allocations: 6.219 kB / 0.5157 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.3754, allocations: 21.58 kB / 0.5157 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.407e-05/0.3755, allocations: 42.73 kB / 0.5158 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.575e-05/0.3756, allocations: 7.359 kB / 0.5158 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.074e-05/0.3756, allocations: 19.2 kB / 0.5158 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.64e-05/0.3757, allocations: 29.5 kB / 0.5158 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.3757, allocations: 3.594 kB / 0.5158 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.078e-05/0.3757, allocations: 2.531 kB / 0.5158 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.3757, allocations: 4.375 kB / 0.5158 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.3758, allocations: 27.11 kB / 0.5159 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.936e-05/0.3759, allocations: 34.44 kB / 0.5159 GB, free: 9.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3759, allocations: 0.7031 kB / 0.5159 GB, free: 9.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3759, allocations: 0 / 0.5159 GB, free: 9.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3759, allocations: 0 / 0.5159 GB, free: 9.223 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.0003936/0.3763, allocations: 372.9 kB / 0.5163 GB, free: 8.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3763, allocations: 9.562 kB / 0.5163 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.238e-05/0.3763, allocations: 38.59 kB / 0.5163 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.3764, allocations: 11.3 kB / 0.5163 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.254e-05/0.3764, allocations: 177.4 kB / 0.5165 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3764, allocations: 2.688 kB / 0.5165 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.3765, allocations: 9.203 kB / 0.5165 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.3766, allocations: 67.11 kB / 0.5166 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3766, allocations: 0 / 0.5166 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.3766, allocations: 0.5938 kB / 0.5166 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3766, allocations: 10.39 kB / 0.5166 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.65e-05/0.3767, allocations: 38.25 kB / 0.5166 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003438/0.3771, allocations: 303 kB / 0.5169 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.3773, allocations: 93.25 kB / 0.517 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.125e-05/0.3774, allocations: 30.17 kB / 0.517 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.3774, allocations: 9.281 kB / 0.517 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.33e-05/0.3774, allocations: 35.88 kB / 0.5171 GB, free: 8.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.3774, allocations: 0 / 0.5171 GB, free: 8.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002396/0.3777, allocations: 107.8 kB / 0.5172 GB, free: 8.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.3777, allocations: 52.97 kB / 0.5172 GB, free: 7.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.974e-05/0.3778, allocations: 112.7 kB / 0.5173 GB, free: 7.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.3778, allocations: 30.67 kB / 0.5173 GB, free: 7.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.3778, allocations: 87.7 kB / 0.5174 GB, free: 7.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.3778, allocations: 43.22 kB / 0.5175 GB, free: 7.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.3779, allocations: 24.36 kB / 0.5175 GB, free: 7.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.3779, allocations: 324 kB / 0.5178 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.865e-05/0.378, allocations: 19.86 kB / 0.5178 GB, free: 7.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.642e-05/0.378, allocations: 38.53 kB / 0.5179 GB, free: 7.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.3784, allocations: 128.4 kB / 0.518 GB, free: 7.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3784, allocations: 0.6562 kB / 0.518 GB, free: 7.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001607/0.3786, allocations: 109.3 kB / 0.5181 GB, free: 7.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3786, allocations: 5.188 kB / 0.5181 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3786, allocations: 4.969 kB / 0.5181 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3786, allocations: 1.031 kB / 0.5181 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.3787, allocations: 29.19 kB / 0.5181 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.3787, allocations: 1.719 kB / 0.5181 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.26e-05/0.3788, allocations: 17.52 kB / 0.5181 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.3788, allocations: 4.859 kB / 0.5181 GB, free: 7.223 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.0001429/0.3789, allocations: 127 kB / 0.5183 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.379, allocations: 11.89 kB / 0.5183 GB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.3791, allocations: 99.97 kB / 0.5184 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3791, allocations: 5.781 kB / 0.5184 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3791, allocations: 1.188 kB / 0.5184 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3791, allocations: 0.5156 kB / 0.5184 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.3793, allocations: 187 kB / 0.5186 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3793, allocations: 0 / 0.5186 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.3795, allocations: 33.52 kB / 0.5186 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3795, allocations: 0.5625 kB / 0.5186 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3795, allocations: 1.125 kB / 0.5186 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3795, allocations: 2.031 kB / 0.5186 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3795, allocations: 0 / 0.5186 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.3797, allocations: 230.6 kB / 0.5188 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.042e-05/0.3797, allocations: 91.25 kB / 0.5189 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.3797, allocations: 1.438 kB / 0.5189 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.915e-05/0.3798, allocations: 2.516 kB / 0.5189 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.635e-05/0.3798, allocations: 4.406 kB / 0.5189 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.3798, allocations: 6.406 kB / 0.5189 GB, free: 6.535 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.195e-05/0.3798, allocations: 95.86 kB / 0.519 GB, free: 6.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3798, allocations: 0 / 0.519 GB, free: 6.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.3801, allocations: 23.09 kB / 0.519 GB, free: 6.441 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.0003307/0.3804, allocations: 0.7493 MB / 0.5198 GB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.3805, allocations: 61.42 kB / 0.5198 GB, free: 5.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.3805, allocations: 0 / 0.5198 GB, free: 5.727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.635e-05/0.3806, allocations: 43.28 kB / 0.5199 GB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.3808, allocations: 6.312 kB / 0.5199 GB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.382, allocations: 1.483 MB / 0.5213 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.3821, allocations: 0.6935 MB / 0.522 GB, free: 3.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.215e-05/0.3821, allocations: 9.75 kB / 0.522 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.707e-05/0.3821, allocations: 25.55 kB / 0.522 GB, free: 3.688 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3821, allocations: 0 / 0.522 GB, free: 3.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.4069, allocations: 1.751 MB / 0.5237 GB, free: 3.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.524, allocations: 12.45 kB / 0.5237 GB, free: 3.289 MB / 382.1 MB " [Timeout remaining time 651] (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: 14.482060676906258] Failed to read output from testmodel.py, exit status != 0: 8.594279068987817 8.60916519 8.229980795 Calling exit ...