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.004921/0.004922, allocations: 102 kB / 15.73 MB, free: 6.039 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.001181/0.001181, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08917/0.08917, allocations: 22.32 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.91 kB / 436.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1097, allocations: 54.96 MB / 491.5 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002546/0.1123, allocations: 1.216 MB / 492.7 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.114, allocations: 1.342 MB / 494.1 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1142, allocations: 7.938 kB / 494.1 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003922/0.1146, allocations: 79.53 kB / 494.1 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.1149, allocations: 103.5 kB / 494.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.1152, allocations: 163.7 kB / 494.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.1157, allocations: 479.1 kB / 494.9 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.1158, allocations: 53.16 kB / 494.9 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1161, allocations: 195.4 kB / 495.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.1164, allocations: 223.2 kB / 495.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.899e-05/0.1165, allocations: 24 kB / 495.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.299e-05/0.1165, allocations: 28 kB / 495.4 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1166, allocations: 107.7 kB / 495.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1168, allocations: 131.1 kB / 495.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.1171, allocations: 302.9 kB / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1171, allocations: 0 / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1171, allocations: 0 / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1171, allocations: 0 / 495.9 MB, free: 0.793 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.002026/0.1191, allocations: 0.81 MB / 496.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.1192, allocations: 16.03 kB / 496.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.84e-05/0.1192, allocations: 46.73 kB / 496.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.915e-05/0.1193, allocations: 32.56 kB / 496.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1203, allocations: 463.6 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.1204, allocations: 16.23 kB / 497.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.1204, allocations: 28.3 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.1207, allocations: 197.4 kB / 497.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1207, allocations: 0 / 497.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.1208, allocations: 4 kB / 497.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1208, allocations: 8 kB / 497.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.1211, allocations: 211.8 kB / 497.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.1222, allocations: 0.7069 MB / 498.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.1229, allocations: 298.4 kB / 498.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.123, allocations: 120.8 kB / 498.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.1231, allocations: 4 kB / 498.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.1231, allocations: 34.5 kB / 498.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.242e-06/0.1231, allocations: 4 kB / 498.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001283/0.1244, allocations: 0.601 MB / 499.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.1244, allocations: 55.41 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009601/0.1254, allocations: 472.3 kB / 500 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.1254, allocations: 29.7 kB / 0.4883 GB, free: 12.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1255, allocations: 168.5 kB / 0.4885 GB, free: 12.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.1256, allocations: 90.64 kB / 0.4885 GB, free: 12.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.268e-05/0.1257, allocations: 45.7 kB / 0.4886 GB, free: 12.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1258, allocations: 346.8 kB / 0.4889 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.126, allocations: 111.9 kB / 0.489 GB, free: 11.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.1262, allocations: 138.3 kB / 0.4892 GB, free: 11.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.1282, allocations: 0.705 MB / 0.4898 GB, free: 10.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1282, allocations: 0 / 0.4898 GB, free: 10.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006652/0.1289, allocations: 409.9 kB / 0.4902 GB, free: 10.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1289, allocations: 8 kB / 0.4902 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1289, allocations: 0 / 0.4902 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.1291, allocations: 68.77 kB / 0.4903 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.1294, allocations: 43.92 kB / 0.4904 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.1307, allocations: 1.661 MB / 0.492 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/0.1312, allocations: 71.78 kB / 0.492 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1312, allocations: 8 kB / 0.4921 GB, free: 8.422 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.0002102/0.1314, allocations: 187.6 kB / 0.4922 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.1315, allocations: 31.62 kB / 0.4923 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.234e-05/0.1316, allocations: 47.17 kB / 0.4923 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1316, allocations: 7.938 kB / 0.4923 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.1316, allocations: 0 / 0.4923 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1316, allocations: 3.938 kB / 0.4923 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.132, allocations: 377.2 kB / 0.4927 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.132, allocations: 0 / 0.4927 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.1322, allocations: 35.97 kB / 0.4927 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.1324, allocations: 56.81 kB / 0.4928 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.1325, allocations: 15.98 kB / 0.4928 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1337, allocations: 1.657 MB / 0.4944 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1337, allocations: 0 / 0.4944 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008442/0.1346, allocations: 0.5878 MB / 0.495 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.1347, allocations: 116.7 kB / 0.4951 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.1347, allocations: 8 kB / 0.4951 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.1352, allocations: 67.95 kB / 0.4952 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.1353, allocations: 11.98 kB / 0.4952 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1353, allocations: 8 kB / 0.4952 GB, free: 4.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008583/0.1361, allocations: 370.8 kB / 0.4955 GB, free: 4.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1362, allocations: 0 / 0.4955 GB, free: 4.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003178/0.1365, allocations: 63.94 kB / 0.4956 GB, free: 4.559 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.001093/0.1376, allocations: 1.146 MB / 0.4967 GB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.1383, allocations: 421.7 kB / 0.4971 GB, free: 2.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1383, allocations: 0 / 0.4971 GB, free: 2.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.1386, allocations: 258.5 kB / 0.4974 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.139, allocations: 51.28 kB / 0.4974 GB, free: 2.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1939/0.3329, allocations: 3.705 MB / 0.501 GB, free: 21.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.3332, allocations: 0.8047 MB / 0.5018 GB, free: 20.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.3333, allocations: 69.72 kB / 0.5019 GB, free: 20.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3335, allocations: 101.5 kB / 0.502 GB, free: 20.63 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3335, allocations: 0 / 0.502 GB, free: 20.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.3602, allocations: 6.902 MB / 0.5087 GB, free: 20.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.465/9.826, allocations: 9.062 kB / 0.5087 GB, free: 20.07 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)