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.009302/0.009302, allocations: 103.8 kB / 15.73 MB, free: 6.039 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.002509/0.002509, allocations: 194.2 kB / 16.67 MB, free: 5.969 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.242/0.242, allocations: 22.35 MB / 312.9 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 60.94 kB / 437.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1452, allocations: 54.96 MB / 492 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.004938/0.1502, allocations: 1.976 MB / 494 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1523, allocations: 0.7169 MB / 494.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1524, allocations: 8 kB / 494.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000551/0.153, allocations: 75.48 kB / 494.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004033/0.1535, allocations: 107.4 kB / 494.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007225/0.1542, allocations: 179.7 kB / 495.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008248/0.155, allocations: 495 kB / 495.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.1553, allocations: 64.7 kB / 495.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.1557, allocations: 203.4 kB / 495.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005002/0.1562, allocations: 203.2 kB / 496 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.051e-05/0.1563, allocations: 24 kB / 496.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.409e-05/0.1564, allocations: 24 kB / 496.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.1565, allocations: 95.7 kB / 496.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.1567, allocations: 127.2 kB / 496.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.1571, allocations: 278.9 kB / 496.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1571, allocations: 0 / 496.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1571, allocations: 4 kB / 496.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1572, allocations: 0 / 496.6 MB, free: 12.78 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.002845/0.16, allocations: 0.7749 MB / 497.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.1601, allocations: 12.03 kB / 497.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.1602, allocations: 32.56 kB / 497.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.1615, allocations: 447.7 kB / 497.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1615, allocations: 20.23 kB / 497.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.671e-05/0.1615, allocations: 24.27 kB / 497.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.1619, allocations: 177.9 kB / 498 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1619, allocations: 0 / 498 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.1619, allocations: 7.984 kB / 498.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1619, allocations: 4 kB / 498.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.1623, allocations: 187.9 kB / 498.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.1638, allocations: 0.6484 MB / 498.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.165, allocations: 338.8 kB / 499.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.1653, allocations: 104.8 kB / 499.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.1654, allocations: 3.984 kB / 499.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001155/0.1655, allocations: 38.5 kB / 499.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.034e-06/0.1655, allocations: 0 / 499.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001629/0.1671, allocations: 0.4971 MB / 499.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.1672, allocations: 55.41 kB / 499.9 MB, free: 9.234 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.1686, allocations: 452.3 kB / 0.4886 GB, free: 8.781 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.1687, allocations: 29.7 kB / 0.4887 GB, free: 8.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.1688, allocations: 172.4 kB / 0.4888 GB, free: 8.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.264e-05/0.1689, allocations: 82.78 kB / 0.4889 GB, free: 8.492 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.1691, allocations: 41.7 kB / 0.4889 GB, free: 8.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1692, allocations: 342.8 kB / 0.4893 GB, free: 8.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.1695, allocations: 84.19 kB / 0.4893 GB, free: 8.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.1697, allocations: 110.1 kB / 0.4895 GB, free: 7.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.1719, allocations: 0.5156 MB / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1719, allocations: 0 / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009706/0.1729, allocations: 349.8 kB / 0.4903 GB, free: 7.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.173, allocations: 4 kB / 0.4903 GB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.173, allocations: 4 kB / 0.4903 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.1733, allocations: 48.81 kB / 0.4903 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.1736, allocations: 43.92 kB / 0.4904 GB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/0.1759, allocations: 1.599 MB / 0.4919 GB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006612/0.1765, allocations: 67.8 kB / 0.492 GB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.1766, allocations: 15.94 kB / 0.492 GB, free: 5.113 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.0002997/0.1769, allocations: 162.8 kB / 0.4922 GB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.61e-05/0.177, allocations: 31.7 kB / 0.4922 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.1771, allocations: 43.08 kB / 0.4923 GB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.1772, allocations: 7.938 kB / 0.4923 GB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1772, allocations: 0 / 0.4923 GB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.1772, allocations: 7.922 kB / 0.4923 GB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.1778, allocations: 345.3 kB / 0.4926 GB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1778, allocations: 192 / 0.4926 GB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.1781, allocations: 35.92 kB / 0.4926 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002265/0.1783, allocations: 56.81 kB / 0.4927 GB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.1784, allocations: 4 kB / 0.4927 GB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.1805, allocations: 1.603 MB / 0.4943 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1805, allocations: 0 / 0.4943 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.1818, allocations: 0.5122 MB / 0.4948 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.1819, allocations: 116.9 kB / 0.4949 GB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.182, allocations: 4 kB / 0.4949 GB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006592/0.1827, allocations: 60.22 kB / 0.4949 GB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.1828, allocations: 19.92 kB / 0.4949 GB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.1828, allocations: 11.98 kB / 0.495 GB, free: 1.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.1839, allocations: 358.9 kB / 0.4953 GB, free: 1.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.1839, allocations: 4 kB / 0.4953 GB, free: 1.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000583/0.1845, allocations: 59.84 kB / 0.4954 GB, free: 1.457 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.0001706/0.1847, allocations: 111.2 kB / 0.4955 GB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000955/0.1857, allocations: 349.3 kB / 0.4958 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1857, allocations: 0 / 0.4958 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.1862, allocations: 246.5 kB / 0.496 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.1868, allocations: 59.75 kB / 0.4961 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.1884, allocations: 0.6308 MB / 0.4967 GB, free: 24 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004782/0.1889, allocations: 0.7948 MB / 0.4975 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.1891, allocations: 58.25 kB / 0.4975 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.887e-05/0.1892, allocations: 19.44 kB / 0.4976 GB, free: 15.12 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1892, allocations: 0 / 0.4976 GB, free: 15.12 MB / 382.1 MB Notification: Performance of Templates: time 0.00944/0.1986, allocations: 3.168 MB / 0.5007 GB, free: 11.96 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)