Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.OOM_Intro.HelloWorld.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.001481/0.001481, 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.00153/0.00153, allocations: 208.9 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.528/1.528, 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.1086/0.1086, 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.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.OOM_Intro.HelloWorld,fileNamePrefix="AES_AES_Coursework_OOM_Intro_HelloWorld",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.002176/0.002176, allocations: 75.89 kB / 471.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3565, allocations: 59.57 MB / 0.5186 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld): time 0.001638/0.3582, allocations: 0.5238 MB / 0.5191 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001514/0.3583, allocations: 17.86 kB / 0.5191 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.3584, allocations: 0.625 kB / 0.5191 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.3584, allocations: 0 / 0.5191 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.309e-05/0.3584, allocations: 5.25 kB / 0.5191 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001014/0.3585, allocations: 5.5 kB / 0.5191 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.739e-05/0.3586, allocations: 10.17 kB / 0.5191 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.087e-05/0.3586, allocations: 6.531 kB / 0.5191 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.715e-05/0.3587, allocations: 3.344 kB / 0.5191 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.172e-05/0.3587, allocations: 11.11 kB / 0.5192 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.3587, allocations: 0 / 0.5192 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-06/0.3587, allocations: 0.9688 kB / 0.5192 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.3588, allocations: 0 / 0.5192 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.283e-05/0.3588, allocations: 6.297 kB / 0.5192 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.036e-05/0.3588, allocations: 16.83 kB / 0.5192 GB, free: 8.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3588, allocations: 0 / 0.5192 GB, free: 8.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3588, allocations: 0 / 0.5192 GB, free: 8.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.3588, allocations: 0 / 0.5192 GB, free: 8.754 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003198/0.3592, allocations: 254.7 kB / 0.5194 GB, free: 8.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3592, allocations: 10.17 kB / 0.5194 GB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.39e-05/0.3592, allocations: 31.45 kB / 0.5195 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.197e-05/0.3592, allocations: 1.969 kB / 0.5195 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.932e-05/0.3593, allocations: 108.1 kB / 0.5196 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3594, allocations: 1.625 kB / 0.5196 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.3594, allocations: 5.75 kB / 0.5196 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.956e-05/0.3595, allocations: 32.47 kB / 0.5196 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3595, allocations: 4.656 kB / 0.5196 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-06/0.3595, allocations: 0 / 0.5196 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3595, allocations: 1 kB / 0.5196 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.183e-05/0.3595, allocations: 9.359 kB / 0.5196 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.3597, allocations: 128 kB / 0.5197 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.496e-05/0.3597, allocations: 22.86 kB / 0.5198 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.085e-05/0.3597, allocations: 12.27 kB / 0.5198 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.3598, allocations: 5.766 kB / 0.5198 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.604e-05/0.3598, allocations: 31.88 kB / 0.5198 GB, free: 8.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.3598, allocations: 0 / 0.5198 GB, free: 8.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001787/0.36, allocations: 54.53 kB / 0.5199 GB, free: 8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.36, allocations: 55.88 kB / 0.5199 GB, free: 7.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.426e-05/0.36, allocations: 96.53 kB / 0.52 GB, free: 7.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.36, allocations: 25.7 kB / 0.52 GB, free: 7.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.891e-05/0.36, allocations: 81.91 kB / 0.5201 GB, free: 7.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.3601, allocations: 13.3 kB / 0.5201 GB, free: 7.711 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.3601, allocations: 13.62 kB / 0.5201 GB, free: 7.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.489e-05/0.3601, allocations: 321.6 kB / 0.5204 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.85e-05/0.3602, allocations: 3.359 kB / 0.5204 GB, free: 7.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.183e-05/0.3602, allocations: 7.141 kB / 0.5205 GB, free: 7.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.3604, allocations: 33.55 kB / 0.5205 GB, free: 7.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3604, allocations: 0.5312 kB / 0.5205 GB, free: 7.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.386e-05/0.3605, allocations: 53.23 kB / 0.5205 GB, free: 7.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3605, allocations: 14 kB / 0.5206 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3605, allocations: 0 / 0.5206 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.3605, allocations: 4.625 kB / 0.5206 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.461e-05/0.3606, allocations: 10.42 kB / 0.5206 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.3606, allocations: 1.125 kB / 0.5206 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.086e-05/0.3606, allocations: 1.406 kB / 0.5206 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3606, allocations: 1.516 kB / 0.5206 GB, free: 7.301 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: x:VARIABLE(start = xstart fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 9.704e-05/0.3607, allocations: 108.1 kB / 0.5207 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-06/0.3607, allocations: 5.703 kB / 0.5207 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.668e-05/0.3607, allocations: 13.19 kB / 0.5207 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.3607, allocations: 0 / 0.5207 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3607, allocations: 5.922 kB / 0.5207 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3607, allocations: 0.7031 kB / 0.5207 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.915e-05/0.3608, allocations: 123.3 kB / 0.5208 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3608, allocations: 0.5 kB / 0.5208 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-05/0.3608, allocations: 6.312 kB / 0.5208 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3608, allocations: 5.188 kB / 0.5208 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.3608, allocations: 0 / 0.5208 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3608, allocations: 5.906 kB / 0.5208 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3608, allocations: 0 / 0.5208 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.361, allocations: 82.41 kB / 0.5209 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.361, allocations: 4.531 kB / 0.5209 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.361, allocations: 5.578 kB / 0.5209 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.285e-05/0.361, allocations: 1.688 kB / 0.5209 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.361, allocations: 6.125 kB / 0.5209 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.361, allocations: 1.125 kB / 0.5209 GB, free: 6.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.893e-05/0.3611, allocations: 82.73 kB / 0.521 GB, free: 6.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3611, allocations: 0 / 0.521 GB, free: 6.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001825/0.3612, allocations: 3.281 kB / 0.521 GB, free: 6.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * 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 (2): * Single equations (assignments): 2 * 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.0002493/0.3615, allocations: 0.6158 MB / 0.5216 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.474e-05/0.3616, allocations: 12.55 kB / 0.5216 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3616, allocations: 0 / 0.5216 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.183e-05/0.3616, allocations: 9.734 kB / 0.5216 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3617, allocations: 1.469 kB / 0.5216 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006792/0.3624, allocations: 1.116 MB / 0.5227 GB, free: 5.109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.742e-05/0.3625, allocations: 63.75 kB / 0.5228 GB, free: 5.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.925e-05/0.3625, allocations: 1.734 kB / 0.5228 GB, free: 5.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.597e-05/0.3625, allocations: 12.5 kB / 0.5228 GB, free: 5.027 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3625, allocations: 0 / 0.5228 GB, free: 5.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.3895, allocations: 1.613 MB / 0.5244 GB, free: 4.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.74, allocations: 10.94 kB / 0.5244 GB, free: 4.246 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; mkfifo AES_AES.Coursework.OOM_Intro.HelloWorld.pipe ; head -c 1048576 < AES_AES.Coursework.OOM_Intro.HelloWorld.pipe >> ../files/AES_AES.Coursework.OOM_Intro.HelloWorld.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.OOM_Intro.HelloWorld_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0333333 AES_AES_Coursework_OOM_Intro_HelloWorld.fmu > AES_AES.Coursework.OOM_Intro.HelloWorld.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.548756067175418] Failed to read output from testmodel.py, exit status != 0: 11.849016625899822 11.873195771 11.509889205 Calling exit ...