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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 109.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09549/0.09549, allocations: 22.71 MB / 325.4 MB, free: 3.539 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 59.91 kB / 457.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1116, allocations: 58.02 MB / 0.5031 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003265/0.1148, allocations: 1.985 MB / 0.505 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1162, allocations: 0.7286 MB / 0.5058 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.873e-05/0.1163, allocations: 4 kB / 0.5058 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.1167, allocations: 79.47 kB / 0.5058 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1169, allocations: 103.5 kB / 0.5059 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.1174, allocations: 191.7 kB / 0.5061 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005905/0.118, allocations: 495.1 kB / 0.5066 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.1181, allocations: 48.7 kB / 0.5066 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.1184, allocations: 203.4 kB / 0.5068 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003508/0.1188, allocations: 223.2 kB / 0.507 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.1188, allocations: 24 kB / 0.5071 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.254e-05/0.1189, allocations: 24 kB / 0.5071 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.119, allocations: 103.6 kB / 0.5072 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1191, allocations: 123.2 kB / 0.5073 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.1195, allocations: 282.7 kB / 0.5076 GB, free: 3.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1195, allocations: 4 kB / 0.5076 GB, free: 3.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1195, allocations: 0 / 0.5076 GB, free: 3.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1195, allocations: 0 / 0.5076 GB, free: 3.059 MB / 382.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.002099/0.1216, allocations: 0.7825 MB / 0.5083 GB, free: 2.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1216, allocations: 12.02 kB / 0.5084 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.1217, allocations: 42.75 kB / 0.5084 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.84e-05/0.1218, allocations: 36.7 kB / 0.5084 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1229, allocations: 452.1 kB / 0.5089 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.1229, allocations: 16.23 kB / 0.5089 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.1229, allocations: 16.38 kB / 0.5089 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.1232, allocations: 177.7 kB / 0.5091 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1233, allocations: 0 / 0.5091 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1233, allocations: 11.94 kB / 0.5091 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1233, allocations: 7.984 kB / 0.5091 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.1236, allocations: 187.9 kB / 0.5093 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.1248, allocations: 0.6484 MB / 0.5099 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/0.1256, allocations: 330.8 kB / 0.5102 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1258, allocations: 96.75 kB / 0.5103 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.1258, allocations: 4 kB / 0.5103 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.1258, allocations: 38.5 kB / 0.5103 GB, free: 56 kB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.1259, allocations: 0 / 0.5103 GB, free: 56 kB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.2044/0.3302, allocations: 0.4946 MB / 0.5108 GB, free: 16.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.196e-05/0.3303, allocations: 53.25 kB / 0.5109 GB, free: 16.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009336/0.3312, allocations: 459.6 kB / 0.5113 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.3312, allocations: 29.92 kB / 0.5113 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.3313, allocations: 161.5 kB / 0.5115 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.3313, allocations: 87.62 kB / 0.5116 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.3314, allocations: 44.56 kB / 0.5116 GB, free: 15.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.531e-05/0.3315, allocations: 344 kB / 0.5119 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.3316, allocations: 85.33 kB / 0.512 GB, free: 15.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.3317, allocations: 110.8 kB / 0.5121 GB, free: 15.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.3332, allocations: 0.5156 MB / 0.5126 GB, free: 15.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3332, allocations: 0 / 0.5126 GB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004911/0.3336, allocations: 351.4 kB / 0.513 GB, free: 15.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3337, allocations: 7 kB / 0.513 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3337, allocations: 3.625 kB / 0.513 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.3338, allocations: 55.56 kB / 0.513 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.334, allocations: 31.45 kB / 0.5131 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009463/0.3349, allocations: 1.603 MB / 0.5146 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003838/0.3353, allocations: 74.06 kB / 0.5147 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.3353, allocations: 7.938 kB / 0.5147 GB, free: 13.95 MB / 382.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.0001538/0.3355, allocations: 158.2 kB / 0.5149 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.385e-05/0.3356, allocations: 37.97 kB / 0.5149 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.3356, allocations: 41.81 kB / 0.5149 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3356, allocations: 2.625 kB / 0.5149 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3356, allocations: 0 / 0.5149 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3356, allocations: 3.688 kB / 0.5149 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.3359, allocations: 355.5 kB / 0.5153 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3359, allocations: 0 / 0.5153 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.3361, allocations: 28.64 kB / 0.5153 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.3362, allocations: 57.02 kB / 0.5154 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.3363, allocations: 6.375 kB / 0.5154 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008153/0.3371, allocations: 1.613 MB / 0.5169 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3371, allocations: 0 / 0.5169 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.3377, allocations: 0.5163 MB / 0.5175 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.3378, allocations: 120.3 kB / 0.5176 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.3378, allocations: 2.75 kB / 0.5176 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.3382, allocations: 62 kB / 0.5176 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.3383, allocations: 18.61 kB / 0.5176 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3383, allocations: 11.56 kB / 0.5177 GB, free: 11.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007463/0.339, allocations: 360.6 kB / 0.518 GB, free: 11.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.339, allocations: 0 / 0.518 GB, free: 11.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000294/0.3393, allocations: 56.27 kB / 0.5181 GB, free: 11.88 MB / 382.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.0008052/0.3401, allocations: 1.055 MB / 0.5191 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005392/0.3407, allocations: 350.1 kB / 0.5194 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3407, allocations: 0 / 0.5194 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002817/0.3409, allocations: 240.7 kB / 0.5196 GB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.3413, allocations: 51.64 kB / 0.5197 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005028/0.3463, allocations: 3.403 MB / 0.523 GB, free: 8.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3466, allocations: 0.799 MB / 0.5238 GB, free: 8.207 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.3467, allocations: 58.44 kB / 0.5239 GB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.3468, allocations: 90.22 kB / 0.5239 GB, free: 8.133 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3468, allocations: 0 / 0.5239 GB, free: 8.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03191/0.3787, allocations: 6.302 MB / 0.5301 GB, free: 7.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.706/10.09, allocations: 12 kB / 0.5301 GB, free: 7.348 MB / 382.1 MB " [Timeout remaining time 650] (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 --stepSize=0.1 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.519617763813585] Failed to read output from testmodel.py, exit status != 0: 10.168139875866473 10.182326311 10.060567659 Calling exit ...