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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 194.2 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1581/0.1581, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.89 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2045, allocations: 54.93 MB / 435.2 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002153/0.2067, allocations: 2.023 MB / 437.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000783/0.2075, allocations: 0.7014 MB / 437.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.086e-05/0.2075, allocations: 6.625 kB / 437.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.2078, allocations: 72.2 kB / 438 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.208, allocations: 96.73 kB / 438 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.2083, allocations: 172.6 kB / 438.2 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.2086, allocations: 475.5 kB / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2087, allocations: 67.91 kB / 438.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.2088, allocations: 176.2 kB / 438.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.209, allocations: 203.9 kB / 439.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.2091, allocations: 13.38 kB / 439.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.281e-05/0.2091, allocations: 13.72 kB / 439.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.2092, allocations: 91.33 kB / 439.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.2093, allocations: 109.2 kB / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.2094, allocations: 263.7 kB / 439.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2094, allocations: 4 kB / 439.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.2094, allocations: 7.875 kB / 439.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.2094, allocations: 0 / 439.6 MB, free: 36.82 MB / 350.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.001497/0.2109, allocations: 0.7739 MB / 440.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.211, allocations: 11.69 kB / 440.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.211, allocations: 47.81 kB / 440.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.2111, allocations: 35.44 kB / 440.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007791/0.2118, allocations: 442.7 kB / 440.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.2119, allocations: 8.938 kB / 440.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.2119, allocations: 16.97 kB / 440.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.2121, allocations: 190.8 kB / 441.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.2122, allocations: 3.938 kB / 441.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.2122, allocations: 6.844 kB / 441.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2122, allocations: 6.719 kB / 441.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.2125, allocations: 189.7 kB / 441.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007613/0.2132, allocations: 0.6373 MB / 442 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.2139, allocations: 344.4 kB / 442.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.214, allocations: 108.9 kB / 442.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.2141, allocations: 2.812 kB / 442.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.748e-06/0.2141, allocations: 30.56 kB / 442.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.2141, allocations: 4 kB / 442.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009027/0.215, allocations: 0.4997 MB / 442.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.605e-05/0.215, allocations: 58.34 kB / 443 MB, free: 34.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007645/0.2158, allocations: 454.6 kB / 443.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.2158, allocations: 29.7 kB / 443.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.2159, allocations: 167 kB / 443.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.2159, allocations: 73.59 kB / 443.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.216, allocations: 44.5 kB / 443.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.216, allocations: 340.6 kB / 444.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.2162, allocations: 82.12 kB / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2163, allocations: 109.8 kB / 444.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.2176, allocations: 0.5119 MB / 444.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2176, allocations: 4 kB / 444.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004485/0.218, allocations: 347.7 kB / 445.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.2181, allocations: 9.125 kB / 445.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.2181, allocations: 0 / 445.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001545/0.2182, allocations: 47.89 kB / 445.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.2184, allocations: 36.55 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000801/0.2192, allocations: 1.502 MB / 446.7 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.2196, allocations: 74.05 kB / 446.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2196, allocations: 9.562 kB / 446.8 MB, free: 32.33 MB / 350.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.0001298/0.2197, allocations: 179.2 kB / 447 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.2198, allocations: 26.66 kB / 447 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.302e-05/0.2198, allocations: 44.83 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2198, allocations: 2.844 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2199, allocations: 0 / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2199, allocations: 7.172 kB / 447.1 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.2201, allocations: 349.1 kB / 447.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2201, allocations: 3.938 kB / 447.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.2203, allocations: 24.81 kB / 447.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/0.2204, allocations: 51.34 kB / 447.5 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.2205, allocations: 11.34 kB / 447.5 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007593/0.2212, allocations: 1.5 MB / 449 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2212, allocations: 0 / 449 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005666/0.2218, allocations: 0.517 MB / 449.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.2219, allocations: 114.9 kB / 449.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.2219, allocations: 7.25 kB / 449.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.2223, allocations: 60.23 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.2224, allocations: 18.62 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2224, allocations: 6.688 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006719/0.2231, allocations: 359.9 kB / 450.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2231, allocations: 0 / 450.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.2233, allocations: 55.53 kB / 450.1 MB, free: 29.89 MB / 350.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.0006944/0.224, allocations: 1.072 MB / 451.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004407/0.2245, allocations: 355 kB / 451.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2245, allocations: 0 / 451.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.2248, allocations: 242.9 kB / 451.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2251, allocations: 50.52 kB / 451.8 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.2294, allocations: 3.495 MB / 455.3 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001475/0.2296, allocations: 0.7984 MB / 456.1 MB, free: 26.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.2297, allocations: 56.58 kB / 456.2 MB, free: 26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.2298, allocations: 90.3 kB / 456.2 MB, free: 25.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2298, allocations: 0 / 456.2 MB, free: 25.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.2457, allocations: 5.835 MB / 462.1 MB, free: 25.45 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.2458, allocations: 236.9 kB / 462.3 MB, free: 25.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/1.884, allocations: 0 / 462.3 MB, free: 25.2 MB / 350.1 MB (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 --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)