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.006189/0.006189, allocations: 103.6 kB / 15.74 MB, free: 6.035 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.00115/0.00115, allocations: 196.6 kB / 16.68 MB, free: 5.953 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08739/0.08739, allocations: 22.33 MB / 312.9 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 55.91 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09203/0.09328, allocations: 54.96 MB / 491.5 MB, free: 5.277 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002272/0.09559, allocations: 1.205 MB / 492.7 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.09726, allocations: 1.35 MB / 494.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.09741, allocations: 7.938 kB / 494.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.09777, allocations: 75.55 kB / 494.1 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002662/0.09805, allocations: 103.5 kB / 494.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.09839, allocations: 171.7 kB / 494.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000472/0.09887, allocations: 475.2 kB / 494.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.09902, allocations: 57.14 kB / 494.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.09929, allocations: 191.4 kB / 495.1 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.0996, allocations: 219.2 kB / 495.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.259e-05/0.09967, allocations: 24 kB / 495.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.234e-05/0.09972, allocations: 24 kB / 495.4 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.09987, allocations: 115.6 kB / 495.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1, allocations: 139.2 kB / 495.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.1003, allocations: 298.9 kB / 495.9 MB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1003, allocations: 0 / 495.9 MB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1003, allocations: 0 / 495.9 MB, free: 0.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1003, allocations: 0 / 495.9 MB, free: 0.832 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.001959/0.1023, allocations: 0.8062 MB / 496.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.1023, allocations: 8.031 kB / 496.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.469e-05/0.1024, allocations: 50.73 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.267e-05/0.1025, allocations: 32.56 kB / 496.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1035, allocations: 471.7 kB / 497.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.1036, allocations: 16.17 kB / 497.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.1036, allocations: 20.31 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.104, allocations: 193.5 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.104, allocations: 0 / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.104, allocations: 8 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.104, allocations: 4 kB / 497.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003723/0.1044, allocations: 215.8 kB / 497.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.1055, allocations: 0.703 MB / 498.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005998/0.1062, allocations: 304.4 kB / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.1064, allocations: 120.8 kB / 498.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1064, allocations: 7.938 kB / 498.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.1064, allocations: 34.56 kB / 498.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.1064, allocations: 0 / 498.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001331/0.1078, allocations: 0.6072 MB / 499.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.1078, allocations: 55.41 kB / 499.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009668/0.1088, allocations: 472.3 kB / 500 MB, free: 12.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.1088, allocations: 25.7 kB / 0.4883 GB, free: 12.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1089, allocations: 164.5 kB / 0.4885 GB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.109, allocations: 94.64 kB / 0.4886 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.818e-05/0.1091, allocations: 45.7 kB / 0.4886 GB, free: 12.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1092, allocations: 346.7 kB / 0.4889 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.1094, allocations: 111.9 kB / 0.489 GB, free: 11.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1096, allocations: 138.4 kB / 0.4892 GB, free: 11.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.1116, allocations: 0.705 MB / 0.4899 GB, free: 10.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1116, allocations: 0 / 0.4899 GB, free: 10.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006938/0.1123, allocations: 413.9 kB / 0.4902 GB, free: 10.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1123, allocations: 4 kB / 0.4903 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1123, allocations: 3.938 kB / 0.4903 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.1126, allocations: 64.75 kB / 0.4903 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.1128, allocations: 47.94 kB / 0.4904 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.1142, allocations: 1.661 MB / 0.492 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.1146, allocations: 71.94 kB / 0.4921 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.1147, allocations: 12 kB / 0.4921 GB, free: 8.453 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.0002036/0.1149, allocations: 179.6 kB / 0.4922 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.974e-05/0.1149, allocations: 27.62 kB / 0.4923 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.39e-05/0.115, allocations: 55.11 kB / 0.4923 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1151, allocations: 0 / 0.4923 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1151, allocations: 8 kB / 0.4923 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1151, allocations: 3.984 kB / 0.4923 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003746/0.1155, allocations: 377.2 kB / 0.4927 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1155, allocations: 0 / 0.4927 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.1157, allocations: 31.98 kB / 0.4927 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.1159, allocations: 60.8 kB / 0.4928 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.1159, allocations: 8 kB / 0.4928 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1172, allocations: 1.661 MB / 0.4944 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1172, allocations: 0 / 0.4944 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/0.1181, allocations: 0.5995 MB / 0.495 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.495e-05/0.1181, allocations: 104.7 kB / 0.4951 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/0.1182, allocations: 11.98 kB / 0.4951 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/0.1187, allocations: 67.91 kB / 0.4952 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.1187, allocations: 19.97 kB / 0.4952 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1187, allocations: 4 kB / 0.4952 GB, free: 5.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000854/0.1196, allocations: 370.8 kB / 0.4955 GB, free: 4.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1196, allocations: 4 kB / 0.4955 GB, free: 4.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003326/0.1199, allocations: 59.94 kB / 0.4956 GB, free: 4.59 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.001094/0.121, allocations: 1.138 MB / 0.4967 GB, free: 3.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006497/0.1217, allocations: 417.7 kB / 0.4971 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.1217, allocations: 4.062 kB / 0.4971 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003458/0.1221, allocations: 270.4 kB / 0.4974 GB, free: 2.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.1225, allocations: 46.94 kB / 0.4974 GB, free: 2.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1829/0.3054, allocations: 3.695 MB / 0.501 GB, free: 21.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.3057, allocations: 0.8048 MB / 0.5018 GB, free: 20.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.3059, allocations: 68.7 kB / 0.5019 GB, free: 20.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.306, allocations: 97.95 kB / 0.502 GB, free: 20.66 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.306, allocations: 3.75 kB / 0.502 GB, free: 20.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.3309, allocations: 6.761 MB / 0.5086 GB, free: 20.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.29/9.621, allocations: 11.89 kB / 0.5086 GB, free: 20.12 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 & /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)