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.00114/0.001139, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001182/0.001182, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.341/1.341, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2105/0.2105, allocations: 22.37 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 380.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2797, allocations: 54.93 MB / 435.2 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002265/0.282, allocations: 1.267 MB / 436.5 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.2834, allocations: 1.342 MB / 437.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2835, allocations: 2.5 kB / 437.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.2839, allocations: 70.91 kB / 437.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.2841, allocations: 97.7 kB / 438 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.2844, allocations: 154.1 kB / 438.2 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003804/0.2848, allocations: 482 kB / 438.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.2849, allocations: 60.23 kB / 438.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2851, allocations: 198.5 kB / 438.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.2854, allocations: 217.6 kB / 439.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.2854, allocations: 24.19 kB / 439.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.986e-05/0.2855, allocations: 27 kB / 439.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.2856, allocations: 118.1 kB / 439.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.2857, allocations: 127.7 kB / 439.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.2859, allocations: 297.8 kB / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.286, allocations: 0 / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.286, allocations: 0 / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.286, allocations: 0 / 439.7 MB, free: 37.04 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.002012/0.288, allocations: 0.8163 MB / 440.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.288, allocations: 8.531 kB / 440.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.2881, allocations: 34.28 kB / 440.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009875/0.2891, allocations: 457 kB / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.2891, allocations: 10.75 kB / 441 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.2892, allocations: 21.53 kB / 441 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.2895, allocations: 200.3 kB / 441.2 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2895, allocations: 3.141 kB / 441.2 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.2896, allocations: 4 kB / 441.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2896, allocations: 3 kB / 441.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003378/0.2899, allocations: 225.4 kB / 441.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.291, allocations: 0.701 MB / 442.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.2916, allocations: 306 kB / 442.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.2918, allocations: 121.6 kB / 442.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.2918, allocations: 7.031 kB / 442.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.2918, allocations: 33.53 kB / 442.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.2918, allocations: 0 / 442.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001264/0.2931, allocations: 0.5911 MB / 443.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.2931, allocations: 57.62 kB / 443.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009413/0.2941, allocations: 471.2 kB / 443.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.2941, allocations: 29.7 kB / 443.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.487e-05/0.2942, allocations: 165.9 kB / 443.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/0.2943, allocations: 85.33 kB / 444 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/0.2943, allocations: 49.7 kB / 444 MB, free: 34.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.389e-05/0.2944, allocations: 349 kB / 444.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.2946, allocations: 113.9 kB / 444.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.2947, allocations: 132.2 kB / 444.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.2967, allocations: 0.6959 MB / 445.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2967, allocations: 0 / 445.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006395/0.2974, allocations: 425.9 kB / 445.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2974, allocations: 5.156 kB / 445.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2974, allocations: 2.688 kB / 445.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002223/0.2976, allocations: 68 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.2978, allocations: 39.38 kB / 445.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.299, allocations: 1.658 MB / 447.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.2995, allocations: 75.72 kB / 447.6 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.2995, allocations: 9.594 kB / 447.6 MB, free: 32.33 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.0001931/0.2997, allocations: 193.5 kB / 447.8 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.589e-05/0.2998, allocations: 29.84 kB / 447.8 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.66e-05/0.2998, allocations: 47.16 kB / 447.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2999, allocations: 5.547 kB / 447.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2999, allocations: 2.656 kB / 447.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2999, allocations: 0 / 447.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/0.3002, allocations: 376.5 kB / 448.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3002, allocations: 0 / 448.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.3004, allocations: 51.28 kB / 448.3 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001671/0.3006, allocations: 63.03 kB / 448.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.3006, allocations: 3.25 kB / 448.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009892/0.3016, allocations: 1.654 MB / 450 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3017, allocations: 0 / 450 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007507/0.3024, allocations: 0.5897 MB / 450.6 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.636e-05/0.3025, allocations: 121.1 kB / 450.7 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.3025, allocations: 12.39 kB / 450.7 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.303, allocations: 63.34 kB / 450.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.3031, allocations: 16.53 kB / 450.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3031, allocations: 10.05 kB / 450.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008328/0.304, allocations: 371 kB / 451.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.304, allocations: 0 / 451.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000321/0.3043, allocations: 60 kB / 451.2 MB, free: 29.71 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.0001125/0.3044, allocations: 107.8 kB / 451.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006561/0.3051, allocations: 429.9 kB / 451.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3051, allocations: 0 / 451.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003055/0.3054, allocations: 268 kB / 452 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.3059, allocations: 63.95 kB / 452.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3069, allocations: 0.7931 MB / 452.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.3071, allocations: 0.8038 MB / 453.7 MB, free: 28.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.3073, allocations: 68.92 kB / 453.7 MB, free: 28.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.661e-05/0.3074, allocations: 21.25 kB / 453.7 MB, free: 28.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3074, allocations: 0 / 453.7 MB, free: 28.05 MB / 350.1 MB Notification: Performance of Templates: time 0.006837/0.3142, allocations: 3.42 MB / 457.2 MB, free: 27.81 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)