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.001156/0.001156, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001173/0.001173, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.302/1.302, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1976/0.1976, allocations: 22.34 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 68.03 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2768, allocations: 54.94 MB / 435.1 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002915/0.2797, allocations: 2.012 MB / 437.1 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2809, allocations: 0.7038 MB / 437.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.2811, allocations: 2.375 kB / 437.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003591/0.2815, allocations: 77.44 kB / 437.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.2817, allocations: 92.05 kB / 437.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.282, allocations: 173.8 kB / 438.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.2823, allocations: 477.8 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.2825, allocations: 59.38 kB / 438.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.2827, allocations: 175 kB / 438.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.2829, allocations: 205.1 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.415e-05/0.2829, allocations: 13.19 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.7e-05/0.283, allocations: 16.03 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.47e-05/0.2831, allocations: 90.48 kB / 439.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.707e-05/0.2832, allocations: 114.6 kB / 439.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.2834, allocations: 263.6 kB / 439.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2834, allocations: 0 / 439.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2834, allocations: 0 / 439.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2834, allocations: 0 / 439.5 MB, free: 36.89 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.001813/0.2852, allocations: 0.7845 MB / 440.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2853, allocations: 12.53 kB / 440.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.065e-05/0.2853, allocations: 31.12 kB / 440.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008809/0.2862, allocations: 444.3 kB / 440.7 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2862, allocations: 21.94 kB / 440.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.2863, allocations: 12.81 kB / 440.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.2866, allocations: 183.2 kB / 441 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2866, allocations: 2.844 kB / 441 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.2866, allocations: 8 kB / 441 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2866, allocations: 3.031 kB / 441 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.2869, allocations: 183 kB / 441.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009173/0.2879, allocations: 0.6522 MB / 441.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/0.2886, allocations: 337.4 kB / 442.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.2888, allocations: 107.6 kB / 442.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.2888, allocations: 2.875 kB / 442.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.376e-05/0.2888, allocations: 37.19 kB / 442.3 MB, free: 35.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2888, allocations: 0 / 442.3 MB, free: 35.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001038/0.2899, allocations: 0.4994 MB / 442.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.2899, allocations: 54.09 kB / 442.8 MB, free: 35.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008553/0.2908, allocations: 454.4 kB / 443.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.2908, allocations: 29.7 kB / 443.3 MB, free: 34.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.2909, allocations: 164.7 kB / 443.5 MB, free: 34.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.2909, allocations: 78.58 kB / 443.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.291, allocations: 44.69 kB / 443.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.2911, allocations: 341.4 kB / 443.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.2912, allocations: 81.72 kB / 444 MB, free: 34.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.2914, allocations: 108.2 kB / 444.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.2928, allocations: 0.5193 MB / 444.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2928, allocations: 0 / 444.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005094/0.2933, allocations: 348.9 kB / 445 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2934, allocations: 9.406 kB / 445 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2934, allocations: 0 / 445 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.2936, allocations: 47.39 kB / 445 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2937, allocations: 36.14 kB / 445.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.2947, allocations: 1.497 MB / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.2952, allocations: 68.09 kB / 446.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.2952, allocations: 8.812 kB / 446.6 MB, free: 32.44 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.0001732/0.2954, allocations: 185.6 kB / 446.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.2954, allocations: 31.77 kB / 446.8 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.2955, allocations: 46.42 kB / 446.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2955, allocations: 4 kB / 446.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.2955, allocations: 3.062 kB / 446.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2955, allocations: 0 / 446.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.2958, allocations: 353.1 kB / 447.2 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2959, allocations: 0 / 447.2 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.2961, allocations: 30.14 kB / 447.3 MB, free: 31.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001447/0.2962, allocations: 51.52 kB / 447.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.2962, allocations: 7.281 kB / 447.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000896/0.2971, allocations: 1.495 MB / 448.8 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2972, allocations: 3.938 kB / 448.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.2978, allocations: 0.5154 MB / 449.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.04e-05/0.2979, allocations: 112.5 kB / 449.4 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.2979, allocations: 7.781 kB / 449.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.2984, allocations: 59.42 kB / 449.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.2984, allocations: 21.11 kB / 449.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.2985, allocations: 5.812 kB / 449.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007662/0.2992, allocations: 359.3 kB / 449.9 MB, free: 30 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2992, allocations: 0 / 449.9 MB, free: 30 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.2995, allocations: 56.09 kB / 449.9 MB, free: 29.99 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 9.194e-05/0.2996, allocations: 107.5 kB / 450.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.3002, allocations: 358.5 kB / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3002, allocations: 0 / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3005, allocations: 252.5 kB / 450.6 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.3009, allocations: 54.44 kB / 450.7 MB, free: 29.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000999/0.302, allocations: 0.7168 MB / 451.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001838/0.3021, allocations: 0.7956 MB / 452.2 MB, free: 28.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.3023, allocations: 58.97 kB / 452.3 MB, free: 28.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.3024, allocations: 21.88 kB / 452.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3024, allocations: 0 / 452.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of Templates: time 0.005505/0.3079, allocations: 2.962 MB / 455.3 MB, free: 28.16 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)