Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",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.004867/0.004867, allocations: 99.52 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.00113/0.00113, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2227/0.2227, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 58.28 kB / 436.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08542, allocations: 54.96 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002443/0.0879, allocations: 1.971 MB / 493.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.08915, allocations: 0.7247 MB / 494.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.08927, allocations: 4 kB / 494.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.08965, allocations: 79.48 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002562/0.08992, allocations: 107.4 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.09034, allocations: 187.6 kB / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.0908, allocations: 0.4912 MB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.09094, allocations: 56.73 kB / 495.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.09116, allocations: 199.4 kB / 495.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.09144, allocations: 215.2 kB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.09149, allocations: 20 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.925e-05/0.09154, allocations: 24 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.09166, allocations: 99.7 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.09178, allocations: 123.1 kB / 495.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000287/0.09207, allocations: 278.7 kB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.09208, allocations: 0 / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09209, allocations: 0 / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.0921, allocations: 0 / 496.1 MB, free: 13.15 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.001919/0.09402, allocations: 0.7903 MB / 496.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.09407, allocations: 11.97 kB / 496.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.193e-05/0.09412, allocations: 50.73 kB / 496.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.884e-05/0.09419, allocations: 32.7 kB / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.09522, allocations: 448.1 kB / 497.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.09524, allocations: 16.23 kB / 497.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.09529, allocations: 16.36 kB / 497.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.0956, allocations: 177.7 kB / 497.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.09562, allocations: 0 / 497.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.855e-05/0.09565, allocations: 4 kB / 497.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.09566, allocations: 4 kB / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.09602, allocations: 191.8 kB / 497.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.09706, allocations: 0.6485 MB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.09788, allocations: 342.8 kB / 498.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.09806, allocations: 104.7 kB / 498.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.0981, allocations: 7.984 kB / 498.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.09813, allocations: 42.5 kB / 499 MB, free: 10.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.09813, allocations: 0 / 499 MB, free: 10.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001134/0.09928, allocations: 0.5014 MB / 499.5 MB, free: 9.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.09933, allocations: 59.34 kB / 499.5 MB, free: 9.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009586/0.1003, allocations: 452.3 kB / 500 MB, free: 9.066 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1003, allocations: 29.7 kB / 500 MB, free: 9.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.1004, allocations: 172.5 kB / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.1005, allocations: 75.28 kB / 0.4885 GB, free: 8.785 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/0.1006, allocations: 41.7 kB / 0.4885 GB, free: 8.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1007, allocations: 346.8 kB / 0.4889 GB, free: 8.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.1008, allocations: 80.19 kB / 0.4889 GB, free: 8.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.101, allocations: 106.1 kB / 0.489 GB, free: 8.199 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.1025, allocations: 0.5228 MB / 0.4896 GB, free: 7.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1025, allocations: 0 / 0.4896 GB, free: 7.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005608/0.1031, allocations: 350 kB / 0.4899 GB, free: 7.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1031, allocations: 4 kB / 0.4899 GB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1031, allocations: 0 / 0.4899 GB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/0.1033, allocations: 56.81 kB / 0.49 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1035, allocations: 35.92 kB / 0.49 GB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.1048, allocations: 1.603 MB / 0.4916 GB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.1052, allocations: 79.73 kB / 0.4916 GB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.1052, allocations: 4 kB / 0.4916 GB, free: 5.402 MB / 366.1 MB Warning: Assuming fixed start value for the following 5 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[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (23): * Single equations (assignments): 22 * 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.0001902/0.1054, allocations: 167.6 kB / 0.4918 GB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.1055, allocations: 27.81 kB / 0.4918 GB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.303e-05/0.1056, allocations: 47.08 kB / 0.4919 GB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1056, allocations: 0 / 0.4919 GB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1056, allocations: 4 kB / 0.4919 GB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.1056, allocations: 7.922 kB / 0.4919 GB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.106, allocations: 345.4 kB / 0.4922 GB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.106, allocations: 3.984 kB / 0.4922 GB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1062, allocations: 35.92 kB / 0.4922 GB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000148/0.1063, allocations: 52.81 kB / 0.4923 GB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.1064, allocations: 4 kB / 0.4923 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.1076, allocations: 1.611 MB / 0.4939 GB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1076, allocations: 0 / 0.4939 GB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.1083, allocations: 0.5169 MB / 0.4944 GB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.1084, allocations: 116.9 kB / 0.4945 GB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.1085, allocations: 8 kB / 0.4945 GB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.1089, allocations: 63.84 kB / 0.4946 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.109, allocations: 15.92 kB / 0.4946 GB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.109, allocations: 15.98 kB / 0.4946 GB, free: 2.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008338/0.1098, allocations: 354.9 kB / 0.4949 GB, free: 1.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1099, allocations: 0 / 0.4949 GB, free: 1.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.1102, allocations: 55.95 kB / 0.495 GB, free: 1.738 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],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 (17): * Single equations (assignments): 16 * 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.000997/0.1112, allocations: 1.063 MB / 0.496 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006219/0.1118, allocations: 362.4 kB / 0.4964 GB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1118, allocations: 0 / 0.4964 GB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.1122, allocations: 238.5 kB / 0.4966 GB, free: 36 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.1126, allocations: 51.66 kB / 0.4966 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005465/0.1181, allocations: 3.405 MB / 0.5 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.1184, allocations: 0.7987 MB / 0.5007 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1185, allocations: 54.25 kB / 0.5008 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.1187, allocations: 95.34 kB / 0.5009 GB, free: 11.52 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1187, allocations: 0 / 0.5009 GB, free: 11.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.1448, allocations: 6.204 MB / 0.5069 GB, free: 5.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.494/9.639, allocations: 7.766 kB / 0.507 GB, free: 5.434 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)