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.005419/0.005419, allocations: 104.2 kB / 15.74 MB, free: 6.059 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.001147/0.001147, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.287/1.287, 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.08904/0.08904, allocations: 22.32 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 56.09 kB / 436.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09171, allocations: 54.96 MB / 491.5 MB, free: 5.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002985/0.09474, allocations: 1.966 MB / 493.5 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.09607, allocations: 0.7092 MB / 494.2 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.09622, allocations: 7.938 kB / 494.2 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.09659, allocations: 83.47 kB / 494.3 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002841/0.09689, allocations: 107.5 kB / 494.4 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.09733, allocations: 191.6 kB / 494.6 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004843/0.09782, allocations: 495.1 kB / 495 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.09797, allocations: 60.72 kB / 495.1 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.09825, allocations: 207.4 kB / 495.3 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.09857, allocations: 203.2 kB / 495.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.012e-05/0.09864, allocations: 24 kB / 495.5 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.95e-05/0.09868, allocations: 20 kB / 495.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.09881, allocations: 103.7 kB / 495.6 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.09893, allocations: 123.1 kB / 495.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.09919, allocations: 278.9 kB / 496 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.0992, allocations: 0 / 496 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09921, allocations: 0 / 496 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.09922, allocations: 0 / 496 MB, free: 0.7969 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.001882/0.1011, allocations: 0.7751 MB / 496.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1012, allocations: 16.02 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.1012, allocations: 42.75 kB / 496.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.1013, allocations: 36.5 kB / 496.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009662/0.1023, allocations: 455.7 kB / 497.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1023, allocations: 16.17 kB / 497.4 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.1023, allocations: 16.38 kB / 497.4 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.1026, allocations: 181.6 kB / 497.6 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1027, allocations: 0 / 497.6 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1027, allocations: 8 kB / 497.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1027, allocations: 4 kB / 497.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.103, allocations: 187.9 kB / 497.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009706/0.104, allocations: 0.6445 MB / 498.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007706/0.1048, allocations: 338.8 kB / 498.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.105, allocations: 100.8 kB / 498.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.105, allocations: 0 / 498.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.105, allocations: 42.56 kB / 498.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.061e-06/0.105, allocations: 0 / 498.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001083/0.1061, allocations: 0.4949 MB / 499.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.1062, allocations: 55.41 kB / 499.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009242/0.1071, allocations: 456.3 kB / 499.9 MB, free: 12.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.1071, allocations: 25.7 kB / 499.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.1072, allocations: 164.4 kB / 0.4883 GB, free: 12.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.1073, allocations: 78.89 kB / 0.4884 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.155e-05/0.1074, allocations: 41.7 kB / 0.4884 GB, free: 12.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1075, allocations: 342.8 kB / 0.4888 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.1076, allocations: 88.17 kB / 0.4889 GB, free: 11.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.1078, allocations: 111.6 kB / 0.489 GB, free: 11.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.1093, allocations: 0.5206 MB / 0.4895 GB, free: 11.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1093, allocations: 0 / 0.4895 GB, free: 11.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005601/0.1099, allocations: 349.8 kB / 0.4898 GB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1099, allocations: 8 kB / 0.4898 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1099, allocations: 0 / 0.4898 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.1101, allocations: 60.78 kB / 0.4899 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1102, allocations: 31.98 kB / 0.4899 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.1115, allocations: 1.595 MB / 0.4915 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.1119, allocations: 79.62 kB / 0.4915 GB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.112, allocations: 4 kB / 0.4915 GB, free: 9.078 MB / 382.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.0001832/0.1121, allocations: 167.8 kB / 0.4917 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.649e-05/0.1122, allocations: 31.62 kB / 0.4917 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.608e-05/0.1123, allocations: 47.02 kB / 0.4918 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1123, allocations: 8 kB / 0.4918 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1123, allocations: 4 kB / 0.4918 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1123, allocations: 3.938 kB / 0.4918 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003496/0.1127, allocations: 345.4 kB / 0.4921 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1127, allocations: 4 kB / 0.4921 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.1129, allocations: 23.98 kB / 0.4921 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.113, allocations: 48.83 kB / 0.4922 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.1131, allocations: 8 kB / 0.4922 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.1143, allocations: 1.618 MB / 0.4938 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1143, allocations: 0 / 0.4938 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007147/0.115, allocations: 0.509 MB / 0.4943 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.107e-05/0.1151, allocations: 116.8 kB / 0.4944 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.1151, allocations: 7.984 kB / 0.4944 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.1156, allocations: 59.86 kB / 0.4945 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.1156, allocations: 23.91 kB / 0.4945 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.1157, allocations: 8 kB / 0.4945 GB, free: 5.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007761/0.1164, allocations: 358.8 kB / 0.4948 GB, free: 5.473 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1164, allocations: 0 / 0.4948 GB, free: 5.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.1168, allocations: 59.94 kB / 0.4949 GB, free: 5.414 MB / 382.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.000945/0.1177, allocations: 1.05 MB / 0.4959 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005917/0.1183, allocations: 369.3 kB / 0.4963 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1183, allocations: 0 / 0.4963 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.1187, allocations: 238.6 kB / 0.4965 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.119, allocations: 54.97 kB / 0.4965 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005388/0.1244, allocations: 3.404 MB / 0.4999 GB, free: 168 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1902/0.3147, allocations: 0.7916 MB / 0.5006 GB, free: 21.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.3149, allocations: 56.2 kB / 0.5007 GB, free: 21.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3151, allocations: 94.56 kB / 0.5008 GB, free: 21.89 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3151, allocations: 0 / 0.5008 GB, free: 21.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.3396, allocations: 6.195 MB / 0.5068 GB, free: 21.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.203/9.543, allocations: 9.797 kB / 0.5068 GB, free: 21.37 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)