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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001371/0.001371, allocations: 177.3 kB / 15.94 MB, free: 228 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.55/1.55, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2835/0.2835, allocations: 22.35 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.369, allocations: 55.98 MB / 437.9 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002251/0.3713, allocations: 1.634 MB / 439.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.3724, allocations: 0.6658 MB / 440.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.3726, allocations: 3.781 kB / 440.2 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004426/0.373, allocations: 73.89 kB / 440.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00023/0.3733, allocations: 88.61 kB / 440.4 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.3737, allocations: 155.9 kB / 440.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.374, allocations: 275 kB / 440.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3741, allocations: 52.44 kB / 440.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.3744, allocations: 216.7 kB / 441 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.3747, allocations: 175.8 kB / 441.2 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.3747, allocations: 7.906 kB / 441.2 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.324e-05/0.3748, allocations: 10.31 kB / 441.2 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.802e-05/0.3749, allocations: 81.47 kB / 441.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.3749, allocations: 63.77 kB / 441.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.3752, allocations: 194.2 kB / 441.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3752, allocations: 0 / 441.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3752, allocations: 0 / 441.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3752, allocations: 3.938 kB / 441.6 MB, free: 37.24 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.001863/0.3771, allocations: 0.7471 MB / 442.3 MB, free: 36.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3771, allocations: 16 kB / 442.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.842e-05/0.3772, allocations: 45 kB / 442.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.683e-05/0.3773, allocations: 34.12 kB / 442.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009923/0.3783, allocations: 438.5 kB / 442.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.3783, allocations: 10.44 kB / 442.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.3783, allocations: 16.75 kB / 442.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.3786, allocations: 176.3 kB / 443 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3787, allocations: 3.953 kB / 443 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.3787, allocations: 7.031 kB / 443 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3787, allocations: 2.844 kB / 443 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.379, allocations: 187.2 kB / 443.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.3801, allocations: 0.6436 MB / 443.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007549/0.3809, allocations: 347.1 kB / 444.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.3809, allocations: 3.875 kB / 444.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.3809, allocations: 38.69 kB / 444.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.3809, allocations: 3.938 kB / 444.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001064/0.382, allocations: 0.4971 MB / 444.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.3821, allocations: 58.25 kB / 444.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008793/0.3829, allocations: 459.6 kB / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.383, allocations: 25.7 kB / 445.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3831, allocations: 168.8 kB / 445.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.3832, allocations: 77.69 kB / 445.5 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/0.3832, allocations: 10.97 kB / 445.5 MB, free: 34.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3833, allocations: 340.9 kB / 445.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.3835, allocations: 79.77 kB / 445.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.3836, allocations: 110.8 kB / 446.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.3838, allocations: 105.9 kB / 446.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3838, allocations: 0 / 446.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005103/0.3843, allocations: 345.5 kB / 446.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3844, allocations: 5.188 kB / 446.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3844, allocations: 0 / 446.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.3846, allocations: 52.8 kB / 446.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.3848, allocations: 34.8 kB / 446.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.3859, allocations: 1.518 MB / 448.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003969/0.3863, allocations: 71.22 kB / 448.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.3864, allocations: 9.938 kB / 448.2 MB, free: 32.95 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 (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.0002465/0.3866, allocations: 173.1 kB / 448.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.603e-05/0.3867, allocations: 29.84 kB / 448.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.3868, allocations: 37.05 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3868, allocations: 3.031 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.3868, allocations: 2.812 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3868, allocations: 0 / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004209/0.3872, allocations: 359.6 kB / 448.8 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3872, allocations: 2.719 kB / 448.8 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3874, allocations: 21.88 kB / 448.8 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001502/0.3876, allocations: 52.83 kB / 448.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.3876, allocations: 10.28 kB / 448.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3889, allocations: 1.513 MB / 450.4 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3889, allocations: 0 / 450.4 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007444/0.3896, allocations: 0.5086 MB / 450.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.873e-05/0.3897, allocations: 119.3 kB / 451 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.3898, allocations: 10.06 kB / 451 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.3902, allocations: 65.83 kB / 451.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.3903, allocations: 18 kB / 451.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.3903, allocations: 7.875 kB / 451.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008319/0.3912, allocations: 364.4 kB / 451.5 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3912, allocations: 0 / 451.5 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.3915, allocations: 54.72 kB / 451.5 MB, free: 30.51 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 (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.0009116/0.3924, allocations: 1.048 MB / 452.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.3931, allocations: 356.1 kB / 452.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3931, allocations: 0 / 452.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3934, allocations: 236.1 kB / 453.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.3937, allocations: 44.98 kB / 453.2 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004675/0.3984, allocations: 2.479 MB / 455.7 MB, free: 28.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3987, allocations: 0.8062 MB / 456.5 MB, free: 27.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.3989, allocations: 58.53 kB / 456.5 MB, free: 27.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.399, allocations: 90.81 kB / 456.6 MB, free: 27.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.399, allocations: 3.938 kB / 456.6 MB, free: 27.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.4192, allocations: 5.765 MB / 462.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.4195, allocations: 208.8 kB / 462.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.291, allocations: 4 kB / 462.6 MB, free: 26.77 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1) Environment - environmentSimulation: