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.001352/0.001353, allocations: 107.3 kB / 16.41 MB, free: 6.465 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.001237/0.001237, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09146/0.09146, allocations: 22.33 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 67.88 kB / 438.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1507, allocations: 54.95 MB / 493.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.005268/0.1561, allocations: 2.048 MB / 495.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.1582, allocations: 0.6857 MB / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.1584, allocations: 4 kB / 496.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004123/0.1589, allocations: 43.58 kB / 496.1 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003462/0.1593, allocations: 51.59 kB / 496.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.16, allocations: 183.7 kB / 496.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006006/0.1606, allocations: 319.4 kB / 496.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.1609, allocations: 108.1 kB / 496.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.1611, allocations: 123.6 kB / 496.9 MB, free: 476 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.1614, allocations: 139.3 kB / 497.1 MB, free: 336 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.963e-05/0.1615, allocations: 28 kB / 497.1 MB, free: 308 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.181e-05/0.1616, allocations: 28 kB / 497.1 MB, free: 280 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1617, allocations: 71.81 kB / 497.2 MB, free: 208 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.1619, allocations: 127.2 kB / 497.3 MB, free: 80 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004018/0.1623, allocations: 298.9 kB / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1623, allocations: 0 / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1623, allocations: 0 / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1623, allocations: 4 kB / 497.6 MB, free: 15.78 MB / 382.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.001774/0.1641, allocations: 0.6118 MB / 498.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1642, allocations: 12.03 kB / 498.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.1643, allocations: 36.64 kB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008691/0.1652, allocations: 322.5 kB / 498.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.1652, allocations: 12.75 kB / 498.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.247e-05/0.1653, allocations: 28.31 kB / 498.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007455/0.1661, allocations: 254.4 kB / 498.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1661, allocations: 0 / 498.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.1662, allocations: 12 kB / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.1662, allocations: 4 kB / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007344/0.167, allocations: 187.9 kB / 499.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.1686, allocations: 0.7031 MB / 499.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.1694, allocations: 250.4 kB / 0.4883 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.1696, allocations: 96.81 kB / 0.4884 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1696, allocations: 7.984 kB / 0.4884 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.1696, allocations: 34.56 kB / 0.4884 GB, free: 13.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.1697, allocations: 0 / 0.4884 GB, free: 13.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002521/0.1722, allocations: 0.813 MB / 0.4892 GB, free: 12.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.1723, allocations: 110.8 kB / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.1727, allocations: 264.8 kB / 0.4896 GB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.1727, allocations: 33.7 kB / 0.4896 GB, free: 11.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1729, allocations: 164.2 kB / 0.4898 GB, free: 11.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.1729, allocations: 63.17 kB / 0.4898 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.173, allocations: 41.7 kB / 0.4899 GB, free: 11.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1731, allocations: 334.8 kB / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.1733, allocations: 92.8 kB / 0.4903 GB, free: 11.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.1736, allocations: 134.3 kB / 0.4904 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003761/0.174, allocations: 205 kB / 0.4906 GB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.174, allocations: 4.031 kB / 0.4906 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005075/0.1745, allocations: 269.2 kB / 0.4909 GB, free: 10.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1745, allocations: 11.94 kB / 0.4909 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1745, allocations: 0 / 0.4909 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1746, allocations: 3.938 kB / 0.4909 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.1749, allocations: 59.91 kB / 0.4909 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.1749, allocations: 8.062 kB / 0.4909 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.1751, allocations: 31.86 kB / 0.491 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.1752, allocations: 11.94 kB / 0.491 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001788/0.1754, allocations: 168.1 kB / 0.4911 GB, free: 10.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001403/0.1755, allocations: 111 kB / 0.4912 GB, free: 10.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002218/0.1757, allocations: 170.1 kB / 0.4914 GB, free: 9.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.052e-06/0.1757, allocations: 0 / 0.4914 GB, free: 9.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003407/0.1761, allocations: 217.2 kB / 0.4916 GB, free: 9.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1761, allocations: 10.19 kB / 0.4916 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.1761, allocations: 3.938 kB / 0.4916 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-06/0.1761, allocations: 0 / 0.4916 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1764, allocations: 47.97 kB / 0.4917 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.876e-06/0.1764, allocations: 3.938 kB / 0.4917 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.1766, allocations: 35.88 kB / 0.4917 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.1766, allocations: 8 kB / 0.4917 GB, free: 9.543 MB / 382.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.0001178/0.1768, allocations: 192.2 kB / 0.4919 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.1768, allocations: 23.66 kB / 0.4919 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009614/0.1778, allocations: 408.1 kB / 0.4923 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1778, allocations: 4 kB / 0.4923 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1778, allocations: 0 / 0.4923 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1778, allocations: 7.984 kB / 0.4923 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.1782, allocations: 329.3 kB / 0.4926 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.1783, allocations: 0 / 0.4926 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1784, allocations: 19.98 kB / 0.4927 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004909/0.1789, allocations: 144.6 kB / 0.4928 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1789, allocations: 4 kB / 0.4928 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.1821, allocations: 2.432 MB / 0.4952 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1821, allocations: 0 / 0.4952 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.1833, allocations: 0.5915 MB / 0.4957 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.664e-05/0.1834, allocations: 100.8 kB / 0.4958 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/0.1834, allocations: 11.94 kB / 0.4959 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1837, allocations: 31.95 kB / 0.4959 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.76e-05/0.1837, allocations: 7.984 kB / 0.4959 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.1838, allocations: 8 kB / 0.4959 GB, free: 5.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.1841, allocations: 200.4 kB / 0.4961 GB, free: 4.812 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1841, allocations: 0 / 0.4961 GB, free: 4.812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004749/0.1846, allocations: 91.69 kB / 0.4962 GB, free: 4.723 MB / 382.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.0001119/0.1847, allocations: 95.25 kB / 0.4963 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006648/0.1854, allocations: 310.4 kB / 0.4966 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1854, allocations: 0 / 0.4966 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.186, allocations: 274.5 kB / 0.4968 GB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.1864, allocations: 47.16 kB / 0.4969 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1875, allocations: 0.5651 MB / 0.4974 GB, free: 3.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.1879, allocations: 0.7713 MB / 0.4982 GB, free: 2.598 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.98e-05/0.1879, allocations: 19.44 kB / 0.4982 GB, free: 2.578 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1879, allocations: 0 / 0.4982 GB, free: 2.578 MB / 382.1 MB Notification: Performance of Templates: time 0.2043/0.3922, allocations: 3.529 MB / 0.5016 GB, free: 21.81 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)