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.001552/0.001552, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.001719/0.001719, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0885/0.0885, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 67.89 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 54.95 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003457/0.1172, allocations: 1.98 MB / 494.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1187, allocations: 0.7014 MB / 495.3 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.119, allocations: 7.938 kB / 495.4 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004619/0.1195, allocations: 75.48 kB / 495.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003771/0.1199, allocations: 111.5 kB / 495.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005181/0.1204, allocations: 187.7 kB / 495.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006196/0.121, allocations: 495.1 kB / 496.2 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1212, allocations: 68.72 kB / 496.3 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.1216, allocations: 199.3 kB / 496.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003842/0.122, allocations: 215.2 kB / 496.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.1221, allocations: 20 kB / 496.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.1221, allocations: 24 kB / 496.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1223, allocations: 91.72 kB / 496.8 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1224, allocations: 131.1 kB / 496.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.1227, allocations: 278.9 kB / 497.2 MB, free: 212 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1227, allocations: 0 / 497.2 MB, free: 212 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1228, allocations: 0 / 497.2 MB, free: 212 kB / 366.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1228, allocations: 4 kB / 497.2 MB, free: 208 kB / 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.00209/0.1249, allocations: 0.7672 MB / 498 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1249, allocations: 8.031 kB / 498 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.057e-05/0.125, allocations: 36.55 kB / 498 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.1261, allocations: 447.8 kB / 498.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.1261, allocations: 12.23 kB / 498.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.1262, allocations: 20.28 kB / 498.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.1265, allocations: 185.8 kB / 498.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1266, allocations: 4 kB / 498.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.1266, allocations: 8 kB / 498.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1266, allocations: 4 kB / 498.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.127, allocations: 187.9 kB / 498.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.1281, allocations: 0.6445 MB / 499.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008254/0.1289, allocations: 342.8 kB / 499.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.1291, allocations: 100.8 kB / 500 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.1291, allocations: 4 kB / 500 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.1292, allocations: 42.55 kB / 500 MB, free: 13.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.033e-06/0.1292, allocations: 0 / 500 MB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001171/0.1304, allocations: 0.4989 MB / 0.4888 GB, free: 12.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.1304, allocations: 55.39 kB / 0.4888 GB, free: 12.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009953/0.1314, allocations: 452.3 kB / 0.4893 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1315, allocations: 33.7 kB / 0.4893 GB, free: 12.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1316, allocations: 160.4 kB / 0.4894 GB, free: 12.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.1317, allocations: 74.91 kB / 0.4895 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/0.1317, allocations: 41.7 kB / 0.4895 GB, free: 11.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1319, allocations: 346.8 kB / 0.4899 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.1321, allocations: 84.17 kB / 0.49 GB, free: 11.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.1322, allocations: 102.1 kB / 0.4901 GB, free: 11.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.1337, allocations: 0.5182 MB / 0.4906 GB, free: 10.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1337, allocations: 0 / 0.4906 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006065/0.1343, allocations: 349.8 kB / 0.4909 GB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1343, allocations: 4 kB / 0.4909 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1344, allocations: 3.969 kB / 0.4909 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.1346, allocations: 56.81 kB / 0.491 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.1347, allocations: 35.92 kB / 0.491 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.1362, allocations: 1.599 MB / 0.4926 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.1367, allocations: 83.62 kB / 0.4926 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.1367, allocations: 8.062 kB / 0.4926 GB, free: 8.547 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.0002381/0.137, allocations: 166.8 kB / 0.4928 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.137, allocations: 27.62 kB / 0.4928 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.1371, allocations: 51.02 kB / 0.4929 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1371, allocations: 4 kB / 0.4929 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1372, allocations: 0 / 0.4929 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1372, allocations: 3.938 kB / 0.4929 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004124/0.1376, allocations: 353.3 kB / 0.4932 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1376, allocations: 0 / 0.4932 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.1378, allocations: 27.98 kB / 0.4932 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001555/0.138, allocations: 44.83 kB / 0.4933 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.138, allocations: 11.98 kB / 0.4933 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.1393, allocations: 1.611 MB / 0.4949 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1393, allocations: 4.062 kB / 0.4949 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007932/0.1401, allocations: 0.5206 MB / 0.4954 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.1402, allocations: 100.8 kB / 0.4955 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.1403, allocations: 12.05 kB / 0.4955 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.1407, allocations: 55.92 kB / 0.4955 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.631e-05/0.1408, allocations: 19.91 kB / 0.4956 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.1408, allocations: 8 kB / 0.4956 GB, free: 5.301 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008738/0.1417, allocations: 362.8 kB / 0.4959 GB, free: 4.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1417, allocations: 0 / 0.4959 GB, free: 4.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.1421, allocations: 63.84 kB / 0.496 GB, free: 4.887 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.0001419/0.1422, allocations: 103.2 kB / 0.4961 GB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006941/0.1429, allocations: 358.4 kB / 0.4964 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.143, allocations: 0 / 0.4964 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.1433, allocations: 245.4 kB / 0.4967 GB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.1437, allocations: 51.19 kB / 0.4967 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.145, allocations: 0.6691 MB / 0.4974 GB, free: 3.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.1454, allocations: 0.7986 MB / 0.4981 GB, free: 2.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1455, allocations: 23.44 kB / 0.4982 GB, free: 2.566 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1455, allocations: 0 / 0.4982 GB, free: 2.566 MB / 382.1 MB Notification: Performance of Templates: time 0.2374/0.3829, allocations: 4.606 MB / 0.5027 GB, free: 21.98 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)