Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.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.001299/0.001299, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001912/0.001912, allocations: 217.3 kB / 22.25 MB, free: 5.078 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.992 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.1065/0.1065, allocations: 24.12 MB / 336.6 MB, free: 11.44 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.Typical_actuation_schemes.DaisyChain,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_DaisyChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.DaisyChain,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_DaisyChain",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.003257/0.003257, allocations: 75.88 kB / 473.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3483, allocations: 59.58 MB / 0.5204 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.DaisyChain): time 0.004/0.3523, allocations: 1.824 MB / 0.5222 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3539, allocations: 0.6365 MB / 0.5228 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.354, allocations: 1.375 kB / 0.5228 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000393/0.3544, allocations: 41.75 kB / 0.5228 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.3547, allocations: 57.47 kB / 0.5229 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.3552, allocations: 116.6 kB / 0.523 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006508/0.3558, allocations: 309.6 kB / 0.5233 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.356, allocations: 33.62 kB / 0.5233 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.3562, allocations: 111.4 kB / 0.5234 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.3566, allocations: 135.9 kB / 0.5236 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.247e-05/0.3566, allocations: 13.91 kB / 0.5236 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.165e-05/0.3567, allocations: 15.44 kB / 0.5236 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.3568, allocations: 60.73 kB / 0.5237 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.3569, allocations: 83.84 kB / 0.5237 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.3572, allocations: 189.4 kB / 0.5239 GB, free: 8.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3572, allocations: 4 kB / 0.5239 GB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3572, allocations: 1.375 kB / 0.5239 GB, free: 8.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3572, allocations: 0 / 0.5239 GB, free: 8.152 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001714/0.3589, allocations: 0.4966 MB / 0.5244 GB, free: 7.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.359, allocations: 11.55 kB / 0.5244 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.773e-05/0.359, allocations: 45.62 kB / 0.5245 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.283e-05/0.3591, allocations: 23.33 kB / 0.5245 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000905/0.36, allocations: 263.1 kB / 0.5247 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.36, allocations: 5.016 kB / 0.5247 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.3601, allocations: 15.45 kB / 0.5248 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.3605, allocations: 157.8 kB / 0.5249 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.3605, allocations: 1.188 kB / 0.5249 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.3605, allocations: 5.094 kB / 0.5249 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3605, allocations: 2.312 kB / 0.5249 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.361, allocations: 134.7 kB / 0.525 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.3623, allocations: 0.5073 MB / 0.5255 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006982/0.363, allocations: 187.1 kB / 0.5257 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.3633, allocations: 81.83 kB / 0.5258 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.3633, allocations: 5.125 kB / 0.5258 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.3633, allocations: 36.59 kB / 0.5258 GB, free: 6.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 2.234e-06/0.3634, allocations: 1.188 kB / 0.5258 GB, free: 6.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008494/0.3642, allocations: 261.9 kB / 0.5261 GB, free: 6.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.3642, allocations: 57.34 kB / 0.5261 GB, free: 6.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008423/0.3651, allocations: 264.3 kB / 0.5264 GB, free: 6.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.3651, allocations: 26.89 kB / 0.5264 GB, free: 6.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.463e-05/0.3652, allocations: 135.8 kB / 0.5266 GB, free: 6.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.3652, allocations: 68 kB / 0.5266 GB, free: 6.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.731e-05/0.3653, allocations: 38.73 kB / 0.5267 GB, free: 6.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.3654, allocations: 330.4 kB / 0.527 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.3656, allocations: 63.81 kB / 0.527 GB, free: 6.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.3658, allocations: 61.81 kB / 0.5271 GB, free: 6.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002944/0.3688, allocations: 483.8 kB / 0.5275 GB, free: 5.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3688, allocations: 1.125 kB / 0.5275 GB, free: 5.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006076/0.3694, allocations: 227.8 kB / 0.5278 GB, free: 5.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3694, allocations: 7.047 kB / 0.5278 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3694, allocations: 0 / 0.5278 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3694, allocations: 1.281 kB / 0.5278 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003277/0.3697, allocations: 46.88 kB / 0.5278 GB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.3697, allocations: 1.375 kB / 0.5278 GB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.3701, allocations: 34.33 kB / 0.5279 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.3701, allocations: 10.59 kB / 0.5279 GB, free: 5.789 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) \"Connector of Real output signal\" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) \"Connector of Real output signal\" type: Real Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] 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 (21): * Single equations (assignments): 21 * 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.0002072/0.3703, allocations: 158.3 kB / 0.528 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.3704, allocations: 20.42 kB / 0.528 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006874/0.3711, allocations: 241 kB / 0.5283 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.3711, allocations: 1.406 kB / 0.5283 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3711, allocations: 0.6094 kB / 0.5283 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.3711, allocations: 1.844 kB / 0.5283 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.3715, allocations: 262.4 kB / 0.5285 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3716, allocations: 4 kB / 0.5285 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.3719, allocations: 36.67 kB / 0.5286 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3719, allocations: 1.812 kB / 0.5286 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.372, allocations: 8.594 kB / 0.5286 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.372, allocations: 0 / 0.5286 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.372, allocations: 1.5 kB / 0.5286 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008229/0.3728, allocations: 406 kB / 0.529 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.016e-05/0.3729, allocations: 29.48 kB / 0.529 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.3729, allocations: 2.859 kB / 0.529 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.3734, allocations: 31.03 kB / 0.529 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.3734, allocations: 10.27 kB / 0.529 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.3735, allocations: 9.578 kB / 0.529 GB, free: 5.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006785/0.3741, allocations: 218.2 kB / 0.5292 GB, free: 4.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3741, allocations: 0 / 0.5292 GB, free: 4.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.3746, allocations: 43.95 kB / 0.5293 GB, free: 4.926 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y) * 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 (18): * Single equations (assignments): 18 * 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.0009815/0.3756, allocations: 0.9308 MB / 0.5302 GB, free: 4.168 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005387/0.3761, allocations: 176.4 kB / 0.5304 GB, free: 4.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3761, allocations: 0.9688 kB / 0.5304 GB, free: 4.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.3764, allocations: 84.22 kB / 0.5304 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.377, allocations: 38.42 kB / 0.5305 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005638/0.3826, allocations: 2.489 MB / 0.5329 GB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.3828, allocations: 0.753 MB / 0.5336 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.383, allocations: 43.16 kB / 0.5337 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.3832, allocations: 66.09 kB / 0.5337 GB, free: 1.73 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3832, allocations: 3.938 kB / 0.5338 GB, free: 1.727 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03465/0.4178, allocations: 4.415 MB / 0.5381 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.56, allocations: 10.81 kB / 0.5381 GB, free: 0.9805 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.DaisyChain_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_Typical_actuation_schemes_DaisyChain.fmu > AES_AES.Coursework.Typical_actuation_schemes.DaisyChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.300817576004192] Failed to read output from testmodel.py, exit status != 0: 11.671803434001049 11.691875552 11.330161272 Calling exit ...