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.004773/0.004773, allocations: 104.7 kB / 15.74 MB, free: 6.02 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.001064/0.001064, allocations: 192 kB / 16.67 MB, free: 5.938 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09242/0.09242, allocations: 22.34 MB / 312.9 MB, free: 8.824 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.09 kB / 436.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09438, allocations: 54.96 MB / 491.5 MB, free: 5.203 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002498/0.09693, allocations: 1.203 MB / 492.7 MB, free: 4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.09883, allocations: 1.346 MB / 494 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.09904, allocations: 7.938 kB / 494.1 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003691/0.09944, allocations: 79.55 kB / 494.1 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002755/0.09972, allocations: 103.5 kB / 494.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.1001, allocations: 167.7 kB / 494.4 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.1006, allocations: 479.2 kB / 494.9 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.1008, allocations: 61.08 kB / 494.9 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.1011, allocations: 195.4 kB / 495.1 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003283/0.1014, allocations: 223.2 kB / 495.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.1015, allocations: 24 kB / 495.4 MB, free: 1.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.66e-05/0.1015, allocations: 24 kB / 495.4 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1017, allocations: 111.6 kB / 495.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1018, allocations: 127.2 kB / 495.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.1022, allocations: 302.6 kB / 495.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1022, allocations: 0 / 495.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1022, allocations: 0 / 495.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1022, allocations: 4 kB / 495.9 MB, free: 0.7578 MB / 366.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.00218/0.1044, allocations: 0.8176 MB / 496.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1044, allocations: 12.03 kB / 496.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.003e-05/0.1045, allocations: 46.73 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.268e-05/0.1046, allocations: 32.75 kB / 496.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1057, allocations: 467.9 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.1058, allocations: 20.22 kB / 497.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.1058, allocations: 36.2 kB / 497.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003382/0.1062, allocations: 197.5 kB / 497.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1062, allocations: 0 / 497.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.1062, allocations: 4 kB / 497.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1062, allocations: 4 kB / 497.5 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003655/0.1066, allocations: 211.8 kB / 497.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.1078, allocations: 0.707 MB / 498.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.1084, allocations: 298.4 kB / 498.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.1086, allocations: 122.4 kB / 498.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.1086, allocations: 3.938 kB / 498.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.1087, allocations: 38.56 kB / 498.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.1087, allocations: 0 / 498.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.00135/0.11, allocations: 0.5997 MB / 499.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.1101, allocations: 55.41 kB / 499.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.1111, allocations: 472.3 kB / 0.4883 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1112, allocations: 29.7 kB / 0.4883 GB, free: 12.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.1113, allocations: 172.5 kB / 0.4885 GB, free: 12.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.1114, allocations: 95.2 kB / 0.4886 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.863e-05/0.1115, allocations: 45.7 kB / 0.4886 GB, free: 12.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.1117, allocations: 346.8 kB / 0.489 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1119, allocations: 107.9 kB / 0.4891 GB, free: 11.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1121, allocations: 134.4 kB / 0.4892 GB, free: 11.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002092/0.1142, allocations: 0.705 MB / 0.4899 GB, free: 10.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.1142, allocations: 0 / 0.4899 GB, free: 10.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006906/0.1149, allocations: 422 kB / 0.4903 GB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1149, allocations: 10.03 kB / 0.4903 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1149, allocations: 0 / 0.4903 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/0.1152, allocations: 60.73 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1154, allocations: 47.92 kB / 0.4904 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.1169, allocations: 1.658 MB / 0.492 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00048/0.1174, allocations: 79.83 kB / 0.4921 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.1174, allocations: 8 kB / 0.4921 GB, free: 8.359 MB / 382.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.0002502/0.1177, allocations: 191.5 kB / 0.4923 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.978e-05/0.1178, allocations: 31.81 kB / 0.4923 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.529e-05/0.1179, allocations: 43.17 kB / 0.4923 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1179, allocations: 7.938 kB / 0.4924 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1179, allocations: 0 / 0.4924 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1179, allocations: 0 / 0.4924 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004182/0.1183, allocations: 377.2 kB / 0.4927 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1183, allocations: 0 / 0.4927 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.1186, allocations: 39.97 kB / 0.4928 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.1188, allocations: 56.81 kB / 0.4928 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.1188, allocations: 11.98 kB / 0.4928 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.1201, allocations: 1.654 MB / 0.4944 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1201, allocations: 3.984 kB / 0.4944 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00087/0.121, allocations: 0.5919 MB / 0.495 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.1211, allocations: 120.8 kB / 0.4951 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.455e-05/0.1212, allocations: 8 kB / 0.4951 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.1217, allocations: 59.89 kB / 0.4952 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.1217, allocations: 19.98 kB / 0.4952 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1218, allocations: 4 kB / 0.4952 GB, free: 4.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009268/0.1227, allocations: 378.8 kB / 0.4956 GB, free: 4.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1227, allocations: 0 / 0.4956 GB, free: 4.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.1231, allocations: 67.89 kB / 0.4956 GB, free: 4.484 MB / 382.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.001228/0.1243, allocations: 1.139 MB / 0.4968 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006758/0.125, allocations: 417.6 kB / 0.4972 GB, free: 2.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.125, allocations: 0 / 0.4972 GB, free: 2.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.1254, allocations: 262.5 kB / 0.4974 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.1258, allocations: 54.84 kB / 0.4975 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1963/0.322, allocations: 3.716 MB / 0.5011 GB, free: 21.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.3223, allocations: 0.8075 MB / 0.5019 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002033/0.3225, allocations: 73.41 kB / 0.5019 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.3227, allocations: 97.16 kB / 0.502 GB, free: 20.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3227, allocations: 0 / 0.502 GB, free: 20.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.3508, allocations: 6.765 MB / 0.5086 GB, free: 20.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.421/9.772, allocations: 11.72 kB / 0.5087 GB, free: 20.08 MB / 382.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)