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.0007809/0.0007809, allocations: 98.11 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.004644/0.004644, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.313/1.313, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2046/0.2046, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004755/0.0004755, allocations: 11.94 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3226, allocations: 55.98 MB / 438.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.001531/0.3242, allocations: 1.664 MB / 440.3 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008999/0.3251, allocations: 0.6947 MB / 441 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.583e-05/0.3252, allocations: 2.469 kB / 441 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.3255, allocations: 77.36 kB / 441.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.3257, allocations: 89.75 kB / 441.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.326, allocations: 179.1 kB / 441.4 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.3264, allocations: 472.5 kB / 441.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3265, allocations: 67.66 kB / 441.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.3266, allocations: 164.2 kB / 442.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.3269, allocations: 200 kB / 442.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.3269, allocations: 7.969 kB / 442.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.829e-05/0.3269, allocations: 10.41 kB / 442.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.327, allocations: 81.94 kB / 442.4 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.3271, allocations: 133.4 kB / 442.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.3273, allocations: 262 kB / 442.7 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3273, allocations: 0 / 442.7 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3273, allocations: 3.938 kB / 442.8 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.3273, allocations: 0 / 442.8 MB, free: 37 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.00163/0.329, allocations: 0.7303 MB / 443.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.329, allocations: 14.06 kB / 443.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.3291, allocations: 60.38 kB / 443.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.3291, allocations: 32.19 kB / 443.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008876/0.33, allocations: 450.8 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.33, allocations: 8.281 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.3301, allocations: 16.12 kB / 444.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.3304, allocations: 182.2 kB / 444.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3304, allocations: 3.984 kB / 444.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.3304, allocations: 4 kB / 444.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.3304, allocations: 7.875 kB / 444.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.3307, allocations: 188.7 kB / 444.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008224/0.3316, allocations: 0.6483 MB / 445.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007121/0.3323, allocations: 336.1 kB / 445.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.3324, allocations: 106.3 kB / 445.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.3325, allocations: 9.688 kB / 445.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/0.3325, allocations: 34.56 kB / 445.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.3325, allocations: 3.562 kB / 445.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001008/0.3335, allocations: 0.4977 MB / 446.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.957e-05/0.3336, allocations: 54.41 kB / 446.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008945/0.3345, allocations: 462.1 kB / 446.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3345, allocations: 29.7 kB / 446.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.554e-05/0.3346, allocations: 168.4 kB / 446.8 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.3346, allocations: 78.27 kB / 446.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.3347, allocations: 30 kB / 446.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.309e-05/0.3347, allocations: 338.3 kB / 447.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.3348, allocations: 85.06 kB / 447.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.335, allocations: 110 kB / 447.4 MB, free: 34.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.3364, allocations: 0.5202 MB / 447.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3364, allocations: 3.938 kB / 447.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005066/0.3369, allocations: 351.1 kB / 448.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.3369, allocations: 5.906 kB / 448.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3369, allocations: 0 / 448.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.3371, allocations: 49.41 kB / 448.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.3373, allocations: 36.42 kB / 448.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009189/0.3382, allocations: 1.498 MB / 449.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.3386, allocations: 82.27 kB / 449.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.3387, allocations: 4.094 kB / 449.9 MB, free: 32.53 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.0001598/0.3388, allocations: 173.7 kB / 450.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.3389, allocations: 29.31 kB / 450.1 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.968e-05/0.339, allocations: 45.2 kB / 450.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.339, allocations: 5.562 kB / 450.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.339, allocations: 0 / 450.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.339, allocations: 3.938 kB / 450.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.3393, allocations: 347.4 kB / 450.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3393, allocations: 0 / 450.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.3395, allocations: 26.86 kB / 450.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001329/0.3396, allocations: 58.44 kB / 450.6 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.3397, allocations: 9.891 kB / 450.6 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008528/0.3405, allocations: 1.493 MB / 452.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3405, allocations: 7.875 kB / 452.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006211/0.3412, allocations: 0.5163 MB / 452.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/0.3412, allocations: 118 kB / 452.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.3413, allocations: 11 kB / 452.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/0.3417, allocations: 62.12 kB / 452.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.3418, allocations: 16.16 kB / 452.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.3418, allocations: 9.953 kB / 452.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008041/0.3426, allocations: 367.5 kB / 453.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3426, allocations: 0 / 453.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000298/0.3429, allocations: 56.09 kB / 453.2 MB, free: 30.09 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 0.0007784/0.3437, allocations: 1.064 MB / 454.3 MB, free: 29.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004944/0.3442, allocations: 351.8 kB / 454.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3442, allocations: 0 / 454.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.3445, allocations: 243.5 kB / 454.9 MB, free: 28.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.3449, allocations: 50.98 kB / 454.9 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.3499, allocations: 3.525 MB / 458.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.3501, allocations: 0.7965 MB / 459.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3502, allocations: 58.22 kB / 459.3 MB, free: 26.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.3504, allocations: 90.3 kB / 459.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3504, allocations: 0 / 459.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.3683, allocations: 5.72 MB / 465.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.3684, allocations: 230.4 kB / 465.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/2.181, allocations: 1.688 kB / 465.4 MB, free: 25.5 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/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)