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.001144/0.001144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001111/0.001111, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.159/1.159, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1747/0.1747, allocations: 22.35 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 55.91 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2072, allocations: 54.94 MB / 435.3 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002125/0.2094, allocations: 2.016 MB / 437.4 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007874/0.2101, allocations: 0.6975 MB / 438.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.22e-05/0.2102, allocations: 3.094 kB / 438.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.2105, allocations: 74.19 kB / 438.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.2107, allocations: 94.34 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.211, allocations: 176.3 kB / 438.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.2113, allocations: 493.8 kB / 438.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2114, allocations: 73.48 kB / 438.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.2116, allocations: 203.2 kB / 439.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.2118, allocations: 211.8 kB / 439.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2118, allocations: 22.69 kB / 439.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.015e-05/0.2119, allocations: 22.75 kB / 439.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-05/0.2119, allocations: 101.2 kB / 439.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.136e-05/0.212, allocations: 122.7 kB / 439.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.2122, allocations: 272.8 kB / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2122, allocations: 0 / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2122, allocations: 0 / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2122, allocations: 2.938 kB / 439.9 MB, free: 37 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.001572/0.2138, allocations: 0.7759 MB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.2138, allocations: 8.125 kB / 440.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.562e-05/0.2139, allocations: 47.75 kB / 440.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.2139, allocations: 36.25 kB / 440.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007914/0.2147, allocations: 443.1 kB / 441.2 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.2147, allocations: 16.41 kB / 441.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.2148, allocations: 21.22 kB / 441.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.215, allocations: 182.5 kB / 441.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.215, allocations: 3.938 kB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2151, allocations: 10.92 kB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2151, allocations: 2.688 kB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.2153, allocations: 189.8 kB / 441.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007516/0.2161, allocations: 0.6496 MB / 442.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006591/0.2168, allocations: 337.5 kB / 442.6 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.2169, allocations: 103.3 kB / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.2169, allocations: 2.781 kB / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.273e-05/0.2169, allocations: 40.86 kB / 442.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.217, allocations: 0 / 442.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.000894/0.2179, allocations: 0.4935 MB / 443.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.612e-05/0.2179, allocations: 54.66 kB / 443.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.2187, allocations: 453.3 kB / 443.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.2187, allocations: 31.95 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.029e-05/0.2188, allocations: 164.5 kB / 443.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.2188, allocations: 81.8 kB / 444 MB, free: 34.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.2189, allocations: 42.31 kB / 444 MB, free: 34.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.2189, allocations: 341.8 kB / 444.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.219, allocations: 82.95 kB / 444.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2192, allocations: 115.4 kB / 444.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.2204, allocations: 0.5185 MB / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2204, allocations: 0 / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004398/0.2209, allocations: 343.8 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.2209, allocations: 7.656 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2209, allocations: 3.516 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.221, allocations: 51.5 kB / 445.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2212, allocations: 41.86 kB / 445.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008352/0.222, allocations: 1.607 MB / 447.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003794/0.2224, allocations: 67.89 kB / 447.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2225, allocations: 11.03 kB / 447.2 MB, free: 32.39 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.0001296/0.2226, allocations: 165.7 kB / 447.4 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.925e-05/0.2226, allocations: 33.77 kB / 447.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.202e-05/0.2227, allocations: 43.75 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2227, allocations: 2.625 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.2227, allocations: 7.938 kB / 447.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2227, allocations: 6.234 kB / 447.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.223, allocations: 347.4 kB / 447.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.223, allocations: 3.938 kB / 447.8 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.2232, allocations: 24.12 kB / 447.8 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.2233, allocations: 48.17 kB / 447.9 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2233, allocations: 10.72 kB / 447.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007733/0.2241, allocations: 1.614 MB / 449.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2241, allocations: 4.062 kB / 449.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005563/0.2247, allocations: 0.5075 MB / 450 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.2247, allocations: 115.6 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.2248, allocations: 5.25 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003988/0.2252, allocations: 64.53 kB / 450.2 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.2252, allocations: 22.38 kB / 450.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.2253, allocations: 5.25 kB / 450.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006873/0.226, allocations: 357.9 kB / 450.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.226, allocations: 2.625 kB / 450.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.2262, allocations: 52.53 kB / 450.6 MB, free: 29.85 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.0006712/0.2269, allocations: 1.067 MB / 451.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004685/0.2274, allocations: 370.9 kB / 452 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2274, allocations: 64 / 452 MB, free: 28.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.2277, allocations: 248.3 kB / 452.3 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.228, allocations: 46.42 kB / 452.3 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004314/0.2323, allocations: 3.488 MB / 455.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.2325, allocations: 0.8018 MB / 456.6 MB, free: 25.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.2326, allocations: 65.64 kB / 456.7 MB, free: 25.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.2327, allocations: 95.78 kB / 456.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2327, allocations: 0 / 456.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.2511, allocations: 6.027 MB / 462.8 MB, free: 25.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/0.2513, allocations: 238 kB / 463 MB, free: 25.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/1.954, allocations: 0 / 463 MB, free: 25.13 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)