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.001226/0.001226, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001571/0.001571, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2383/0.2383, allocations: 22.35 MB / 313.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003577, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4075, allocations: 55.97 MB / 437.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.00144/0.409, allocations: 0.8613 MB / 438.8 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.4106, allocations: 1.318 MB / 440.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.4107, allocations: 0 / 440.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003958/0.4111, allocations: 69.33 kB / 440.2 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.4114, allocations: 94.11 kB / 440.3 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.4117, allocations: 142.2 kB / 440.4 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000455/0.4121, allocations: 387 kB / 440.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.4123, allocations: 52.56 kB / 440.8 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.4125, allocations: 205 kB / 441 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.4128, allocations: 211.7 kB / 441.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.4129, allocations: 8.969 kB / 441.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.85e-05/0.413, allocations: 12.12 kB / 441.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.4131, allocations: 97.33 kB / 441.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.773e-05/0.4132, allocations: 61.48 kB / 441.4 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.4134, allocations: 219.5 kB / 441.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4134, allocations: 2.906 kB / 441.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4134, allocations: 3.938 kB / 441.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.4134, allocations: 0 / 441.6 MB, free: 37.27 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.001945/0.4154, allocations: 0.7728 MB / 442.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4154, allocations: 11.64 kB / 442.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.491e-05/0.4155, allocations: 36.75 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009618/0.4165, allocations: 443.6 kB / 442.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.4165, allocations: 9.781 kB / 442.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.4166, allocations: 26.84 kB / 442.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.417, allocations: 197 kB / 443.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.4171, allocations: 3.938 kB / 443.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.4171, allocations: 14.92 kB / 443.1 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.4171, allocations: 2.781 kB / 443.1 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.4175, allocations: 212.9 kB / 443.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.4188, allocations: 0.7165 MB / 444 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.4195, allocations: 295.3 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.4197, allocations: 119.6 kB / 444.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.4198, allocations: 3 kB / 444.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.4198, allocations: 41.45 kB / 444.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.4198, allocations: 0 / 444.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001409/0.4212, allocations: 0.5917 MB / 445.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.4213, allocations: 59.34 kB / 445.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009223/0.4222, allocations: 481.1 kB / 445.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.4223, allocations: 29.7 kB / 445.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4224, allocations: 164.7 kB / 445.8 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.4225, allocations: 79.3 kB / 445.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.4225, allocations: 6.938 kB / 445.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.4226, allocations: 345.4 kB / 446.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.4228, allocations: 102.3 kB / 446.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.4229, allocations: 134.1 kB / 446.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.4232, allocations: 135.7 kB / 446.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4232, allocations: 0 / 446.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006874/0.4239, allocations: 417.8 kB / 447 MB, free: 34.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.4239, allocations: 6.781 kB / 447 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4239, allocations: 2.938 kB / 447 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.4242, allocations: 63.3 kB / 447.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.4244, allocations: 48.89 kB / 447.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.4256, allocations: 1.552 MB / 448.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.426, allocations: 76.55 kB / 448.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.4261, allocations: 4.469 kB / 448.8 MB, free: 32.88 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[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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002816/0.4264, allocations: 181.1 kB / 448.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/0.4264, allocations: 32.88 kB / 449 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.4265, allocations: 47.8 kB / 449 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.4265, allocations: 6.406 kB / 449 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.4266, allocations: 2.562 kB / 449 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4266, allocations: 3.984 kB / 449 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.427, allocations: 373 kB / 449.4 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.427, allocations: 0 / 449.4 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.4273, allocations: 32.88 kB / 449.4 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.4274, allocations: 68.75 kB / 449.5 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.4275, allocations: 14.58 kB / 449.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.4285, allocations: 1.537 MB / 451 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4285, allocations: 6.906 kB / 451 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008054/0.4293, allocations: 0.5799 MB / 451.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.529e-05/0.4294, allocations: 119.5 kB / 451.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.4295, allocations: 12.38 kB / 451.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000402/0.4299, allocations: 68.08 kB / 451.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/0.43, allocations: 19.73 kB / 451.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.43, allocations: 7.75 kB / 451.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007574/0.4308, allocations: 372.9 kB / 452.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4308, allocations: 0 / 452.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.4311, allocations: 62.03 kB / 452.3 MB, free: 30.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.4313, allocations: 117.3 kB / 452.4 MB, free: 30.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006151/0.4319, allocations: 410.2 kB / 452.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4319, allocations: 0 / 452.8 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.4322, allocations: 258.5 kB / 453 MB, free: 29.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.4326, allocations: 58.03 kB / 453.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.4338, allocations: 0.7892 MB / 453.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.4341, allocations: 0.8068 MB / 454.7 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.4343, allocations: 69.59 kB / 454.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.974e-05/0.4343, allocations: 20.56 kB / 454.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4344, allocations: 0 / 454.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of Templates: time 0.006498/0.4409, allocations: 3.087 MB / 457.9 MB, free: 28.53 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)