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.0007746/0.0007746, allocations: 76.52 kB / 19.95 MB, free: 4.598 MB / 18.57 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.0008531/0.0008531, allocations: 169.2 kB / 23.23 MB, free: 1.316 MB / 18.57 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 0.9155/0.9155, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.06245/0.06245, allocations: 18.13 MB / 278.1 MB, free: 11.55 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.427e-05, allocations: 2.844 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002303/0.002328, allocations: 1.917 MB / 417 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003439, allocations: 0.7115 MB / 417.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.003584, allocations: 7.219 kB / 417.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003812/0.003965, allocations: 84.3 kB / 417.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.004211, allocations: 106 kB / 417.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.00485, allocations: 297.5 kB / 418.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.005293, allocations: 343.6 kB / 418.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.00544, allocations: 43.28 kB / 418.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.005697, allocations: 146.7 kB / 418.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.006005, allocations: 184.8 kB / 418.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.006076, allocations: 22.88 kB / 418.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.131e-05/0.006117, allocations: 23.03 kB / 418.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.006234, allocations: 103.6 kB / 419 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.006328, allocations: 73.64 kB / 419.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.00667, allocations: 289.5 kB / 419.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.006675, allocations: 0.8438 kB / 419.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.006676, allocations: 0 / 419.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.006686, allocations: 0 / 419.4 MB, free: 10.28 MB / 330.7 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.001349/0.008035, allocations: 0.7018 MB / 420.1 MB, free: 9.863 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.008084, allocations: 10.14 kB / 420.1 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.255e-05/0.008127, allocations: 51.98 kB / 420.1 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.887e-05/0.008195, allocations: 36.3 kB / 420.2 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.008834, allocations: 381.2 kB / 420.5 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.008851, allocations: 14.06 kB / 420.6 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.008884, allocations: 22.67 kB / 420.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.009156, allocations: 183.2 kB / 420.8 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.009165, allocations: 192 / 420.8 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.00918, allocations: 9.25 kB / 420.8 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.009187, allocations: 3.594 kB / 420.8 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.009455, allocations: 190.8 kB / 421 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007604/0.01022, allocations: 0.569 MB / 421.5 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/0.01106, allocations: 330.8 kB / 421.8 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.01118, allocations: 93.64 kB / 421.9 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.01121, allocations: 7.438 kB / 421.9 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.01122, allocations: 32.25 kB / 422 MB, free: 8.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.01123, allocations: 1.094 kB / 422 MB, free: 8.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007828/0.01201, allocations: 431.9 kB / 422.4 MB, free: 8.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.01204, allocations: 59.36 kB / 422.5 MB, free: 8.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/0.01266, allocations: 454.5 kB / 422.9 MB, free: 8.492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.01267, allocations: 30.92 kB / 422.9 MB, free: 8.457 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.01275, allocations: 163.9 kB / 423.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.0128, allocations: 82.56 kB / 423.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.01286, allocations: 42.41 kB / 423.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.0129, allocations: 345 kB / 423.6 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.01302, allocations: 88.98 kB / 423.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.01315, allocations: 111.2 kB / 423.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009856/0.01413, allocations: 0.5165 MB / 424.3 MB, free: 7.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.01414, allocations: 0 / 424.3 MB, free: 7.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004738/0.01461, allocations: 340 kB / 424.6 MB, free: 7.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.01463, allocations: 6.906 kB / 424.6 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01464, allocations: 4.594 kB / 424.6 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.01482, allocations: 56.8 kB / 424.7 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.01493, allocations: 35.31 kB / 424.7 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/0.01591, allocations: 1.499 MB / 426.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.01617, allocations: 73.58 kB / 426.3 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.01619, allocations: 8.344 kB / 426.3 MB, free: 6.098 MB / 330.7 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.0001995/0.01639, allocations: 162 kB / 426.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.01643, allocations: 33.19 kB / 426.5 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.01647, allocations: 44.48 kB / 426.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01648, allocations: 3.469 kB / 426.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.01649, allocations: 0 / 426.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01649, allocations: 2.422 kB / 426.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.01677, allocations: 287.8 kB / 426.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.01677, allocations: 2.141 kB / 426.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.01688, allocations: 27.39 kB / 426.8 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.017, allocations: 51.67 kB / 426.9 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.01702, allocations: 8.359 kB / 426.9 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007455/0.01776, allocations: 1.507 MB / 428.4 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.01777, allocations: 5.031 kB / 428.4 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005339/0.0183, allocations: 0.5089 MB / 428.9 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.01835, allocations: 41.61 kB / 428.9 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.01837, allocations: 7.078 kB / 429 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.01859, allocations: 66.84 kB / 429 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.01867, allocations: 16.77 kB / 429 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.01868, allocations: 13.23 kB / 429 MB, free: 3.957 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005082/0.01918, allocations: 356.8 kB / 429.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01918, allocations: 0 / 429.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.01947, allocations: 62.28 kB / 429.5 MB, free: 3.816 MB / 330.7 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.0006629/0.02013, allocations: 1.057 MB / 430.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004978/0.02063, allocations: 348.9 kB / 430.9 MB, free: 2.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.02063, allocations: 0 / 430.9 MB, free: 2.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.02083, allocations: 236.8 kB / 431.1 MB, free: 2.672 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.02114, allocations: 52.66 kB / 431.1 MB, free: 2.648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.02488, allocations: 3.402 MB / 434.5 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/0.02502, allocations: 186 kB / 434.7 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00014/0.02516, allocations: 57.45 kB / 434.8 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.02527, allocations: 91.97 kB / 434.9 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.02527, allocations: 0 / 434.9 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.04837, allocations: 7.135 MB / 442 MB, free: 13.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.1/7.149, allocations: 1.375 kB / 442 MB, free: 13.07 MB / 346.7 MB " [Timeout remaining time 653] (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: 9.079198139719665] Failed to read output from testmodel.py, exit status != 0: 7.236298610456288 7.246205872 7.236829856 Calling exit ...