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.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 132 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.001464/0.001464, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2241/0.2241, allocations: 22.34 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001455, allocations: 67.91 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3274, allocations: 54.94 MB / 435.8 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002881/0.3303, allocations: 1.973 MB / 437.7 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3314, allocations: 0.7128 MB / 438.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.3315, allocations: 2.344 kB / 438.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.3319, allocations: 86.25 kB / 438.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.3321, allocations: 100.1 kB / 438.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.3325, allocations: 186.4 kB / 438.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.3329, allocations: 495 kB / 439.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.3331, allocations: 65.92 kB / 439.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.3333, allocations: 199.7 kB / 439.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.3335, allocations: 209.6 kB / 439.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.3336, allocations: 23.97 kB / 439.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.922e-05/0.3336, allocations: 22.22 kB / 439.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3337, allocations: 95.34 kB / 439.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3338, allocations: 128.3 kB / 440 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.334, allocations: 265.6 kB / 440.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.334, allocations: 6.688 kB / 440.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.334, allocations: 0 / 440.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3341, allocations: 0 / 440.3 MB, free: 37.13 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.001708/0.3358, allocations: 0.7784 MB / 441.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.3358, allocations: 8.625 kB / 441.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.574e-05/0.3359, allocations: 32.72 kB / 441.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008923/0.3368, allocations: 444.2 kB / 441.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.3368, allocations: 13.36 kB / 441.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.3369, allocations: 15.94 kB / 441.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.3371, allocations: 179.6 kB / 441.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3371, allocations: 4 kB / 441.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.3372, allocations: 7 kB / 441.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.3372, allocations: 3.031 kB / 441.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.3375, allocations: 189 kB / 441.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008777/0.3384, allocations: 0.6487 MB / 442.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007316/0.3391, allocations: 349.3 kB / 442.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.3393, allocations: 100.1 kB / 443 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.3393, allocations: 2.562 kB / 443 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.3393, allocations: 41.81 kB / 443.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.172e-06/0.3393, allocations: 0 / 443.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001076/0.3404, allocations: 0.4977 MB / 443.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.3405, allocations: 58.44 kB / 443.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008819/0.3413, allocations: 453.7 kB / 444.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.3414, allocations: 29.7 kB / 444.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.02e-05/0.3415, allocations: 170.6 kB / 444.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.3415, allocations: 74.47 kB / 444.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.3416, allocations: 40.62 kB / 444.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3417, allocations: 345.6 kB / 444.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.3418, allocations: 84.09 kB / 444.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.3419, allocations: 105.3 kB / 444.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.3433, allocations: 0.5207 MB / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3433, allocations: 0 / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004812/0.3438, allocations: 345.3 kB / 445.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3438, allocations: 8.641 kB / 445.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3438, allocations: 0 / 445.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.344, allocations: 53.09 kB / 445.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.3442, allocations: 32.81 kB / 445.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.3452, allocations: 1.6 MB / 447.4 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.3456, allocations: 81.53 kB / 447.5 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.3456, allocations: 5.656 kB / 447.5 MB, free: 32.58 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.0001838/0.3458, allocations: 166.2 kB / 447.7 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.3459, allocations: 33.09 kB / 447.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.405e-05/0.3459, allocations: 45.06 kB / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.346, allocations: 0 / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.346, allocations: 2.938 kB / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.346, allocations: 3.938 kB / 447.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.3463, allocations: 347.8 kB / 448.1 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3463, allocations: 4 kB / 448.1 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3465, allocations: 29.03 kB / 448.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001355/0.3466, allocations: 58.98 kB / 448.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.3467, allocations: 10.95 kB / 448.2 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009207/0.3476, allocations: 1.604 MB / 449.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3476, allocations: 0 / 449.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006072/0.3482, allocations: 0.5134 MB / 450.3 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.946e-05/0.3483, allocations: 117.3 kB / 450.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.3483, allocations: 10.27 kB / 450.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.3488, allocations: 61.22 kB / 450.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.3488, allocations: 22.28 kB / 450.5 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.3488, allocations: 10.81 kB / 450.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007434/0.3496, allocations: 355.4 kB / 450.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3496, allocations: 0 / 450.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.3499, allocations: 53.38 kB / 451 MB, free: 30.03 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.784e-05/0.35, allocations: 112.8 kB / 451.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006061/0.3506, allocations: 376.5 kB / 451.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3506, allocations: 4 kB / 451.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.3509, allocations: 240.5 kB / 451.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.3514, allocations: 57.19 kB / 451.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.3526, allocations: 0.6345 MB / 452.4 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.3529, allocations: 0.7926 MB / 453.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.3531, allocations: 57.48 kB / 453.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.908e-05/0.3531, allocations: 20.78 kB / 453.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3531, allocations: 0 / 453.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of Templates: time 0.006709/0.3599, allocations: 3.141 MB / 456.4 MB, free: 28.28 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)