Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001981/0.001981, allocations: 201.3 kB / 16.14 MB, free: 6.793 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.331/1.331, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1957/0.1957, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 55.91 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2881, allocations: 54.94 MB / 435 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002593/0.2907, allocations: 1.262 MB / 436.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2924, allocations: 1.347 MB / 437.7 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2926, allocations: 2.656 kB / 437.7 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003904/0.293, allocations: 67.34 kB / 437.7 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.2933, allocations: 91.91 kB / 437.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.2937, allocations: 160.6 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004933/0.2942, allocations: 456.9 kB / 438.4 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2943, allocations: 59.08 kB / 438.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.2946, allocations: 171.6 kB / 438.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.2949, allocations: 211.1 kB / 438.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.398e-05/0.295, allocations: 13.69 kB / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.232e-05/0.2951, allocations: 16.06 kB / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.2952, allocations: 103.9 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2954, allocations: 120.6 kB / 439.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.2956, allocations: 288.4 kB / 439.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.2956, allocations: 0 / 439.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2956, allocations: 4 kB / 439.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2957, allocations: 0 / 439.4 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.002144/0.2978, allocations: 0.8059 MB / 440.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2979, allocations: 8.969 kB / 440.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/0.298, allocations: 30.94 kB / 440.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.299, allocations: 468.2 kB / 440.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.299, allocations: 15.53 kB / 440.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.2991, allocations: 15.41 kB / 440.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.2994, allocations: 205.8 kB / 440.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.2994, allocations: 4 kB / 440.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.2994, allocations: 4 kB / 440.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.2995, allocations: 3.938 kB / 440.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.2998, allocations: 211.9 kB / 441.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.301, allocations: 0.7055 MB / 441.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006001/0.3016, allocations: 306.3 kB / 442.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.3018, allocations: 121.3 kB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3018, allocations: 2.719 kB / 442.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.3018, allocations: 41.38 kB / 442.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.3018, allocations: 0 / 442.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001263/0.3031, allocations: 0.5942 MB / 442.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.3031, allocations: 58.84 kB / 442.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000957/0.3041, allocations: 473 kB / 443.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3041, allocations: 25.7 kB / 443.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.3042, allocations: 164.5 kB / 443.6 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.901e-05/0.3043, allocations: 89.78 kB / 443.7 MB, free: 34.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.176e-05/0.3044, allocations: 46.59 kB / 443.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.188e-05/0.3044, allocations: 344.7 kB / 444.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.3046, allocations: 113.2 kB / 444.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.3048, allocations: 134.6 kB / 444.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.3068, allocations: 0.6966 MB / 445 MB, free: 34.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3068, allocations: 7.094 kB / 445 MB, free: 34.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006764/0.3075, allocations: 420.8 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3075, allocations: 6.594 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3075, allocations: 0 / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.3077, allocations: 62.94 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.308, allocations: 49.36 kB / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.3091, allocations: 1.551 MB / 447.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004472/0.3096, allocations: 75.81 kB / 447.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.3096, allocations: 11 kB / 447.2 MB, free: 32.42 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 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[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] 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 (27): * Single equations (assignments): 26 * 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.0002156/0.3099, allocations: 181.2 kB / 447.3 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/0.3099, allocations: 39 kB / 447.4 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-05/0.31, allocations: 46.64 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.31, allocations: 2.969 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.31, allocations: 0 / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.31, allocations: 2.625 kB / 447.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.3104, allocations: 371.6 kB / 447.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3104, allocations: 7.938 kB / 447.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002181/0.3106, allocations: 32.8 kB / 447.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.3108, allocations: 60.41 kB / 447.9 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.3108, allocations: 10.22 kB / 447.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009945/0.3118, allocations: 1.549 MB / 449.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3119, allocations: 0 / 449.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007672/0.3126, allocations: 0.5888 MB / 450 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.3127, allocations: 118.5 kB / 450.2 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3128, allocations: 10.75 kB / 450.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.3132, allocations: 64.56 kB / 450.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.3133, allocations: 14.84 kB / 450.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.3133, allocations: 12.97 kB / 450.3 MB, free: 30.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00079/0.3141, allocations: 368.6 kB / 450.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3141, allocations: 3.938 kB / 450.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003439/0.3145, allocations: 64.03 kB / 450.7 MB, free: 29.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],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 (19): * Single equations (assignments): 18 * 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.0001127/0.3146, allocations: 106.7 kB / 450.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006514/0.3152, allocations: 400.2 kB / 451.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3153, allocations: 4.062 kB / 451.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.3156, allocations: 268.9 kB / 451.5 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.316, allocations: 50.61 kB / 451.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.3172, allocations: 0.8067 MB / 452.3 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.3174, allocations: 0.8038 MB / 453.1 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.3175, allocations: 72.83 kB / 453.2 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.185e-05/0.3176, allocations: 23.8 kB / 453.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3176, allocations: 0 / 453.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of Templates: time 0.007602/0.3252, allocations: 3.234 MB / 456.4 MB, free: 28.04 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)