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.001441/0.001441, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2021/0.2021, allocations: 22.34 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 55.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2922, allocations: 54.94 MB / 435.9 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002287/0.2945, allocations: 1.202 MB / 437.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2959, allocations: 1.342 MB / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.732e-05/0.296, allocations: 10.94 kB / 438.4 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.2963, allocations: 77.25 kB / 438.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.2965, allocations: 99.73 kB / 438.6 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.2968, allocations: 164.1 kB / 438.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.2971, allocations: 484.9 kB / 439.2 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.2973, allocations: 54.94 kB / 439.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.2974, allocations: 194.4 kB / 439.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.2977, allocations: 219.4 kB / 439.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.2977, allocations: 23.88 kB / 439.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.2978, allocations: 24.91 kB / 439.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.2979, allocations: 114.5 kB / 439.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.2981, allocations: 130 kB / 440 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.2983, allocations: 299.8 kB / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.2983, allocations: 0 / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2983, allocations: 0 / 440.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2983, allocations: 3.938 kB / 440.3 MB, free: 37.16 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.001876/0.3002, allocations: 0.8104 MB / 441.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.3002, allocations: 8.125 kB / 441.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.3003, allocations: 51.47 kB / 441.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.631e-05/0.3003, allocations: 33.16 kB / 441.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009582/0.3013, allocations: 462.8 kB / 441.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.3013, allocations: 18.78 kB / 441.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.3014, allocations: 17.78 kB / 441.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3017, allocations: 199.2 kB / 441.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3017, allocations: 3.156 kB / 441.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.3017, allocations: 4 kB / 441.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3017, allocations: 2.844 kB / 441.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.302, allocations: 213.2 kB / 442.1 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00096/0.303, allocations: 0.7121 MB / 442.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005397/0.3036, allocations: 306.3 kB / 443.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.3037, allocations: 124.2 kB / 443.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.3038, allocations: 3.781 kB / 443.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.3038, allocations: 30.56 kB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.412e-06/0.3038, allocations: 4 kB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001177/0.305, allocations: 0.5919 MB / 443.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.305, allocations: 54.09 kB / 443.9 MB, free: 35.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009357/0.306, allocations: 472.3 kB / 444.3 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.306, allocations: 32.67 kB / 444.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.3061, allocations: 164.5 kB / 444.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.3061, allocations: 89.56 kB / 444.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.889e-05/0.3062, allocations: 41.94 kB / 444.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.773e-05/0.3063, allocations: 351.3 kB / 445 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.3064, allocations: 118 kB / 445.1 MB, free: 34.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.3066, allocations: 129.1 kB / 445.3 MB, free: 34.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.3085, allocations: 0.7106 MB / 446 MB, free: 34.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.3085, allocations: 0 / 446 MB, free: 34.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006298/0.3092, allocations: 413.1 kB / 446.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3092, allocations: 6.594 kB / 446.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3092, allocations: 0 / 446.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.3094, allocations: 71.78 kB / 446.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.3096, allocations: 44.75 kB / 446.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.3107, allocations: 1.667 MB / 448.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004326/0.3111, allocations: 74.58 kB / 448.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.3112, allocations: 13.31 kB / 448.2 MB, free: 32.38 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.000175/0.3113, allocations: 180.5 kB / 448.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.3114, allocations: 35.38 kB / 448.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.939e-05/0.3115, allocations: 46.98 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-06/0.3115, allocations: 3.781 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3115, allocations: 0 / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3115, allocations: 3.469 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.3118, allocations: 373.9 kB / 448.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3118, allocations: 0 / 448.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.3121, allocations: 32.83 kB / 448.9 MB, free: 31.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.3122, allocations: 66.39 kB / 449 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.3123, allocations: 13.91 kB / 449 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009739/0.3132, allocations: 1.653 MB / 450.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3133, allocations: 0 / 450.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007251/0.314, allocations: 0.5883 MB / 451.2 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.368e-05/0.3141, allocations: 118.1 kB / 451.3 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.3141, allocations: 17.59 kB / 451.4 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.3146, allocations: 64.91 kB / 451.4 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.964e-05/0.3146, allocations: 15.08 kB / 451.4 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.3147, allocations: 8.719 kB / 451.4 MB, free: 29.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008147/0.3155, allocations: 369.1 kB / 451.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3155, allocations: 2.75 kB / 451.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.3158, allocations: 62.28 kB / 451.9 MB, free: 29.78 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.0008808/0.3167, allocations: 1.138 MB / 453 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005892/0.3173, allocations: 433.4 kB / 453.4 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3173, allocations: 0 / 453.4 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.3176, allocations: 273.1 kB / 453.7 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.318, allocations: 52.77 kB / 453.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005513/0.3235, allocations: 3.724 MB / 457.5 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.3238, allocations: 0.8116 MB / 458.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.3239, allocations: 68.52 kB / 458.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3241, allocations: 94.84 kB / 458.4 MB, free: 25.76 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3241, allocations: 1.281 kB / 458.4 MB, free: 25.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.3534, allocations: 6.662 MB / 465.1 MB, free: 25.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.088/9.441, allocations: 14.81 kB / 465.1 MB, free: 25.11 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag_res.csv --start-time 0 --stop-time 150 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.075 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)