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.001083/0.001083, allocations: 100.4 kB / 16.35 MB, free: 5.824 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.001083/0.001083, allocations: 193.3 kB / 17.29 MB, free: 5.48 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09091/0.09091, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 64.05 kB / 382.2 MB, free: 41.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1001, allocations: 54.95 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003269/0.1034, allocations: 1.978 MB / 439.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1047, allocations: 0.7092 MB / 439.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1049, allocations: 3.938 kB / 439.9 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003709/0.1053, allocations: 87.47 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.1056, allocations: 95.52 kB / 440.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.1061, allocations: 191.6 kB / 440.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005473/0.1066, allocations: 499.1 kB / 440.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1068, allocations: 60.67 kB / 440.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.1071, allocations: 203.4 kB / 441 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/0.1074, allocations: 215.2 kB / 441.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.339e-05/0.1075, allocations: 20 kB / 441.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.561e-05/0.1075, allocations: 28 kB / 441.2 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.1077, allocations: 91.72 kB / 441.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.1078, allocations: 127.1 kB / 441.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.1081, allocations: 271 kB / 441.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1081, allocations: 0 / 441.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.039e-06/0.1081, allocations: 3.938 kB / 441.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1081, allocations: 3.938 kB / 441.7 MB, free: 7.672 MB / 318.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.00196/0.1101, allocations: 0.7789 MB / 442.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1101, allocations: 8.031 kB / 442.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.71e-05/0.1102, allocations: 40.47 kB / 442.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1113, allocations: 443.8 kB / 443 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1113, allocations: 12.38 kB / 443 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1113, allocations: 16.38 kB / 443 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.1117, allocations: 177.8 kB / 443.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.1117, allocations: 7.938 kB / 443.2 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1117, allocations: 4 kB / 443.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1117, allocations: 4 kB / 443.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.1121, allocations: 187.9 kB / 443.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.1132, allocations: 0.6523 MB / 444 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008382/0.114, allocations: 342.8 kB / 444.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1142, allocations: 104.7 kB / 444.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1143, allocations: 4 kB / 444.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.1143, allocations: 30.56 kB / 444.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.924e-06/0.1143, allocations: 0 / 444.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.1155, allocations: 0.4994 MB / 445 MB, free: 4.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.1155, allocations: 51.41 kB / 445.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009827/0.1165, allocations: 456.3 kB / 445.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.1165, allocations: 33.7 kB / 445.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1166, allocations: 164.4 kB / 445.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.1167, allocations: 74.92 kB / 445.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.783e-05/0.1168, allocations: 41.7 kB / 445.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1169, allocations: 342.8 kB / 446.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1171, allocations: 80.19 kB / 446.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.1173, allocations: 113.1 kB / 446.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.1188, allocations: 0.5205 MB / 446.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.1188, allocations: 4 kB / 446.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005646/0.1194, allocations: 349.8 kB / 447.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1194, allocations: 4 kB / 447.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1194, allocations: 0 / 447.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/0.1196, allocations: 44.83 kB / 447.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1198, allocations: 39.92 kB / 447.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.1212, allocations: 1.61 MB / 448.9 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.1217, allocations: 71.75 kB / 449 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1217, allocations: 8 kB / 449 MB, free: 12 kB / 318.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.0002358/0.1219, allocations: 166.8 kB / 449.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.122, allocations: 31.56 kB / 449.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.043e-05/0.1221, allocations: 47.08 kB / 449.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1221, allocations: 3.984 kB / 449.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1221, allocations: 0 / 449.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1221, allocations: 7.938 kB / 449.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.1225, allocations: 345.3 kB / 449.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1225, allocations: 7.938 kB / 449.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.1227, allocations: 23.98 kB / 449.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.1229, allocations: 56.81 kB / 449.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.1229, allocations: 0 / 449.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.1243, allocations: 1.614 MB / 451.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1243, allocations: 3.984 kB / 451.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007209/0.125, allocations: 0.5117 MB / 451.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.1251, allocations: 116.7 kB / 451.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.1252, allocations: 4 kB / 451.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/0.1256, allocations: 59.91 kB / 452 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.1257, allocations: 27.91 kB / 452 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.1257, allocations: 4 kB / 452 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008653/0.1266, allocations: 358.9 kB / 452.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1266, allocations: 0 / 452.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.1269, allocations: 55.94 kB / 452.4 MB, free: 12.35 MB / 334.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.0001281/0.1271, allocations: 111.2 kB / 452.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006441/0.1277, allocations: 359.8 kB / 452.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1277, allocations: 4.062 kB / 452.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.1281, allocations: 242.5 kB / 453.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.1285, allocations: 47.41 kB / 453.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.1296, allocations: 0.6284 MB / 453.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.13, allocations: 0.7948 MB / 454.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.1302, allocations: 58.5 kB / 454.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.99e-05/0.1303, allocations: 23.44 kB / 454.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.1303, allocations: 0 / 454.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Templates: time 0.006993/0.1373, allocations: 3.116 MB / 457.8 MB, free: 6.906 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)