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.001414/0.001414, allocations: 116.8 kB / 17.17 MB, free: 6 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.001573/0.001573, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.514/1.514, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.101/0.101, allocations: 22.92 MB / 332.5 MB, free: 2.629 MB / 254.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.002038/0.002038, allocations: 70.12 kB / 466.7 MB, free: 32.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.105, allocations: 59.27 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003356/0.1083, allocations: 2.001 MB / 0.5156 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1098, allocations: 0.7482 MB / 0.5164 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1099, allocations: 4 kB / 0.5164 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003788/0.1102, allocations: 87.41 kB / 0.5164 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1105, allocations: 107.4 kB / 0.5165 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004324/0.1109, allocations: 183.7 kB / 0.5167 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000548/0.1115, allocations: 0.4951 MB / 0.5172 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1116, allocations: 44.72 kB / 0.5173 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.1119, allocations: 203.4 kB / 0.5174 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.1122, allocations: 231.1 kB / 0.5177 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.1123, allocations: 28 kB / 0.5177 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-05/0.1123, allocations: 24 kB / 0.5177 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1124, allocations: 99.64 kB / 0.5178 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.1126, allocations: 127.1 kB / 0.5179 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.1129, allocations: 274.7 kB / 0.5182 GB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1129, allocations: 4 kB / 0.5182 GB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1129, allocations: 3.938 kB / 0.5182 GB, free: 9.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1129, allocations: 0 / 0.5182 GB, free: 9.355 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.002178/0.1151, allocations: 0.7826 MB / 0.519 GB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1151, allocations: 16.62 kB / 0.519 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.991e-05/0.1151, allocations: 4.188 kB / 0.519 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.223e-05/0.1152, allocations: 46.73 kB / 0.519 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.1153, allocations: 36.7 kB / 0.5191 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.1164, allocations: 448.1 kB / 0.5195 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.1164, allocations: 8.375 kB / 0.5195 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.1164, allocations: 20.33 kB / 0.5195 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.1168, allocations: 197 kB / 0.5197 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1168, allocations: 0 / 0.5197 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.1168, allocations: 12 kB / 0.5197 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1168, allocations: 0 / 0.5197 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.1172, allocations: 191.9 kB / 0.5199 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.1184, allocations: 0.6407 MB / 0.5205 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008812/0.1192, allocations: 338.7 kB / 0.5208 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.1194, allocations: 92.81 kB / 0.5209 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.1195, allocations: 0 / 0.5209 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.1195, allocations: 46.55 kB / 0.521 GB, free: 6.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.1195, allocations: 0 / 0.521 GB, free: 6.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001302/0.1208, allocations: 0.5008 MB / 0.5215 GB, free: 5.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.1209, allocations: 55.41 kB / 0.5215 GB, free: 5.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.122, allocations: 452.3 kB / 0.522 GB, free: 5.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.122, allocations: 25.7 kB / 0.522 GB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.1221, allocations: 168.5 kB / 0.5221 GB, free: 5.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.708e-05/0.1222, allocations: 83.27 kB / 0.5222 GB, free: 5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.378e-05/0.1223, allocations: 41.7 kB / 0.5223 GB, free: 4.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.1225, allocations: 342.8 kB / 0.5226 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.1227, allocations: 88.19 kB / 0.5227 GB, free: 4.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.1229, allocations: 102.1 kB / 0.5228 GB, free: 4.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.1246, allocations: 0.5235 MB / 0.5233 GB, free: 3.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1246, allocations: 4 kB / 0.5233 GB, free: 3.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006814/0.1252, allocations: 342 kB / 0.5236 GB, free: 3.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1253, allocations: 4 kB / 0.5236 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1253, allocations: 0 / 0.5236 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.1255, allocations: 56.84 kB / 0.5237 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1257, allocations: 39.92 kB / 0.5237 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.1274, allocations: 1.606 MB / 0.5253 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.1278, allocations: 71.83 kB / 0.5253 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1279, allocations: 4 kB / 0.5253 GB, free: 1.621 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.000273/0.1281, allocations: 167.9 kB / 0.5255 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/0.1282, allocations: 27.81 kB / 0.5255 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1283, allocations: 47.02 kB / 0.5256 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.1283, allocations: 4 kB / 0.5256 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1283, allocations: 7.938 kB / 0.5256 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.1283, allocations: 7.969 kB / 0.5256 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.1288, allocations: 353.5 kB / 0.5259 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.1288, allocations: 4 kB / 0.5259 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.129, allocations: 23.98 kB / 0.526 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.1292, allocations: 48.83 kB / 0.526 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.1292, allocations: 11.98 kB / 0.526 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001513/0.1307, allocations: 1.606 MB / 0.5276 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1307, allocations: 0 / 0.5276 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.1316, allocations: 0.5196 MB / 0.5281 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.1317, allocations: 120.9 kB / 0.5282 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.1317, allocations: 4 kB / 0.5282 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.1322, allocations: 67.84 kB / 0.5283 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.1322, allocations: 15.98 kB / 0.5283 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.1323, allocations: 11.94 kB / 0.5283 GB, free: 14.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009725/0.1332, allocations: 362.8 kB / 0.5287 GB, free: 14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1332, allocations: 0 / 0.5287 GB, free: 14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.1336, allocations: 55.95 kB / 0.5287 GB, free: 13.94 MB / 398.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.001256/0.1348, allocations: 1.056 MB / 0.5297 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007126/0.1355, allocations: 342.5 kB / 0.5301 GB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1355, allocations: 0 / 0.5301 GB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.1359, allocations: 234.6 kB / 0.5303 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.1363, allocations: 52.8 kB / 0.5303 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006473/0.1428, allocations: 3.406 MB / 0.5337 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1432, allocations: 0.7951 MB / 0.5344 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000162/0.1434, allocations: 66.22 kB / 0.5345 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.1435, allocations: 87.41 kB / 0.5346 GB, free: 7.754 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1435, allocations: 0 / 0.5346 GB, free: 7.754 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/0.1715, allocations: 6.333 MB / 0.5408 GB, free: 1.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.75, allocations: 15.67 kB / 0.5408 GB, free: 1.566 MB / 398.1 MB " [Timeout remaining time 649] (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: 13.541973532992415] Failed to read output from testmodel.py, exit status != 0: 10.889339190965984 10.904955467 10.789126373 Calling exit ...