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.0009909/0.0009944, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005728/0.005728, allocations: 172 kB / 16.26 MB, free: 6.613 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.108/1.108, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1615/0.1615, allocations: 22.35 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002357/0.0002358, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2008, allocations: 55.97 MB / 438.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.000882/0.2017, allocations: 0.9112 MB / 439.6 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2028, allocations: 1.332 MB / 440.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.574e-05/0.2029, allocations: 10.56 kB / 440.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.2032, allocations: 64.86 kB / 441 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.2034, allocations: 94.27 kB / 441.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.2036, allocations: 156.5 kB / 441.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.2039, allocations: 464.7 kB / 441.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.736e-05/0.204, allocations: 51.89 kB / 441.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.2041, allocations: 166.2 kB / 441.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.2043, allocations: 207.6 kB / 442.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/0.2043, allocations: 11.12 kB / 442.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.2044, allocations: 11.53 kB / 442.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.208e-05/0.2045, allocations: 100.5 kB / 442.2 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.139e-05/0.2045, allocations: 138.5 kB / 442.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.2047, allocations: 280.3 kB / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.2047, allocations: 0 / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2047, allocations: 0 / 442.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.2047, allocations: 0 / 442.6 MB, free: 37.08 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.001514/0.2062, allocations: 0.7782 MB / 443.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.803e-05/0.2063, allocations: 17.34 kB / 443.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.2063, allocations: 45.19 kB / 443.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.2063, allocations: 33.44 kB / 443.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008092/0.2072, allocations: 463.3 kB / 444 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2072, allocations: 10.78 kB / 444 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.2072, allocations: 23.77 kB / 444 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.2075, allocations: 196.9 kB / 444.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2075, allocations: 3.938 kB / 444.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.2075, allocations: 6.562 kB / 444.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2075, allocations: 2.812 kB / 444.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.2078, allocations: 216.9 kB / 444.4 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008075/0.2086, allocations: 0.7089 MB / 445.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.2091, allocations: 299.6 kB / 445.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.2092, allocations: 129.3 kB / 445.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.2092, allocations: 7.047 kB / 445.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.368e-06/0.2093, allocations: 30.56 kB / 445.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.152e-06/0.2093, allocations: 0 / 445.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00101/0.2103, allocations: 0.5977 MB / 446.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.466e-05/0.2103, allocations: 55.34 kB / 446.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000803/0.2111, allocations: 479.7 kB / 446.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.2111, allocations: 29.7 kB / 446.7 MB, free: 34.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.916e-05/0.2112, allocations: 168.8 kB / 446.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.2112, allocations: 89.25 kB / 447 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.2113, allocations: 32.72 kB / 447 MB, free: 34.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.2113, allocations: 345.7 kB / 447.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.2115, allocations: 108.2 kB / 447.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.2116, allocations: 136.9 kB / 447.6 MB, free: 34.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.2133, allocations: 0.7028 MB / 448.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2133, allocations: 4 kB / 448.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005295/0.2138, allocations: 420.9 kB / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2139, allocations: 3.156 kB / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2139, allocations: 0 / 448.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.214, allocations: 71.44 kB / 448.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.2142, allocations: 46.52 kB / 448.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008424/0.2151, allocations: 1.55 MB / 450.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004056/0.2155, allocations: 83.06 kB / 450.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2155, allocations: 6.188 kB / 450.5 MB, free: 32.44 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.0001357/0.2156, allocations: 187.1 kB / 450.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.2157, allocations: 33.84 kB / 450.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.573e-05/0.2158, allocations: 43.81 kB / 450.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.2158, allocations: 7.922 kB / 450.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.2158, allocations: 0 / 450.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2158, allocations: 4 kB / 450.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.2161, allocations: 378.7 kB / 451.1 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2161, allocations: 2.719 kB / 451.1 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.2163, allocations: 33.86 kB / 451.1 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/0.2164, allocations: 58.42 kB / 451.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.2164, allocations: 12.64 kB / 451.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007789/0.2172, allocations: 1.547 MB / 452.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2172, allocations: 0 / 452.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000627/0.2179, allocations: 0.5861 MB / 453.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.2179, allocations: 114.5 kB / 453.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.218, allocations: 17.16 kB / 453.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.2184, allocations: 71.09 kB / 453.5 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.2184, allocations: 17.84 kB / 453.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2185, allocations: 6.531 kB / 453.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007184/0.2192, allocations: 376.4 kB / 453.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2192, allocations: 0 / 453.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.2195, allocations: 62.16 kB / 454 MB, free: 29.94 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.0007523/0.2202, allocations: 1.144 MB / 455.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.2207, allocations: 399.3 kB / 455.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2207, allocations: 0 / 455.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.2209, allocations: 274.9 kB / 455.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2213, allocations: 53.95 kB / 455.8 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.2261, allocations: 3.84 MB / 459.7 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.2262, allocations: 0.8057 MB / 460.5 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.2264, allocations: 68.02 kB / 460.6 MB, free: 25.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.2265, allocations: 98.72 kB / 460.7 MB, free: 25.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2265, allocations: 4 kB / 460.7 MB, free: 25.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.2411, allocations: 6.212 MB / 466.9 MB, free: 25.45 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001089/0.2412, allocations: 247.8 kB / 467.1 MB, free: 25.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.467/1.708, allocations: 4 kB / 467.1 MB, free: 25.18 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)