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.001067/0.001066, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008364/0.008364, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.486/1.486, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2127/0.2127, allocations: 22.34 MB / 313.8 MB, free: 13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3207, allocations: 55.98 MB / 438.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001349/0.3221, allocations: 0.9078 MB / 439.5 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.3239, allocations: 1.332 MB / 440.8 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.324, allocations: 2.938 kB / 440.8 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004045/0.3244, allocations: 70.89 kB / 440.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.3247, allocations: 97 kB / 441 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.325, allocations: 155.9 kB / 441.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.3254, allocations: 461.9 kB / 441.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.3256, allocations: 45.33 kB / 441.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.3258, allocations: 173.2 kB / 441.8 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.3261, allocations: 204 kB / 442 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.3261, allocations: 10.94 kB / 442 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.3262, allocations: 12.81 kB / 442 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.3263, allocations: 102.8 kB / 442.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3264, allocations: 138.3 kB / 442.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.3267, allocations: 284.7 kB / 442.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3267, allocations: 0 / 442.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3267, allocations: 0 / 442.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3267, allocations: 2.938 kB / 442.5 MB, free: 37.06 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.001939/0.3287, allocations: 0.7702 MB / 443.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3287, allocations: 11.28 kB / 443.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.056e-05/0.3288, allocations: 30.66 kB / 443.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.3298, allocations: 466.3 kB / 443.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3299, allocations: 11.12 kB / 443.8 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.3299, allocations: 20.97 kB / 443.8 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.3303, allocations: 207.6 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3303, allocations: 0 / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.3303, allocations: 4 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3304, allocations: 2.844 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.3307, allocations: 210.2 kB / 444.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3319, allocations: 0.7188 MB / 445 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.3325, allocations: 295.9 kB / 445.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3327, allocations: 122.7 kB / 445.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.3327, allocations: 2.875 kB / 445.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.3327, allocations: 33.98 kB / 445.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.3327, allocations: 6.969 kB / 445.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001291/0.334, allocations: 0.595 MB / 446 MB, free: 35.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.3341, allocations: 54.44 kB / 446.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3351, allocations: 479.4 kB / 446.5 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3352, allocations: 32.67 kB / 446.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3353, allocations: 165.6 kB / 446.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.955e-05/0.3354, allocations: 82 kB / 446.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.3354, allocations: 32.58 kB / 446.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.3355, allocations: 346.1 kB / 447.2 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.3357, allocations: 112.3 kB / 447.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.3359, allocations: 132.7 kB / 447.4 MB, free: 34.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.3379, allocations: 0.7096 MB / 448.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.3379, allocations: 0 / 448.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000763/0.3387, allocations: 416.6 kB / 448.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3387, allocations: 11.94 kB / 448.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3387, allocations: 0 / 448.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.3389, allocations: 68.11 kB / 448.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.3391, allocations: 45.62 kB / 448.7 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.3403, allocations: 1.558 MB / 450.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.3408, allocations: 89.66 kB / 450.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.3409, allocations: 9.281 kB / 450.3 MB, free: 32.47 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.0002509/0.3411, allocations: 179.3 kB / 450.5 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.3412, allocations: 32.69 kB / 450.5 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3413, allocations: 49.55 kB / 450.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3413, allocations: 2.906 kB / 450.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3413, allocations: 0 / 450.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.3413, allocations: 0 / 450.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.3417, allocations: 376 kB / 450.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.3418, allocations: 3.938 kB / 450.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.342, allocations: 32.52 kB / 451 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/0.3422, allocations: 67.72 kB / 451 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.3422, allocations: 6.906 kB / 451 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3433, allocations: 1.556 MB / 452.6 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3434, allocations: 0 / 452.6 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008295/0.3442, allocations: 0.5749 MB / 453.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.3443, allocations: 121.7 kB / 453.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.961e-05/0.3444, allocations: 13.19 kB / 453.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.3449, allocations: 67.48 kB / 453.4 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.271e-05/0.345, allocations: 18.62 kB / 453.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.345, allocations: 9.25 kB / 453.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009805/0.346, allocations: 376.5 kB / 453.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.346, allocations: 4 kB / 453.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004285/0.3464, allocations: 64.62 kB / 453.8 MB, free: 29.97 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.000157/0.3466, allocations: 109.4 kB / 453.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007986/0.3474, allocations: 397.4 kB / 454.3 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3474, allocations: 0 / 454.3 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004706/0.3479, allocations: 278.2 kB / 454.6 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.0004835/0.3484, allocations: 48.88 kB / 454.7 MB, free: 29.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3497, allocations: 0.8102 MB / 455.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.35, allocations: 0.8078 MB / 456.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.3501, allocations: 67.69 kB / 456.3 MB, free: 28.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3503, allocations: 33.02 kB / 456.4 MB, free: 28.32 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3503, allocations: 0 / 456.4 MB, free: 28.32 MB / 350.1 MB Notification: Performance of Templates: time 0.009301/0.3596, allocations: 3.179 MB / 459.5 MB, free: 28.1 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)