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.001422/0.001422, allocations: 101 kB / 16.45 MB, free: 6.449 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.00156/0.00156, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.547/1.547, allocations: 230.6 MB / 252.8 MB, free: 9.145 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.1675/0.1675, allocations: 24.11 MB / 333 MB, free: 12.64 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.002279/0.002279, allocations: 71.89 kB / 465.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3589, allocations: 59.56 MB / 0.513 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.OOM_Intro.HelloWorld): time 0.001583/0.3605, allocations: 0.5163 MB / 0.5135 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001252/0.3607, allocations: 22.58 kB / 0.5135 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.215e-05/0.3607, allocations: 1.906 kB / 0.5135 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.3607, allocations: 0 / 0.5135 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.144e-05/0.3607, allocations: 0 / 0.5135 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.941e-05/0.3608, allocations: 3.375 kB / 0.5135 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.409e-05/0.3609, allocations: 12.09 kB / 0.5135 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.381e-05/0.3609, allocations: 7.547 kB / 0.5135 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.578e-05/0.361, allocations: 3.516 kB / 0.5135 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.058e-05/0.361, allocations: 10.84 kB / 0.5135 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.361, allocations: 0 / 0.5135 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.783e-06/0.361, allocations: 0.8438 kB / 0.5135 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.361, allocations: 4.641 kB / 0.5135 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.083e-05/0.3611, allocations: 8.25 kB / 0.5136 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 5.601e-05/0.3611, allocations: 8.297 kB / 0.5136 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3611, allocations: 3.531 kB / 0.5136 GB, free: 8.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3611, allocations: 1.219 kB / 0.5136 GB, free: 8.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.3611, allocations: 0 / 0.5136 GB, free: 8.23 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.0003087/0.3614, allocations: 326.8 kB / 0.5139 GB, free: 7.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3615, allocations: 10.81 kB / 0.5139 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.686e-05/0.3615, allocations: 31.31 kB / 0.5139 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.156e-05/0.3615, allocations: 1.906 kB / 0.5139 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.847e-05/0.3616, allocations: 172.8 kB / 0.5141 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.3616, allocations: 1.125 kB / 0.5141 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.3616, allocations: 2.062 kB / 0.5141 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.456e-05/0.3617, allocations: 40.53 kB / 0.5141 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3617, allocations: 3.938 kB / 0.5141 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.3617, allocations: 0 / 0.5141 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.3617, allocations: 0.9375 kB / 0.5141 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.506e-05/0.3618, allocations: 5.344 kB / 0.5141 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.3619, allocations: 156.2 kB / 0.5143 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.912e-05/0.362, allocations: 25.64 kB / 0.5143 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.621e-05/0.362, allocations: 13.77 kB / 0.5143 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.362, allocations: 0 / 0.5143 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.3621, allocations: 32.56 kB / 0.5144 GB, free: 7.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3621, allocations: 0 / 0.5144 GB, free: 7.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001756/0.3622, allocations: 52.33 kB / 0.5144 GB, free: 7.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.3623, allocations: 53.34 kB / 0.5145 GB, free: 7.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.967e-05/0.3623, allocations: 99.12 kB / 0.5145 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-06/0.3623, allocations: 25.7 kB / 0.5146 GB, free: 7.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.796e-05/0.3623, allocations: 82.34 kB / 0.5146 GB, free: 7.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.3624, allocations: 12.25 kB / 0.5147 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.3624, allocations: 12.98 kB / 0.5147 GB, free: 7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.3624, allocations: 321 kB / 0.515 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.197e-05/0.3625, allocations: 7.234 kB / 0.515 GB, free: 6.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.35e-05/0.3625, allocations: 3.969 kB / 0.515 GB, free: 6.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.3627, allocations: 36.83 kB / 0.515 GB, free: 6.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3627, allocations: 0 / 0.515 GB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.012e-05/0.3628, allocations: 45.58 kB / 0.5151 GB, free: 6.637 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3628, allocations: 9.656 kB / 0.5151 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3628, allocations: 4.031 kB / 0.5151 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3628, allocations: 5.062 kB / 0.5151 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.3629, allocations: 10.08 kB / 0.5151 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3629, allocations: 0.6562 kB / 0.5151 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.339e-05/0.3629, allocations: 9.516 kB / 0.5151 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.291e-06/0.3629, allocations: 4.281 kB / 0.5151 GB, free: 6.617 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 0.0001014/0.363, allocations: 109.2 kB / 0.5152 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.363, allocations: 5.797 kB / 0.5152 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.022e-05/0.3631, allocations: 16.31 kB / 0.5152 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3631, allocations: 0.5625 kB / 0.5152 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.3631, allocations: 1.312 kB / 0.5152 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3631, allocations: 1.031 kB / 0.5152 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.134e-05/0.3631, allocations: 149.2 kB / 0.5154 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3631, allocations: 0 / 0.5154 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.3632, allocations: 6.469 kB / 0.5154 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3632, allocations: 5.281 kB / 0.5154 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.3632, allocations: 3.375 kB / 0.5154 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3632, allocations: 0.7969 kB / 0.5154 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3632, allocations: 5.344 kB / 0.5154 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.3633, allocations: 76.94 kB / 0.5155 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.071e-05/0.3634, allocations: 79.12 kB / 0.5155 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3634, allocations: 7.188 kB / 0.5156 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.272e-05/0.3634, allocations: 1.438 kB / 0.5156 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.656e-05/0.3634, allocations: 2.594 kB / 0.5156 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.3634, allocations: 1.703 kB / 0.5156 GB, free: 6.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.295e-05/0.3635, allocations: 82.33 kB / 0.5156 GB, free: 6.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3635, allocations: 0.7188 kB / 0.5156 GB, free: 6.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001804/0.3636, allocations: 2.25 kB / 0.5156 GB, free: 6.047 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.0002796/0.3639, allocations: 0.6074 MB / 0.5162 GB, free: 5.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.364, allocations: 19.75 kB / 0.5163 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.364, allocations: 0 / 0.5163 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.416e-05/0.3641, allocations: 9.797 kB / 0.5163 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3642, allocations: 4.578 kB / 0.5163 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007723/0.365, allocations: 1.111 MB / 0.5174 GB, free: 4.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.667e-05/0.3651, allocations: 0.6763 MB / 0.518 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.238e-05/0.3651, allocations: 10.14 kB / 0.518 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.3651, allocations: 8.562 kB / 0.518 GB, free: 3.648 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3651, allocations: 0 / 0.518 GB, free: 3.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.3895, allocations: 1.103 MB / 0.5191 GB, free: 3.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.446, allocations: 7.438 kB / 0.5191 GB, free: 3.293 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.429023245815188] Failed to read output from testmodel.py, exit status != 0: 8.514030368067324 8.537013589 8.171622586 Calling exit ...