Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",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.001141/0.001141, 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.001088/0.001088, allocations: 188 kB / 16.25 MB, free: 6.641 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.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1642/0.1642, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 63.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2021, allocations: 54.93 MB / 435.3 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001899/0.204, allocations: 1.252 MB / 436.6 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.2053, allocations: 1.345 MB / 437.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.78e-05/0.2054, allocations: 2.188 kB / 437.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002756/0.2056, allocations: 66.83 kB / 438 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.2058, allocations: 97.38 kB / 438.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.2061, allocations: 156.8 kB / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.2064, allocations: 481.1 kB / 438.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.2065, allocations: 62.44 kB / 438.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.2066, allocations: 197.4 kB / 439 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.2068, allocations: 226.9 kB / 439.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.2069, allocations: 23.94 kB / 439.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.348e-05/0.2069, allocations: 25.69 kB / 439.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.397e-05/0.207, allocations: 112 kB / 439.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.248e-05/0.2071, allocations: 128 kB / 439.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.2073, allocations: 300.9 kB / 439.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.2073, allocations: 0 / 439.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2073, allocations: 0 / 439.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2073, allocations: 0 / 439.8 MB, free: 37.09 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.0017/0.209, allocations: 0.8146 MB / 440.6 MB, free: 36.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.834e-05/0.209, allocations: 8 kB / 440.6 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.572e-05/0.2091, allocations: 46.95 kB / 440.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.2091, allocations: 34.59 kB / 440.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000868/0.21, allocations: 460.6 kB / 441.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.21, allocations: 10.84 kB / 441.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.2101, allocations: 19.25 kB / 441.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.2103, allocations: 209 kB / 441.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2104, allocations: 4 kB / 441.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.2104, allocations: 4 kB / 441.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2104, allocations: 6.188 kB / 441.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.2107, allocations: 210.2 kB / 441.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008706/0.2116, allocations: 0.7098 MB / 442.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.2121, allocations: 300 kB / 442.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2123, allocations: 127.3 kB / 442.7 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.2123, allocations: 7.469 kB / 442.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.888e-06/0.2123, allocations: 30.56 kB / 442.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.202e-06/0.2123, allocations: 0 / 442.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001092/0.2134, allocations: 0.5942 MB / 443.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.2134, allocations: 54.31 kB / 443.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008362/0.2143, allocations: 471.4 kB / 443.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2143, allocations: 33.7 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.2144, allocations: 168.2 kB / 444.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.2144, allocations: 85.98 kB / 444.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.2145, allocations: 43.97 kB / 444.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.2145, allocations: 350.6 kB / 444.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.2147, allocations: 113.1 kB / 444.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.2148, allocations: 128.2 kB / 444.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.2166, allocations: 0.7031 MB / 445.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2166, allocations: 0 / 445.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005493/0.2172, allocations: 422.8 kB / 445.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.2172, allocations: 9.562 kB / 445.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.2172, allocations: 0 / 445.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.2174, allocations: 68.95 kB / 445.9 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.2176, allocations: 41.41 kB / 446 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009149/0.2185, allocations: 1.664 MB / 447.7 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.2189, allocations: 73.41 kB / 447.7 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.2189, allocations: 10 kB / 447.7 MB, free: 32.32 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 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[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] 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 (27): * Single equations (assignments): 26 * 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.0001505/0.2191, allocations: 187.7 kB / 447.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.2192, allocations: 33.47 kB / 447.9 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-05/0.2192, allocations: 48.06 kB / 448 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2193, allocations: 2.156 kB / 448 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2193, allocations: 0 / 448 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2193, allocations: 10.06 kB / 448 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.2195, allocations: 369.7 kB / 448.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2196, allocations: 2.562 kB / 448.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002071/0.2198, allocations: 34.55 kB / 448.4 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001512/0.2199, allocations: 60.77 kB / 448.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.22, allocations: 6.438 kB / 448.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008503/0.2208, allocations: 1.659 MB / 450.1 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2208, allocations: 0 / 450.1 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.2215, allocations: 0.5944 MB / 450.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/0.2215, allocations: 113.8 kB / 450.8 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.2216, allocations: 10.22 kB / 450.8 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004292/0.222, allocations: 69.53 kB / 450.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.2221, allocations: 14.61 kB / 450.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.2221, allocations: 8.438 kB / 450.9 MB, free: 29.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007231/0.2228, allocations: 372.4 kB / 451.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2228, allocations: 0 / 451.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.2231, allocations: 57.78 kB / 451.4 MB, free: 29.72 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],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 (19): * Single equations (assignments): 18 * 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.0007923/0.2239, allocations: 1.133 MB / 452.5 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.2244, allocations: 437.1 kB / 452.9 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2245, allocations: 7.969 kB / 452.9 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.2247, allocations: 271.1 kB / 453.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.2251, allocations: 54.95 kB / 453.2 MB, free: 28.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/0.23, allocations: 3.795 MB / 457 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/0.2302, allocations: 0.8068 MB / 457.8 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.2304, allocations: 75.73 kB / 457.9 MB, free: 25.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.2305, allocations: 95.08 kB / 458 MB, free: 25.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2305, allocations: 0 / 458 MB, free: 25.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.2493, allocations: 6.576 MB / 464.6 MB, free: 25.1 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001323/0.2494, allocations: 242.5 kB / 464.8 MB, free: 24.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.001, allocations: 4 kB / 464.8 MB, free: 24.84 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)