Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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.001337/0.001337, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001488/0.001488, allocations: 220.2 kB / 23.03 MB, free: 4.945 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1049/0.1049, allocations: 22.94 MB / 336.1 MB, free: 12.51 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_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="cs",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.003225/0.003225, allocations: 64.19 kB / 472.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3318, allocations: 59.29 MB / 0.519 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002975/0.3347, allocations: 1.908 MB / 0.5209 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.3361, allocations: 0.7118 MB / 0.5216 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.3362, allocations: 3.438 kB / 0.5216 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004091/0.3366, allocations: 89.19 kB / 0.5216 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.3369, allocations: 109.8 kB / 0.5218 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006535/0.3376, allocations: 219.3 kB / 0.522 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.3386, allocations: 0.5947 MB / 0.5225 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.3388, allocations: 51.7 kB / 0.5226 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003918/0.3392, allocations: 222 kB / 0.5228 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004147/0.3396, allocations: 233.8 kB / 0.523 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.3397, allocations: 22.56 kB / 0.523 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.3397, allocations: 23.94 kB / 0.5231 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3399, allocations: 100.8 kB / 0.5232 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.34, allocations: 94.02 kB / 0.5233 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003312/0.3403, allocations: 289.2 kB / 0.5235 GB, free: 7.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3403, allocations: 0 / 0.5235 GB, free: 7.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3403, allocations: 0 / 0.5235 GB, free: 7.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3403, allocations: 0 / 0.5235 GB, free: 7.984 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002082/0.3424, allocations: 0.7144 MB / 0.5242 GB, free: 7.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.864e-05/0.3425, allocations: 10.83 kB / 0.5242 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.614e-05/0.3425, allocations: 3.75 kB / 0.5242 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.3426, allocations: 46.7 kB / 0.5243 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.629e-05/0.3426, allocations: 40.36 kB / 0.5243 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.3437, allocations: 384.6 kB / 0.5247 GB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.3437, allocations: 14.19 kB / 0.5247 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.3438, allocations: 18.52 kB / 0.5247 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003564/0.3441, allocations: 188.2 kB / 0.5249 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3441, allocations: 0 / 0.5249 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.3441, allocations: 5.281 kB / 0.5249 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3441, allocations: 3.844 kB / 0.5249 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.3445, allocations: 190.4 kB / 0.5251 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.3456, allocations: 0.5686 MB / 0.5256 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009233/0.3466, allocations: 338.8 kB / 0.526 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3467, allocations: 92.97 kB / 0.5261 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.3468, allocations: 11.22 kB / 0.5261 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.3468, allocations: 37.19 kB / 0.5261 GB, free: 6.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.3468, allocations: 0 / 0.5261 GB, free: 6.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001146/0.3479, allocations: 436.9 kB / 0.5265 GB, free: 6.418 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.348, allocations: 53.53 kB / 0.5266 GB, free: 6.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009666/0.3489, allocations: 454.8 kB / 0.527 GB, free: 6.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.3489, allocations: 27.72 kB / 0.527 GB, free: 6.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.709e-05/0.349, allocations: 168.4 kB / 0.5272 GB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.813e-05/0.3491, allocations: 78.5 kB / 0.5273 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.485e-05/0.3492, allocations: 42.09 kB / 0.5273 GB, free: 5.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.3492, allocations: 345 kB / 0.5276 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.3494, allocations: 83.02 kB / 0.5277 GB, free: 5.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.3495, allocations: 108 kB / 0.5278 GB, free: 5.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.3511, allocations: 0.5215 MB / 0.5283 GB, free: 5.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3511, allocations: 0 / 0.5283 GB, free: 5.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005715/0.3517, allocations: 347.2 kB / 0.5287 GB, free: 5.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3517, allocations: 9.312 kB / 0.5287 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.3517, allocations: 0 / 0.5287 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.3519, allocations: 57.48 kB / 0.5287 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.3521, allocations: 35.75 kB / 0.5288 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.3532, allocations: 1.499 MB / 0.5302 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004835/0.3537, allocations: 72.72 kB / 0.5303 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.3537, allocations: 9.281 kB / 0.5303 GB, free: 3.785 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003172/0.354, allocations: 162.2 kB / 0.5305 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.937e-05/0.3541, allocations: 29.66 kB / 0.5305 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.181e-05/0.3542, allocations: 40.3 kB / 0.5305 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.3542, allocations: 3.5 kB / 0.5305 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.3542, allocations: 8.531 kB / 0.5305 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3542, allocations: 1.953 kB / 0.5305 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.3547, allocations: 293.1 kB / 0.5308 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3547, allocations: 192 / 0.5308 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.3549, allocations: 40.03 kB / 0.5309 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002072/0.3551, allocations: 46.88 kB / 0.5309 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.3551, allocations: 8.594 kB / 0.5309 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.3564, allocations: 1.496 MB / 0.5324 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3564, allocations: 0.8125 kB / 0.5324 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009389/0.3573, allocations: 0.5161 MB / 0.5329 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/0.3574, allocations: 40.2 kB / 0.5329 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/0.3574, allocations: 5.641 kB / 0.5329 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.3579, allocations: 61.28 kB / 0.533 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.545e-05/0.358, allocations: 20.73 kB / 0.533 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.358, allocations: 8.406 kB / 0.533 GB, free: 1.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009905/0.359, allocations: 361.9 kB / 0.5333 GB, free: 1.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.359, allocations: 4 kB / 0.5334 GB, free: 1.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.3594, allocations: 57.64 kB / 0.5334 GB, free: 1.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008322/0.3603, allocations: 1.054 MB / 0.5344 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005859/0.3608, allocations: 347.6 kB / 0.5348 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3608, allocations: 3.938 kB / 0.5348 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.3611, allocations: 236.1 kB / 0.535 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.3615, allocations: 51.34 kB / 0.535 GB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/0.3678, allocations: 3.412 MB / 0.5384 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.3681, allocations: 188.3 kB / 0.5386 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.3682, allocations: 56.72 kB / 0.5386 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3684, allocations: 90.58 kB / 0.5387 GB, free: 14.31 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3684, allocations: 0 / 0.5387 GB, free: 14.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.4001, allocations: 6.638 MB / 0.5452 GB, free: 11.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.56, allocations: 6.359 kB / 0.5452 GB, free: 11.78 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay_fmu --startTime=0 --stopTime=30 --stepSize=0.1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.326755804941058] Failed to read output from testmodel.py, exit status != 0: 12.730289193917997 12.745226784 12.401927926 Calling exit ...