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.0008395/0.000839, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001044/0.001044, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2083/0.2083, allocations: 22.36 MB / 313.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3033, allocations: 55.98 MB / 438 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.00205/0.3054, allocations: 1.623 MB / 439.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3066, allocations: 0.6704 MB / 440.3 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3068, allocations: 3.969 kB / 440.3 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003835/0.3072, allocations: 64.28 kB / 440.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.3074, allocations: 103.8 kB / 440.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.3077, allocations: 149.3 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.3081, allocations: 413.6 kB / 441 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.3082, allocations: 55.02 kB / 441.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.3084, allocations: 208.6 kB / 441.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.3087, allocations: 194 kB / 441.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.3087, allocations: 9.156 kB / 441.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.956e-05/0.3087, allocations: 11.91 kB / 441.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.016e-05/0.3088, allocations: 80.7 kB / 441.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.862e-05/0.3089, allocations: 60.64 kB / 441.6 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.3091, allocations: 201.2 kB / 441.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3091, allocations: 0 / 441.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3091, allocations: 0 / 441.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.3091, allocations: 0 / 441.8 MB, free: 37.18 MB / 350.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.001682/0.3108, allocations: 0.7414 MB / 442.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3108, allocations: 9.844 kB / 442.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.908e-05/0.3109, allocations: 51.69 kB / 442.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.311, allocations: 37.02 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008379/0.3118, allocations: 433.3 kB / 443.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.3118, allocations: 14.5 kB / 443.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.3119, allocations: 15.22 kB / 443.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.3122, allocations: 179 kB / 443.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3122, allocations: 6.953 kB / 443.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.3122, allocations: 4 kB / 443.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3122, allocations: 6.172 kB / 443.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.3125, allocations: 184.9 kB / 443.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008858/0.3134, allocations: 0.6423 MB / 444.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008251/0.3143, allocations: 345.9 kB / 444.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.3144, allocations: 95.75 kB / 444.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3145, allocations: 3.188 kB / 444.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.3145, allocations: 38.75 kB / 444.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.3145, allocations: 0 / 444.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001015/0.3155, allocations: 0.5004 MB / 445.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.3156, allocations: 58.53 kB / 445.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00079/0.3164, allocations: 457.6 kB / 445.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.3164, allocations: 29.64 kB / 445.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3165, allocations: 165.4 kB / 445.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.3166, allocations: 82.14 kB / 445.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.3166, allocations: 6.938 kB / 445.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.3167, allocations: 337.9 kB / 446.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.3168, allocations: 84.66 kB / 446.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.317, allocations: 108.8 kB / 446.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.3172, allocations: 108.4 kB / 446.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3172, allocations: 3.75 kB / 446.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005159/0.3177, allocations: 341.8 kB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.3178, allocations: 5.688 kB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3178, allocations: 4.031 kB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.318, allocations: 54.09 kB / 446.9 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3181, allocations: 40.2 kB / 447 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.3194, allocations: 1.497 MB / 448.5 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.3199, allocations: 72.34 kB / 448.5 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.32, allocations: 10.08 kB / 448.5 MB, free: 32.86 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002341/0.3202, allocations: 158.3 kB / 448.7 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.525e-05/0.3203, allocations: 36.78 kB / 448.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.3204, allocations: 40.08 kB / 448.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3204, allocations: 6.719 kB / 448.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.3205, allocations: 2.719 kB / 448.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3205, allocations: 3.469 kB / 448.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.3209, allocations: 355.2 kB / 449.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3209, allocations: 0 / 449.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.3212, allocations: 28.77 kB / 449.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.3213, allocations: 53.59 kB / 449.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.3213, allocations: 4 kB / 449.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009482/0.3223, allocations: 1.5 MB / 450.7 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3223, allocations: 3.375 kB / 450.7 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006764/0.323, allocations: 0.5087 MB / 451.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.3231, allocations: 111.7 kB / 451.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.3231, allocations: 10.02 kB / 451.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.3235, allocations: 70.81 kB / 451.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.3235, allocations: 11.3 kB / 451.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3235, allocations: 9.953 kB / 451.4 MB, free: 30.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006634/0.3242, allocations: 360.7 kB / 451.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3242, allocations: 0 / 451.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000311/0.3245, allocations: 53.25 kB / 451.8 MB, free: 30.43 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007854/0.3253, allocations: 1.054 MB / 452.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005046/0.3258, allocations: 354.8 kB / 453.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3259, allocations: 4.062 kB / 453.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.3261, allocations: 244.2 kB / 453.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.3265, allocations: 50.12 kB / 453.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003936/0.3305, allocations: 2.356 MB / 455.9 MB, free: 28.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.3307, allocations: 0.7977 MB / 456.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000132/0.3308, allocations: 52.67 kB / 456.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.331, allocations: 92.69 kB / 456.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.331, allocations: 0 / 456.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.3508, allocations: 5.777 MB / 462.6 MB, free: 27.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.351, allocations: 220 kB / 462.8 MB, free: 26.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.255, allocations: 0 / 462.8 MB, free: 26.82 MB / 350.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/linux/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) Environment - environmentSimulation: