Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.005591/0.005592, allocations: 172.6 kB / 16.26 MB, free: 6.676 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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2148/0.2148, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002857, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3498, allocations: 55.98 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.001736/0.3516, allocations: 1.67 MB / 440.2 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3527, allocations: 0.6917 MB / 440.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.3528, allocations: 2.625 kB / 440.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003796/0.3532, allocations: 72.78 kB / 441 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.3534, allocations: 98.31 kB / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.3538, allocations: 175.8 kB / 441.3 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.3543, allocations: 471.2 kB / 441.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.3545, allocations: 60.5 kB / 441.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.3547, allocations: 170.7 kB / 442 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.355, allocations: 198.5 kB / 442.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.07e-05/0.355, allocations: 12.28 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.233e-05/0.3551, allocations: 10.28 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.3552, allocations: 87.66 kB / 442.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.3553, allocations: 135.1 kB / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.3555, allocations: 246.8 kB / 442.6 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3555, allocations: 0 / 442.6 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3556, allocations: 0 / 442.6 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3556, allocations: 0 / 442.6 MB, free: 36.95 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.001774/0.3574, allocations: 0.7487 MB / 443.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3574, allocations: 12.66 kB / 443.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.588e-05/0.3575, allocations: 35.03 kB / 443.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008838/0.3584, allocations: 451.8 kB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.3584, allocations: 11.41 kB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.3585, allocations: 16.44 kB / 443.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.3587, allocations: 185.3 kB / 444.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3588, allocations: 0 / 444.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.3588, allocations: 10.75 kB / 444.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3588, allocations: 2.906 kB / 444.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.3591, allocations: 186.2 kB / 444.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000962/0.3601, allocations: 0.6402 MB / 444.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007685/0.3609, allocations: 346.5 kB / 445.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.361, allocations: 105.2 kB / 445.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.3611, allocations: 6.312 kB / 445.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.3611, allocations: 37.53 kB / 445.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.3611, allocations: 3.938 kB / 445.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00106/0.3622, allocations: 0.4968 MB / 445.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.3622, allocations: 55.34 kB / 445.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008963/0.3631, allocations: 465 kB / 446.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3631, allocations: 29.7 kB / 446.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.528e-05/0.3632, allocations: 165.3 kB / 446.6 MB, free: 34.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.3633, allocations: 78.48 kB / 446.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.3633, allocations: 30.08 kB / 446.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.3634, allocations: 338.5 kB / 447 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3635, allocations: 83.02 kB / 447.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.3637, allocations: 108.4 kB / 447.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3651, allocations: 0.5239 MB / 447.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3651, allocations: 3.938 kB / 447.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005356/0.3657, allocations: 342.2 kB / 448.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3657, allocations: 4.438 kB / 448.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3657, allocations: 2.938 kB / 448.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.3659, allocations: 54.66 kB / 448.1 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.3661, allocations: 33.23 kB / 448.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.3672, allocations: 1.508 MB / 449.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.3676, allocations: 78.34 kB / 449.8 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.3676, allocations: 6.75 kB / 449.8 MB, free: 32.51 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 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[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (23): * Single equations (assignments): 22 * 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.0001881/0.3678, allocations: 174.4 kB / 449.9 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.3679, allocations: 27.94 kB / 450 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.089e-05/0.368, allocations: 42.55 kB / 450 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.368, allocations: 2.844 kB / 450 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.368, allocations: 0 / 450 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.368, allocations: 0 / 450 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002958/0.3683, allocations: 359.7 kB / 450.4 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.3683, allocations: 0 / 450.4 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.3685, allocations: 32.48 kB / 450.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.3687, allocations: 47.3 kB / 450.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.3687, allocations: 6.969 kB / 450.4 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008783/0.3696, allocations: 1.5 MB / 451.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3696, allocations: 3.938 kB / 451.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006317/0.3702, allocations: 0.5184 MB / 452.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.92e-05/0.3703, allocations: 115.3 kB / 452.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.3703, allocations: 7.938 kB / 452.6 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.3708, allocations: 56.5 kB / 452.6 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/0.3708, allocations: 25.53 kB / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.3709, allocations: 2.688 kB / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008917/0.3718, allocations: 369 kB / 453 MB, free: 30.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3718, allocations: 0 / 453 MB, free: 30.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.3721, allocations: 58.38 kB / 453.1 MB, free: 30.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],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 (17): * Single equations (assignments): 16 * 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.611e-05/0.3722, allocations: 99 kB / 453.2 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005514/0.3727, allocations: 364.9 kB / 453.5 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3728, allocations: 0 / 453.5 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.3731, allocations: 241.5 kB / 453.8 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.3737, allocations: 46.67 kB / 453.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.3751, allocations: 0.7447 MB / 454.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3754, allocations: 0.7963 MB / 455.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3756, allocations: 59.75 kB / 455.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.3757, allocations: 23.66 kB / 455.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3757, allocations: 0 / 455.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of Templates: time 0.008768/0.3845, allocations: 2.9 MB / 458.3 MB, free: 28.26 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)