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: translateModel(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009378/0.0009378, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 182.4 kB / 16.92 MB, free: 6.918 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.306/1.306, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2052/0.2052, allocations: 22.34 MB / 314.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003484, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2786, allocations: 55.99 MB / 439.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.001892/0.2805, allocations: 1.661 MB / 440.9 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.2816, allocations: 0.6856 MB / 441.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.2817, allocations: 2.781 kB / 441.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.2821, allocations: 73.67 kB / 441.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.2823, allocations: 93.41 kB / 441.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.2827, allocations: 180.9 kB / 441.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.2831, allocations: 473.3 kB / 442.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.2832, allocations: 69.08 kB / 442.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.2834, allocations: 161.5 kB / 442.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.2837, allocations: 193.8 kB / 442.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.552e-05/0.2837, allocations: 11.59 kB / 442.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.072e-05/0.2837, allocations: 8.812 kB / 442.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.2838, allocations: 88.81 kB / 442.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.032e-05/0.2839, allocations: 134 kB / 443 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.2841, allocations: 191.5 kB / 443.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2841, allocations: 0 / 443.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2841, allocations: 4 kB / 443.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.2841, allocations: 3.938 kB / 443.2 MB, free: 37.03 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.001728/0.2859, allocations: 0.7384 MB / 444 MB, free: 36.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2859, allocations: 12.5 kB / 444 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.286, allocations: 36.47 kB / 444 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009054/0.2869, allocations: 452.2 kB / 444.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.2869, allocations: 10.41 kB / 444.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.287, allocations: 20.19 kB / 444.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000281/0.2873, allocations: 181.1 kB / 444.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2873, allocations: 2.625 kB / 444.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.2873, allocations: 8 kB / 444.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2873, allocations: 2.969 kB / 444.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.2876, allocations: 194.3 kB / 444.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009039/0.2885, allocations: 0.6527 MB / 445.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.2893, allocations: 335.4 kB / 445.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2894, allocations: 101.7 kB / 446 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.2895, allocations: 2.812 kB / 446 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.2895, allocations: 42.5 kB / 446 MB, free: 35.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.2895, allocations: 0 / 446 MB, free: 35.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001036/0.2905, allocations: 0.5048 MB / 446.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.2906, allocations: 51.41 kB / 446.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008742/0.2915, allocations: 461.9 kB / 447 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.2915, allocations: 28.48 kB / 447 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.213e-05/0.2916, allocations: 164.6 kB / 447.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.2916, allocations: 79 kB / 447.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.2917, allocations: 29.38 kB / 447.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.679e-05/0.2917, allocations: 345.7 kB / 447.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.2919, allocations: 84.02 kB / 447.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.292, allocations: 103.3 kB / 447.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.2934, allocations: 0.5242 MB / 448.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2935, allocations: 3.062 kB / 448.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005023/0.294, allocations: 344.7 kB / 448.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.294, allocations: 9.719 kB / 448.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.294, allocations: 0 / 448.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2942, allocations: 50.56 kB / 448.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.2943, allocations: 37.38 kB / 448.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009994/0.2954, allocations: 1.501 MB / 450.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.2958, allocations: 80.78 kB / 450.4 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2958, allocations: 5.844 kB / 450.4 MB, free: 32.6 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 (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.000173/0.296, allocations: 170.1 kB / 450.5 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.296, allocations: 30.28 kB / 450.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.969e-05/0.2961, allocations: 46.12 kB / 450.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.2961, allocations: 2.625 kB / 450.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.2961, allocations: 3.125 kB / 450.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2961, allocations: 3.422 kB / 450.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.2965, allocations: 348.3 kB / 451 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2965, allocations: 3.938 kB / 451 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.2967, allocations: 25.38 kB / 451 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001363/0.2968, allocations: 54.22 kB / 451 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.2968, allocations: 10.81 kB / 451 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.298, allocations: 1.498 MB / 452.5 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.298, allocations: 8 kB / 452.6 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006444/0.2987, allocations: 0.5158 MB / 453.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.2987, allocations: 114.2 kB / 453.2 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.2988, allocations: 6.844 kB / 453.2 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.2992, allocations: 61.42 kB / 453.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.2993, allocations: 16.2 kB / 453.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2993, allocations: 5.656 kB / 453.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007906/0.3001, allocations: 366.9 kB / 453.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3001, allocations: 3.344 kB / 453.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.3004, allocations: 53.41 kB / 453.7 MB, free: 30.16 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 (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.0001024/0.3005, allocations: 107.2 kB / 453.8 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005345/0.3011, allocations: 356.8 kB / 454.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3011, allocations: 0 / 454.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.3014, allocations: 244 kB / 454.4 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.3018, allocations: 53.34 kB / 454.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.3028, allocations: 0.7835 MB / 455.2 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.303, allocations: 0.791 MB / 456 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.399e-05/0.3031, allocations: 26.38 kB / 456 MB, free: 28.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3031, allocations: 0 / 456 MB, free: 28.52 MB / 350.1 MB Notification: Performance of Templates: time 0.007147/0.3103, allocations: 4.548 MB / 460.6 MB, free: 28.22 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)