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.00469/0.00469, allocations: 99.19 kB / 15.73 MB, free: 6.027 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.001202/0.001202, allocations: 194.7 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1912/0.1912, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 66.75 kB / 436.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.09568, allocations: 54.96 MB / 491.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002427/0.09814, allocations: 1.969 MB / 493.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.09942, allocations: 0.713 MB / 494.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.66e-05/0.09953, allocations: 7.938 kB / 494.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003481/0.09989, allocations: 83.47 kB / 494.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.1002, allocations: 107.5 kB / 494.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004042/0.1006, allocations: 187.6 kB / 494.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005295/0.1011, allocations: 495.1 kB / 495.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1013, allocations: 64.72 kB / 495.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.1015, allocations: 199.4 kB / 495.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003057/0.1019, allocations: 203.2 kB / 495.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-05/0.1019, allocations: 24 kB / 495.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.556e-05/0.102, allocations: 24 kB / 495.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.1021, allocations: 95.7 kB / 495.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1022, allocations: 127.1 kB / 495.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.1026, allocations: 278.8 kB / 496.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1026, allocations: 0 / 496.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1026, allocations: 11.88 kB / 496.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1026, allocations: 0 / 496.1 MB, free: 13.27 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.001937/0.1046, allocations: 0.7825 MB / 496.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1046, allocations: 8.031 kB / 496.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.859e-05/0.1047, allocations: 50.73 kB / 496.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.1047, allocations: 36.7 kB / 497 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.1058, allocations: 444.1 kB / 497.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.1058, allocations: 20.23 kB / 497.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.1059, allocations: 12.38 kB / 497.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003278/0.1062, allocations: 185.6 kB / 497.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1062, allocations: 4 kB / 497.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.1063, allocations: 4 kB / 497.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1063, allocations: 4 kB / 497.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.1066, allocations: 183.9 kB / 497.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1077, allocations: 0.6446 MB / 498.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.1085, allocations: 349.2 kB / 498.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1087, allocations: 104.7 kB / 498.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1088, allocations: 4 kB / 498.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1088, allocations: 34.56 kB / 498.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.266e-06/0.1088, allocations: 0 / 498.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001184/0.11, allocations: 0.5012 MB / 499.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.1101, allocations: 55.41 kB / 499.5 MB, free: 9.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009897/0.111, allocations: 460.3 kB / 499.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.1111, allocations: 25.7 kB / 500 MB, free: 9.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1112, allocations: 160.5 kB / 0.4884 GB, free: 9.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.061e-05/0.1113, allocations: 91.25 kB / 0.4885 GB, free: 8.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/0.1114, allocations: 45.7 kB / 0.4885 GB, free: 8.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1115, allocations: 338.8 kB / 0.4888 GB, free: 8.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.1117, allocations: 88.17 kB / 0.4889 GB, free: 8.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.1119, allocations: 102.1 kB / 0.489 GB, free: 8.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.1134, allocations: 0.523 MB / 0.4895 GB, free: 7.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1134, allocations: 0 / 0.4895 GB, free: 7.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006001/0.114, allocations: 353.9 kB / 0.4899 GB, free: 7.453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.114, allocations: 8.031 kB / 0.4899 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.1141, allocations: 0 / 0.4899 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.1142, allocations: 56.81 kB / 0.4899 GB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.1144, allocations: 31.94 kB / 0.49 GB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.1159, allocations: 1.603 MB / 0.4915 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.1164, allocations: 79.75 kB / 0.4916 GB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.1164, allocations: 4 kB / 0.4916 GB, free: 5.535 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.0002031/0.1166, allocations: 171.5 kB / 0.4918 GB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.529e-05/0.1167, allocations: 31.81 kB / 0.4918 GB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.593e-05/0.1168, allocations: 47.08 kB / 0.4918 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1168, allocations: 0 / 0.4918 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1168, allocations: 0 / 0.4918 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1168, allocations: 7.938 kB / 0.4919 GB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.1172, allocations: 345.6 kB / 0.4922 GB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1172, allocations: 4 kB / 0.4922 GB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.1174, allocations: 23.98 kB / 0.4922 GB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.1176, allocations: 56.81 kB / 0.4923 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.1176, allocations: 8 kB / 0.4923 GB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.119, allocations: 1.61 MB / 0.4938 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.119, allocations: 0 / 0.4938 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007852/0.1198, allocations: 0.5162 MB / 0.4944 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.674e-05/0.1199, allocations: 116.9 kB / 0.4945 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.922e-05/0.1199, allocations: 8 kB / 0.4945 GB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.1204, allocations: 71.84 kB / 0.4945 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.1205, allocations: 19.97 kB / 0.4946 GB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1205, allocations: 4 kB / 0.4946 GB, free: 2.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008696/0.1214, allocations: 366.8 kB / 0.4949 GB, free: 1.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1214, allocations: 0 / 0.4949 GB, free: 1.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.1217, allocations: 55.95 kB / 0.495 GB, free: 1.863 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.001111/0.1228, allocations: 1.049 MB / 0.496 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.1234, allocations: 366.4 kB / 0.4963 GB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1234, allocations: 0 / 0.4963 GB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.1238, allocations: 238.5 kB / 0.4966 GB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.1242, allocations: 51.66 kB / 0.4966 GB, free: 120 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005713/0.1299, allocations: 3.414 MB / 0.5 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.1303, allocations: 0.7909 MB / 0.5007 GB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.1305, allocations: 54.25 kB / 0.5008 GB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1306, allocations: 91.41 kB / 0.5009 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1306, allocations: 0 / 0.5009 GB, free: 11.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.1622, allocations: 6.212 MB / 0.5069 GB, free: 5.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.725/9.887, allocations: 11.52 kB / 0.5069 GB, free: 5.562 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)