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.009828/0.009829, allocations: 100.6 kB / 15.73 MB, free: 6.047 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.001367/0.001367, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2574/0.2574, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 61.75 kB / 437.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1003, allocations: 54.96 MB / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.002803/0.1032, allocations: 1.978 MB / 494 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.1045, allocations: 0.7131 MB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.1046, allocations: 7.938 kB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003487/0.105, allocations: 75.48 kB / 494.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003329/0.1053, allocations: 107.5 kB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.1059, allocations: 187.6 kB / 495.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005702/0.1064, allocations: 491.1 kB / 495.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1066, allocations: 60.72 kB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.1069, allocations: 203.4 kB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003173/0.1072, allocations: 215.2 kB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.1073, allocations: 20 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.576e-05/0.1073, allocations: 24 kB / 496.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1075, allocations: 95.7 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1076, allocations: 131.1 kB / 496.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.1079, allocations: 278.9 kB / 496.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1079, allocations: 0 / 496.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1079, allocations: 0 / 496.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1079, allocations: 0 / 496.6 MB, free: 12.64 MB / 366.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.002038/0.11, allocations: 0.7749 MB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.11, allocations: 8.031 kB / 497.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1101, allocations: 32.56 kB / 497.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.1113, allocations: 447.8 kB / 497.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.1113, allocations: 20.23 kB / 497.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.714e-05/0.1114, allocations: 20.27 kB / 497.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.1117, allocations: 177.8 kB / 498 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1118, allocations: 4 kB / 498 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.1118, allocations: 4 kB / 498 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1118, allocations: 8 kB / 498.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.1122, allocations: 191.8 kB / 498.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.1134, allocations: 0.6445 MB / 498.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007937/0.1142, allocations: 346.8 kB / 499.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1144, allocations: 96.75 kB / 499.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.1145, allocations: 7.984 kB / 499.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1145, allocations: 38.56 kB / 499.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1145, allocations: 0 / 499.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001149/0.1156, allocations: 0.5012 MB / 499.9 MB, free: 9.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.1157, allocations: 51.41 kB / 499.9 MB, free: 9.094 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.1167, allocations: 456.3 kB / 0.4886 GB, free: 8.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.1168, allocations: 29.7 kB / 0.4887 GB, free: 8.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.1169, allocations: 164.4 kB / 0.4888 GB, free: 8.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.181e-05/0.117, allocations: 78.8 kB / 0.4889 GB, free: 8.359 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.1171, allocations: 41.7 kB / 0.4889 GB, free: 8.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1172, allocations: 346.8 kB / 0.4893 GB, free: 7.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1174, allocations: 80.19 kB / 0.4893 GB, free: 7.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.1176, allocations: 110.1 kB / 0.4894 GB, free: 7.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.1191, allocations: 0.5151 MB / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1191, allocations: 0 / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005777/0.1197, allocations: 349.8 kB / 0.4903 GB, free: 6.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1197, allocations: 4 kB / 0.4903 GB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1197, allocations: 0 / 0.4903 GB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/0.1199, allocations: 64.83 kB / 0.4903 GB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1201, allocations: 31.92 kB / 0.4904 GB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.1215, allocations: 1.607 MB / 0.4919 GB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.122, allocations: 71.69 kB / 0.492 GB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.122, allocations: 4 kB / 0.492 GB, free: 4.98 MB / 366.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.0002193/0.1222, allocations: 170.8 kB / 0.4922 GB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.1223, allocations: 23.72 kB / 0.4922 GB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.994e-05/0.1224, allocations: 47.08 kB / 0.4922 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1224, allocations: 0 / 0.4922 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1224, allocations: 0 / 0.4922 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1224, allocations: 15.92 kB / 0.4923 GB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.1228, allocations: 345.3 kB / 0.4926 GB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1228, allocations: 0 / 0.4926 GB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.123, allocations: 27.98 kB / 0.4926 GB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.1231, allocations: 52.81 kB / 0.4927 GB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.1232, allocations: 7.938 kB / 0.4927 GB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.1245, allocations: 1.61 MB / 0.4942 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1245, allocations: 32 / 0.4942 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007487/0.1253, allocations: 0.5206 MB / 0.4948 GB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.5e-05/0.1254, allocations: 112.8 kB / 0.4949 GB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.1254, allocations: 8 kB / 0.4949 GB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.1258, allocations: 63.91 kB / 0.4949 GB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1259, allocations: 19.86 kB / 0.495 GB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.1259, allocations: 11.98 kB / 0.495 GB, free: 1.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008226/0.1268, allocations: 354.9 kB / 0.4953 GB, free: 1.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.836e-06/0.1268, allocations: 0 / 0.4953 GB, free: 1.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.1271, allocations: 59.84 kB / 0.4954 GB, free: 1.316 MB / 366.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.000143/0.1273, allocations: 110.4 kB / 0.4955 GB, free: 1.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006673/0.1279, allocations: 350.5 kB / 0.4958 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.128, allocations: 0 / 0.4958 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.1283, allocations: 250.4 kB / 0.496 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.1287, allocations: 51.81 kB / 0.4961 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1299, allocations: 0.6245 MB / 0.4967 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.1303, allocations: 0.8026 MB / 0.4975 GB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.1304, allocations: 58.42 kB / 0.4975 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.204e-05/0.1305, allocations: 23.44 kB / 0.4976 GB, free: 14.98 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1305, allocations: 0 / 0.4976 GB, free: 14.98 MB / 382.1 MB Notification: Performance of Templates: time 0.006502/0.137, allocations: 3.165 MB / 0.5006 GB, free: 11.82 MB / 382.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)