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.001362/0.001362, allocations: 105.2 kB / 19.72 MB, free: 2.234 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.001622/0.001622, allocations: 214.8 kB / 23.04 MB, free: 5.074 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.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.1023/0.1023, allocations: 22.94 MB / 336.2 MB, free: 12.58 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.003146/0.003146, allocations: 59.91 kB / 472.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3354, allocations: 59.29 MB / 0.5191 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002958/0.3383, allocations: 2.002 MB / 0.5211 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3397, allocations: 0.7565 MB / 0.5218 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3398, allocations: 11.25 kB / 0.5218 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003655/0.3402, allocations: 80.12 kB / 0.5219 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.3404, allocations: 113.1 kB / 0.522 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005434/0.341, allocations: 223.9 kB / 0.5222 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008363/0.3418, allocations: 0.5902 MB / 0.5228 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.342, allocations: 49.38 kB / 0.5228 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003183/0.3423, allocations: 219.8 kB / 0.523 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/0.3427, allocations: 231.3 kB / 0.5233 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.3427, allocations: 22.16 kB / 0.5233 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.748e-05/0.3428, allocations: 26.72 kB / 0.5233 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.3429, allocations: 109.7 kB / 0.5234 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.343, allocations: 122.2 kB / 0.5235 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000293/0.3433, allocations: 284.1 kB / 0.5238 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3433, allocations: 3.25 kB / 0.5238 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3433, allocations: 0 / 0.5238 GB, free: 7.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3433, allocations: 0 / 0.5238 GB, free: 7.992 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.001866/0.3452, allocations: 0.7043 MB / 0.5245 GB, free: 7.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.3453, allocations: 10.95 kB / 0.5245 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.315e-05/0.3453, allocations: 15.47 kB / 0.5245 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.3453, allocations: 46.3 kB / 0.5246 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.3454, allocations: 36.42 kB / 0.5246 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.3464, allocations: 386.4 kB / 0.525 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.3464, allocations: 9.938 kB / 0.525 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.3465, allocations: 22.58 kB / 0.525 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.3468, allocations: 186.2 kB / 0.5252 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3468, allocations: 0 / 0.5252 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.3468, allocations: 6.344 kB / 0.5252 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.3469, allocations: 6.812 kB / 0.5252 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.3472, allocations: 188.2 kB / 0.5254 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.3484, allocations: 0.608 MB / 0.526 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000894/0.3493, allocations: 334.4 kB / 0.5263 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.3494, allocations: 93.78 kB / 0.5264 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.3495, allocations: 3.438 kB / 0.5264 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.3495, allocations: 36.36 kB / 0.5264 GB, free: 6.586 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.3495, allocations: 3.938 kB / 0.5264 GB, free: 6.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001187/0.3507, allocations: 439.3 kB / 0.5268 GB, free: 6.418 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.3507, allocations: 58.36 kB / 0.5269 GB, free: 6.352 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.3518, allocations: 454.2 kB / 0.5273 GB, free: 6.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.3518, allocations: 31.42 kB / 0.5273 GB, free: 6.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3519, allocations: 163.7 kB / 0.5275 GB, free: 6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.352, allocations: 80.42 kB / 0.5276 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.352, allocations: 45.14 kB / 0.5276 GB, free: 5.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.552e-05/0.3521, allocations: 339.9 kB / 0.5279 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.3523, allocations: 83.31 kB / 0.528 GB, free: 5.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3524, allocations: 111.8 kB / 0.5281 GB, free: 5.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.3541, allocations: 0.5179 MB / 0.5286 GB, free: 5.355 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3541, allocations: 0.9375 kB / 0.5286 GB, free: 5.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006765/0.3548, allocations: 346.4 kB / 0.529 GB, free: 5.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.3548, allocations: 8.938 kB / 0.529 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3548, allocations: 0 / 0.529 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.3551, allocations: 56.42 kB / 0.529 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3552, allocations: 32.02 kB / 0.5291 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.3566, allocations: 1.521 MB / 0.5305 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.3571, allocations: 68.2 kB / 0.5306 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.3572, allocations: 6.688 kB / 0.5306 GB, free: 3.781 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.0002927/0.3575, allocations: 159.5 kB / 0.5308 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.06e-05/0.3575, allocations: 34.16 kB / 0.5308 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.875e-05/0.3576, allocations: 40.27 kB / 0.5308 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3576, allocations: 2.312 kB / 0.5308 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.3577, allocations: 4.906 kB / 0.5308 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3577, allocations: 6.781 kB / 0.5309 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.3582, allocations: 318.8 kB / 0.5312 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3582, allocations: 1.703 kB / 0.5312 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.3584, allocations: 32.81 kB / 0.5312 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001747/0.3586, allocations: 47.64 kB / 0.5312 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.3586, allocations: 8.422 kB / 0.5312 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.3597, allocations: 1.514 MB / 0.5327 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3597, allocations: 1.312 kB / 0.5327 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/0.3604, allocations: 0.5136 MB / 0.5332 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.915e-05/0.3605, allocations: 35.36 kB / 0.5333 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.3605, allocations: 7.875 kB / 0.5333 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.361, allocations: 73.73 kB / 0.5333 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.3611, allocations: 18.22 kB / 0.5334 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3611, allocations: 5.625 kB / 0.5334 GB, free: 1.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.3621, allocations: 360 kB / 0.5337 GB, free: 1.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3621, allocations: 0.5312 kB / 0.5337 GB, free: 1.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.3626, allocations: 52.61 kB / 0.5338 GB, free: 1.484 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.0009382/0.3635, allocations: 1.055 MB / 0.5348 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005863/0.3641, allocations: 348.8 kB / 0.5351 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3641, allocations: 1.156 kB / 0.5351 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.3644, allocations: 240.4 kB / 0.5353 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.3648, allocations: 49.59 kB / 0.5354 GB, free: 324 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006578/0.3714, allocations: 3.414 MB / 0.5387 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.3718, allocations: 0.7942 MB / 0.5395 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.372, allocations: 61.56 kB / 0.5396 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3722, allocations: 90.36 kB / 0.5396 GB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3722, allocations: 0 / 0.5396 GB, free: 13.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.4027, allocations: 6.495 MB / 0.546 GB, free: 11.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.41, allocations: 10.41 kB / 0.546 GB, free: 11.16 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.160583985038102] Failed to read output from testmodel.py, exit status != 0: 12.573399237997364 12.590350716 12.243751019 Calling exit ...