Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008035/0.008035, allocations: 100.9 kB / 15.73 MB, free: 6.031 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.001098/0.001098, allocations: 199 kB / 16.67 MB, free: 5.965 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.532/1.532, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.215/0.215, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002156/0.002156, allocations: 61.48 kB / 437.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1489, allocations: 54.97 MB / 492.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.00416/0.1531, allocations: 2.058 MB / 494.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1545, allocations: 0.6819 MB / 495.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1547, allocations: 4 kB / 495.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.155, allocations: 39.59 kB / 495.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1552, allocations: 59.58 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.1556, allocations: 177.7 kB / 495.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.156, allocations: 323.3 kB / 496.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.1562, allocations: 110.8 kB / 496.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.1564, allocations: 123.5 kB / 496.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.1566, allocations: 131.4 kB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.1566, allocations: 28 kB / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.695e-05/0.1567, allocations: 28 kB / 496.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1568, allocations: 75.75 kB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.1569, allocations: 131.2 kB / 496.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.1573, allocations: 291 kB / 497 MB, free: 12.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.1573, allocations: 3.938 kB / 497 MB, free: 12.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.699e-06/0.1573, allocations: 0 / 497 MB, free: 12.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1573, allocations: 3.938 kB / 497 MB, free: 12.27 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.00135/0.1587, allocations: 0.6118 MB / 497.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.584e-05/0.1588, allocations: 12.03 kB / 497.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.609e-05/0.1589, allocations: 28.66 kB / 497.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.1594, allocations: 322.6 kB / 497.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.1594, allocations: 12.75 kB / 497.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.1595, allocations: 28.28 kB / 498 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.16, allocations: 254.4 kB / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.16, allocations: 0 / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.1601, allocations: 8 kB / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1601, allocations: 4 kB / 498.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.1605, allocations: 191.8 kB / 498.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.1617, allocations: 0.7069 MB / 499.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007568/0.1625, allocations: 257 kB / 499.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.1627, allocations: 96.81 kB / 499.5 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1627, allocations: 4 kB / 499.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1628, allocations: 38.55 kB / 499.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1628, allocations: 3.938 kB / 499.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.002529/0.1653, allocations: 0.819 MB / 0.4886 GB, free: 8.695 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1654, allocations: 106.8 kB / 0.4887 GB, free: 8.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.1658, allocations: 268.9 kB / 0.489 GB, free: 8.297 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.1659, allocations: 25.7 kB / 0.489 GB, free: 8.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.166, allocations: 168.2 kB / 0.4892 GB, free: 8.094 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/0.1661, allocations: 55.11 kB / 0.4892 GB, free: 8.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.508e-05/0.1661, allocations: 41.7 kB / 0.4892 GB, free: 7.992 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1663, allocations: 338.8 kB / 0.4896 GB, free: 7.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.1665, allocations: 92.8 kB / 0.4897 GB, free: 7.559 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.1667, allocations: 132.2 kB / 0.4898 GB, free: 7.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.1671, allocations: 207.6 kB / 0.49 GB, free: 7.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1671, allocations: 0 / 0.49 GB, free: 7.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004898/0.1676, allocations: 266.5 kB / 0.4902 GB, free: 6.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1677, allocations: 11.98 kB / 0.4902 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1677, allocations: 0 / 0.4902 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1677, allocations: 8 kB / 0.4903 GB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.168, allocations: 55.91 kB / 0.4903 GB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.168, allocations: 4 kB / 0.4903 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.1682, allocations: 39.8 kB / 0.4904 GB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.1683, allocations: 4 kB / 0.4904 GB, free: 6.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001943/0.1685, allocations: 168.1 kB / 0.4905 GB, free: 6.648 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001486/0.1686, allocations: 116 kB / 0.4906 GB, free: 6.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002388/0.1689, allocations: 164.7 kB / 0.4908 GB, free: 6.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.323e-06/0.1689, allocations: 0 / 0.4908 GB, free: 6.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.000342/0.1692, allocations: 220.4 kB / 0.491 GB, free: 6.133 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/0.1693, allocations: 9.719 kB / 0.491 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1693, allocations: 3.938 kB / 0.491 GB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-06/0.1693, allocations: 4.094 kB / 0.491 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.1695, allocations: 55.91 kB / 0.4911 GB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.1695, allocations: 0 / 0.4911 GB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.1697, allocations: 27.81 kB / 0.4911 GB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.1698, allocations: 12 kB / 0.4911 GB, free: 6.023 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001647/0.1699, allocations: 192.1 kB / 0.4913 GB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.17, allocations: 27.59 kB / 0.4913 GB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.1711, allocations: 408.2 kB / 0.4917 GB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1711, allocations: 4 kB / 0.4917 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1711, allocations: 0 / 0.4917 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1711, allocations: 3.984 kB / 0.4917 GB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.1715, allocations: 329.5 kB / 0.492 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1715, allocations: 0 / 0.492 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.1717, allocations: 19.92 kB / 0.492 GB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/0.1722, allocations: 140.7 kB / 0.4922 GB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1722, allocations: 4 kB / 0.4922 GB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/0.1757, allocations: 2.444 MB / 0.4946 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1757, allocations: 0 / 0.4946 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1768, allocations: 0.5759 MB / 0.4951 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.76e-05/0.1769, allocations: 104.9 kB / 0.4952 GB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.177, allocations: 8.031 kB / 0.4952 GB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.1772, allocations: 31.95 kB / 0.4953 GB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.086e-05/0.1773, allocations: 15.97 kB / 0.4953 GB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.1773, allocations: 8 kB / 0.4953 GB, free: 1.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003355/0.1776, allocations: 200.4 kB / 0.4955 GB, free: 1.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1777, allocations: 0 / 0.4955 GB, free: 1.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004941/0.1782, allocations: 87.69 kB / 0.4956 GB, free: 1.207 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001685/0.1783, allocations: 103.2 kB / 0.4957 GB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006244/0.179, allocations: 303.7 kB / 0.496 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.179, allocations: 0 / 0.496 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.1795, allocations: 274.8 kB / 0.4962 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.1799, allocations: 47.23 kB / 0.4963 GB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.181, allocations: 0.5381 MB / 0.4968 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.1814, allocations: 0.7636 MB / 0.4975 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.1815, allocations: 41.52 kB / 0.4976 GB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.1816, allocations: 23.42 kB / 0.4976 GB, free: 15.05 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1816, allocations: 0 / 0.4976 GB, free: 15.05 MB / 382.1 MB Notification: Performance of Templates: time 0.007416/0.189, allocations: 3.76 MB / 0.5013 GB, free: 11.31 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)