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.005091/0.005091, allocations: 100.7 kB / 15.87 MB, free: 6.305 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.001125/0.001125, allocations: 190.7 kB / 16.79 MB, free: 6.238 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.283/1.283, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2073/0.2073, allocations: 22.34 MB / 313 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 55.91 kB / 380.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2438, allocations: 54.94 MB / 435.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002191/0.2461, allocations: 1.257 MB / 437 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.2474, allocations: 1.342 MB / 438.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.733e-05/0.2475, allocations: 6.594 kB / 438.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.2479, allocations: 67.8 kB / 438.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.2481, allocations: 94.3 kB / 438.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.2483, allocations: 158.6 kB / 438.6 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.2486, allocations: 454.8 kB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2488, allocations: 58.02 kB / 439.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.249, allocations: 177.2 kB / 439.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.2492, allocations: 217.8 kB / 439.5 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.577e-05/0.2493, allocations: 13.75 kB / 439.5 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.835e-05/0.2493, allocations: 12.66 kB / 439.5 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2494, allocations: 101.8 kB / 439.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.587e-05/0.2495, allocations: 116.4 kB / 439.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.2497, allocations: 224.5 kB / 440 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2497, allocations: 0 / 440 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.2497, allocations: 0 / 440 MB, free: 37.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2497, allocations: 4 kB / 440 MB, free: 37.1 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.001928/0.2516, allocations: 0.8106 MB / 440.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2517, allocations: 11.28 kB / 440.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.308e-05/0.2517, allocations: 30.56 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009567/0.2527, allocations: 467.1 kB / 441.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.2527, allocations: 10.94 kB / 441.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.2528, allocations: 19.91 kB / 441.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.2531, allocations: 198.9 kB / 441.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2531, allocations: 2.625 kB / 441.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.2532, allocations: 8 kB / 441.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.2532, allocations: 9.281 kB / 441.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003387/0.2535, allocations: 208.8 kB / 441.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2545, allocations: 0.7083 MB / 442.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005643/0.2551, allocations: 300.8 kB / 442.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.2553, allocations: 127.6 kB / 442.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.2553, allocations: 2.875 kB / 442.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.2553, allocations: 30.56 kB / 442.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.272e-06/0.2553, allocations: 0 / 442.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001228/0.2566, allocations: 0.5977 MB / 443.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.2566, allocations: 54.34 kB / 443.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008931/0.2575, allocations: 474.2 kB / 444 MB, free: 35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2575, allocations: 32.39 kB / 444 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.65e-05/0.2576, allocations: 169.8 kB / 444.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.2577, allocations: 88.11 kB / 444.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/0.2578, allocations: 42.84 kB / 444.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.16e-05/0.2578, allocations: 353.4 kB / 444.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.258, allocations: 110.3 kB / 444.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.2582, allocations: 130.4 kB / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.26, allocations: 0.6965 MB / 445.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.26, allocations: 0 / 445.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006064/0.2607, allocations: 430.2 kB / 446 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2607, allocations: 5.594 kB / 446 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.2607, allocations: 0 / 446 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.2609, allocations: 69.55 kB / 446.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.2611, allocations: 41.08 kB / 446.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.2622, allocations: 1.547 MB / 447.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/0.2626, allocations: 80.36 kB / 447.8 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.2626, allocations: 10.19 kB / 447.8 MB, free: 32.48 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.000179/0.2628, allocations: 178.9 kB / 447.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.571e-05/0.2629, allocations: 37.59 kB / 448 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.864e-05/0.263, allocations: 52.05 kB / 448 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.263, allocations: 2.469 kB / 448 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.263, allocations: 2.594 kB / 448 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.263, allocations: 0 / 448 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.2633, allocations: 374.9 kB / 448.4 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2633, allocations: 9.75 kB / 448.4 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.2636, allocations: 35.03 kB / 448.4 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001639/0.2637, allocations: 61.83 kB / 448.5 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.2638, allocations: 9.844 kB / 448.5 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009121/0.2647, allocations: 1.548 MB / 450.1 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2647, allocations: 0 / 450.1 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.2654, allocations: 0.5826 MB / 450.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.2655, allocations: 122.8 kB / 450.8 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.2655, allocations: 10.56 kB / 450.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.266, allocations: 63.69 kB / 450.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.266, allocations: 15.2 kB / 450.9 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.2661, allocations: 8.672 kB / 450.9 MB, free: 30.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007585/0.2668, allocations: 372.4 kB / 451.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2668, allocations: 0 / 451.2 MB, free: 29.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.2671, allocations: 67.09 kB / 451.3 MB, free: 29.98 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 9.082e-05/0.2672, allocations: 109.4 kB / 451.4 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.2678, allocations: 400.2 kB / 451.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2678, allocations: 0 / 451.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.2681, allocations: 273.8 kB / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.2685, allocations: 51.19 kB / 452.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.2697, allocations: 0.841 MB / 452.9 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.2699, allocations: 0.809 MB / 453.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.682e-05/0.27, allocations: 24.41 kB / 453.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.27, allocations: 0 / 453.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of Templates: time 0.006619/0.2766, allocations: 4.896 MB / 458.7 MB, free: 27.95 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)