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.001116/0.001116, allocations: 116.8 kB / 16.37 MB, free: 6.012 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.001127/0.001127, allocations: 189.1 kB / 17.3 MB, free: 5.613 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09192/0.09192, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 65.8 kB / 382.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1416, allocations: 54.96 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.004433/0.146, allocations: 1.971 MB / 439.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.1479, allocations: 0.7053 MB / 439.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.148, allocations: 3.938 kB / 439.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004741/0.1486, allocations: 83.47 kB / 440 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.1489, allocations: 107.4 kB / 440.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005863/0.1495, allocations: 187.7 kB / 440.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.1502, allocations: 495.1 kB / 440.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.1504, allocations: 64.66 kB / 440.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.1508, allocations: 199.4 kB / 441 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.1512, allocations: 215.2 kB / 441.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-05/0.1513, allocations: 20 kB / 441.2 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.445e-05/0.1513, allocations: 28 kB / 441.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.1515, allocations: 95.66 kB / 441.3 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1517, allocations: 131.1 kB / 441.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.1521, allocations: 274.9 kB / 441.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1521, allocations: 0 / 441.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1521, allocations: 0 / 441.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1521, allocations: 0 / 441.7 MB, free: 7.727 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.002453/0.1546, allocations: 0.7711 MB / 442.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.1547, allocations: 11.97 kB / 442.5 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.675e-05/0.1548, allocations: 36.47 kB / 442.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.1561, allocations: 455.8 kB / 443 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1562, allocations: 12.38 kB / 443 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.1562, allocations: 12.38 kB / 443 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.1567, allocations: 189.7 kB / 443.2 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.1567, allocations: 4 kB / 443.2 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.1567, allocations: 4 kB / 443.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1568, allocations: 4 kB / 443.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/0.1573, allocations: 179.9 kB / 443.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.1587, allocations: 0.6446 MB / 444 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1598, allocations: 346.8 kB / 444.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.16, allocations: 104.7 kB / 444.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.83e-05/0.1601, allocations: 4 kB / 444.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.1601, allocations: 30.56 kB / 444.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.923e-06/0.1601, allocations: 0 / 444.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001537/0.1617, allocations: 0.4996 MB / 445 MB, free: 4.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.1617, allocations: 51.41 kB / 445.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.163, allocations: 460.3 kB / 445.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.1631, allocations: 33.7 kB / 445.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1632, allocations: 160.4 kB / 445.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.257e-05/0.1633, allocations: 78.91 kB / 445.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.1634, allocations: 41.7 kB / 445.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.1636, allocations: 338.8 kB / 446.2 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.1638, allocations: 84.17 kB / 446.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.164, allocations: 106.1 kB / 446.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.166, allocations: 0.5221 MB / 446.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.166, allocations: 0 / 446.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007767/0.1668, allocations: 353.8 kB / 447.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1669, allocations: 7.938 kB / 447.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1669, allocations: 0 / 447.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002108/0.1671, allocations: 48.81 kB / 447.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.1673, allocations: 39.92 kB / 447.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/0.1689, allocations: 1.606 MB / 448.9 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004122/0.1693, allocations: 75.75 kB / 449 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.1693, allocations: 8 kB / 449 MB, free: 64 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.0002638/0.1696, allocations: 170.8 kB / 449.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.047e-05/0.1697, allocations: 31.56 kB / 449.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.672e-05/0.1698, allocations: 43.08 kB / 449.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1698, allocations: 0 / 449.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.1698, allocations: 0 / 449.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1698, allocations: 7.938 kB / 449.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004175/0.1702, allocations: 353.3 kB / 449.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1702, allocations: 0 / 449.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.1704, allocations: 24 kB / 449.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.1706, allocations: 52.81 kB / 449.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.1706, allocations: 4.125 kB / 449.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.172, allocations: 1.618 MB / 451.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.172, allocations: 0 / 451.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007212/0.1728, allocations: 0.5142 MB / 451.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.1729, allocations: 112.7 kB / 451.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.173, allocations: 8 kB / 451.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.1734, allocations: 59.91 kB / 452 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1735, allocations: 23.91 kB / 452 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.1735, allocations: 8 kB / 452 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008344/0.1743, allocations: 362.8 kB / 452.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1743, allocations: 3.938 kB / 452.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.1747, allocations: 55.94 kB / 452.4 MB, free: 12.39 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.0001286/0.1748, allocations: 99.25 kB / 452.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006805/0.1755, allocations: 362.3 kB / 452.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1755, allocations: 8 kB / 452.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.1759, allocations: 246.5 kB / 453.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.1763, allocations: 57.72 kB / 453.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1777, allocations: 0.6205 MB / 453.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.1781, allocations: 0.7987 MB / 454.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.1783, allocations: 54.25 kB / 454.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.47e-05/0.1784, allocations: 23.44 kB / 454.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1784, allocations: 0 / 454.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of Templates: time 0.007412/0.1858, allocations: 3.113 MB / 457.8 MB, free: 6.953 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 cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)