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.001819/0.001819, 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.001461/0.001461, allocations: 207.7 kB / 23.01 MB, free: 4.988 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1071/0.1071, allocations: 24.03 MB / 337.2 MB, free: 11.33 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="me",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="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.002127/0.002127, allocations: 67.91 kB / 473.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3398, allocations: 59.57 MB / 0.5209 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002901/0.3427, allocations: 1.914 MB / 0.5228 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.3442, allocations: 0.7033 MB / 0.5235 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.3443, allocations: 8.094 kB / 0.5235 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003519/0.3446, allocations: 83.5 kB / 0.5235 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.3449, allocations: 115 kB / 0.5237 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.3454, allocations: 206.6 kB / 0.5239 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.3461, allocations: 0.5867 MB / 0.5244 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3462, allocations: 49.03 kB / 0.5245 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.3465, allocations: 219 kB / 0.5247 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.3468, allocations: 223.4 kB / 0.5249 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.3469, allocations: 22.53 kB / 0.5249 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.825e-05/0.3469, allocations: 23.5 kB / 0.5249 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.347, allocations: 106.1 kB / 0.525 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.318e-05/0.3471, allocations: 101.4 kB / 0.5251 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.3474, allocations: 280.7 kB / 0.5254 GB, free: 7.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3474, allocations: 3.938 kB / 0.5254 GB, free: 7.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3474, allocations: 1.25 kB / 0.5254 GB, free: 7.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3474, allocations: 0 / 0.5254 GB, free: 7.559 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.001832/0.3492, allocations: 0.7102 MB / 0.5261 GB, free: 7.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3493, allocations: 14.33 kB / 0.5261 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.219e-05/0.3493, allocations: 46.56 kB / 0.5262 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.3494, allocations: 36.23 kB / 0.5262 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.3504, allocations: 383.6 kB / 0.5266 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.3505, allocations: 9.562 kB / 0.5266 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.3505, allocations: 18.58 kB / 0.5266 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.3508, allocations: 193.2 kB / 0.5268 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3508, allocations: 0 / 0.5268 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.3508, allocations: 6.25 kB / 0.5268 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3508, allocations: 3.5 kB / 0.5268 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003299/0.3512, allocations: 189.2 kB / 0.527 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009706/0.3521, allocations: 0.5647 MB / 0.5275 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.3529, allocations: 338.8 kB / 0.5278 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.3531, allocations: 97.7 kB / 0.5279 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.3531, allocations: 2.922 kB / 0.5279 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.515e-05/0.3532, allocations: 32.59 kB / 0.528 GB, free: 6.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.3532, allocations: 5.031 kB / 0.528 GB, free: 6.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001119/0.3543, allocations: 438.1 kB / 0.5284 GB, free: 6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.3543, allocations: 52.84 kB / 0.5284 GB, free: 5.938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009985/0.3553, allocations: 454.6 kB / 0.5289 GB, free: 5.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3553, allocations: 30.73 kB / 0.5289 GB, free: 5.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/0.3554, allocations: 166.3 kB / 0.5291 GB, free: 5.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.396e-05/0.3555, allocations: 78.8 kB / 0.5291 GB, free: 5.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-05/0.3555, allocations: 45.09 kB / 0.5292 GB, free: 5.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.94e-05/0.3556, allocations: 340.9 kB / 0.5295 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.3557, allocations: 82.7 kB / 0.5296 GB, free: 5.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.3559, allocations: 110.1 kB / 0.5297 GB, free: 5.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.3574, allocations: 0.52 MB / 0.5302 GB, free: 4.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3574, allocations: 4.656 kB / 0.5302 GB, free: 4.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005803/0.358, allocations: 343 kB / 0.5305 GB, free: 4.789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.358, allocations: 8.188 kB / 0.5305 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.358, allocations: 0 / 0.5305 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.3582, allocations: 56.58 kB / 0.5306 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.3583, allocations: 36.86 kB / 0.5306 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.3595, allocations: 1.508 MB / 0.5321 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.3599, allocations: 67.06 kB / 0.5322 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.36, allocations: 8.875 kB / 0.5322 GB, free: 3.363 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.0002518/0.3602, allocations: 169.5 kB / 0.5323 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.3603, allocations: 29.55 kB / 0.5324 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.9e-05/0.3604, allocations: 44.7 kB / 0.5324 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3604, allocations: 3.062 kB / 0.5324 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3604, allocations: 1.125 kB / 0.5324 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3604, allocations: 5.203 kB / 0.5324 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004578/0.3608, allocations: 294.2 kB / 0.5327 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3608, allocations: 192 / 0.5327 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.361, allocations: 30.64 kB / 0.5327 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.3612, allocations: 46.89 kB / 0.5328 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.3613, allocations: 6.75 kB / 0.5328 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.3625, allocations: 1.499 MB / 0.5342 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3625, allocations: 4.062 kB / 0.5342 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.3633, allocations: 0.5173 MB / 0.5347 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.3634, allocations: 42.3 kB / 0.5348 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.3635, allocations: 11.69 kB / 0.5348 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3639, allocations: 62.09 kB / 0.5349 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.364, allocations: 24.03 kB / 0.5349 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.364, allocations: 4.531 kB / 0.5349 GB, free: 1.215 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001002/0.365, allocations: 366 kB / 0.5352 GB, free: 1.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.365, allocations: 0 / 0.5352 GB, free: 1.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.3654, allocations: 57.39 kB / 0.5353 GB, free: 1.062 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.0008555/0.3663, allocations: 1.055 MB / 0.5363 GB, free: 260 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005758/0.3669, allocations: 353.2 kB / 0.5367 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3669, allocations: 1.094 kB / 0.5367 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003676/0.3672, allocations: 232.4 kB / 0.5369 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.3677, allocations: 53.2 kB / 0.5369 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/0.3741, allocations: 3.398 MB / 0.5402 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.3743, allocations: 192.4 kB / 0.5404 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.3745, allocations: 56.8 kB / 0.5405 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.3747, allocations: 91 kB / 0.5406 GB, free: 13.87 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3747, allocations: 0 / 0.5406 GB, free: 13.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.4129, allocations: 6.96 MB / 0.5474 GB, free: 10.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.14, allocations: 8.359 kB / 0.5474 GB, free: 10.79 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.762313954066485] Failed to read output from testmodel.py, exit status != 0: 12.257156731095165 12.273210114 11.922737844 Calling exit ...