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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) 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/AES main/package.mo): time 0.07357/0.07357, allocations: 17.69 MB / 33.63 MB, free: 1.793 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009651/0.0009651, allocations: 174 kB / 38.91 MB, free: 28 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 249.5 MB, free: 2.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009458/0.000946, allocations: 98.17 kB / 302.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003952, allocations: 12 kB / 366.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2587, allocations: 51.99 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.367, allocations: 79.37 MB / 498.3 MB, free: 8.906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.3673, allocations: 75.95 kB / 498.4 MB, free: 8.832 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0135/0.3808, allocations: 4.527 MB / 0.4911 GB, free: 4.293 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3809, allocations: 0 / 0.4911 GB, free: 4.293 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.975e-05/0.3809, allocations: 11.94 kB / 0.4911 GB, free: 4.281 MB / 362.7 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.00142/0.3824, allocations: 0.5806 MB / 0.4917 GB, free: 3.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.472e-05/0.3825, allocations: 8.031 kB / 0.4917 GB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.3826, allocations: 32.56 kB / 0.4917 GB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007698/0.3834, allocations: 323 kB / 0.492 GB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.3835, allocations: 12.75 kB / 0.4921 GB, free: 3.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.3835, allocations: 24.38 kB / 0.4921 GB, free: 3.223 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.384, allocations: 262.5 kB / 0.4923 GB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.384, allocations: 0 / 0.4923 GB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.3841, allocations: 12 kB / 0.4923 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.3841, allocations: 7.984 kB / 0.4923 GB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.3846, allocations: 195.9 kB / 0.4925 GB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.3861, allocations: 0.7302 MB / 0.4932 GB, free: 1.957 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000776/0.3868, allocations: 270.4 kB / 0.4935 GB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.3871, allocations: 100.8 kB / 0.4936 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3871, allocations: 4 kB / 0.4936 GB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.3872, allocations: 42.55 kB / 0.4936 GB, free: 1.527 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 2.014e-06/0.3872, allocations: 0 / 0.4936 GB, free: 1.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.00256/0.3897, allocations: 0.8942 MB / 0.4945 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.3898, allocations: 114.7 kB / 0.4946 GB, free: 480 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/0.3902, allocations: 269 kB / 0.4949 GB, free: 200 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.3903, allocations: 29.7 kB / 0.4949 GB, free: 164 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.3904, allocations: 160.2 kB / 0.4951 GB, free: 0 / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2586/0.649, allocations: 55.02 kB / 0.4951 GB, free: 82.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/0.6491, allocations: 4 kB / 0.4951 GB, free: 82.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6493, allocations: 337.2 kB / 0.4954 GB, free: 81.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.6496, allocations: 92.72 kB / 0.4955 GB, free: 81.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.6499, allocations: 139.3 kB / 0.4957 GB, free: 81.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.6518, allocations: 0.4937 MB / 0.4961 GB, free: 81.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.6518, allocations: 7.5 kB / 0.4962 GB, free: 81.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001336/0.6531, allocations: 0.5214 MB / 0.4967 GB, free: 81.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.6533, allocations: 104.8 kB / 0.4968 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.6533, allocations: 0.9688 kB / 0.4968 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005331/0.6538, allocations: 160.5 kB / 0.4969 GB, free: 81.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.654, allocations: 26.81 kB / 0.4969 GB, free: 81.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003464/0.6574, allocations: 2.354 MB / 0.4992 GB, free: 80.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.6577, allocations: 46.09 kB / 0.4993 GB, free: 80.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.6577, allocations: 9.594 kB / 0.4993 GB, free: 80.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.266e-06/0.6578, allocations: 4.891 kB / 0.4993 GB, free: 80.27 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005289/0.6583, allocations: 257.4 kB / 0.4995 GB, free: 80.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.6583, allocations: 1.375 kB / 0.4995 GB, free: 80.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.6585, allocations: 92.69 kB / 0.4996 GB, free: 80.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.149e-05/0.6587, allocations: 19.36 kB / 0.4997 GB, free: 80.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.6603, allocations: 1.907 MB / 0.5015 GB, free: 78.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.6606, allocations: 32.75 kB / 0.5015 GB, free: 78.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.6606, allocations: 4.812 kB / 0.5015 GB, free: 78.68 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002067/0.6608, allocations: 230.8 kB / 0.5018 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.6609, allocations: 22.47 kB / 0.5018 GB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.6619, allocations: 461.2 kB / 0.5022 GB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.662, allocations: 2.031 kB / 0.5022 GB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.662, allocations: 0.6094 kB / 0.5022 GB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.662, allocations: 0.6094 kB / 0.5022 GB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003464/0.6623, allocations: 332.8 kB / 0.5026 GB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6623, allocations: 0 / 0.5026 GB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.6625, allocations: 13.17 kB / 0.5026 GB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004401/0.6629, allocations: 160.5 kB / 0.5027 GB, free: 78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.6629, allocations: 10.78 kB / 0.5027 GB, free: 77.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.6658, allocations: 2.329 MB / 0.505 GB, free: 76.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6658, allocations: 0 / 0.505 GB, free: 76.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.667, allocations: 0.6345 MB / 0.5056 GB, free: 76.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.6671, allocations: 102.5 kB / 0.5057 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.6671, allocations: 9.531 kB / 0.5057 GB, free: 75.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.6674, allocations: 37.55 kB / 0.5058 GB, free: 75.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.6675, allocations: 17.8 kB / 0.5058 GB, free: 75.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.6675, allocations: 7.531 kB / 0.5058 GB, free: 75.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003525/0.6679, allocations: 199 kB / 0.506 GB, free: 75.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6679, allocations: 0 / 0.506 GB, free: 75.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000685/0.6686, allocations: 106 kB / 0.5061 GB, free: 75.76 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001752/0.6687, allocations: 110.1 kB / 0.5062 GB, free: 75.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.67, allocations: 0.6349 MB / 0.5068 GB, free: 75.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.67, allocations: 0 / 0.5068 GB, free: 75.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004677/0.6705, allocations: 292.7 kB / 0.5071 GB, free: 75.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.6709, allocations: 42.89 kB / 0.5071 GB, free: 75.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009788/0.6719, allocations: 0.6362 MB / 0.5077 GB, free: 74.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.6721, allocations: 0.7623 MB / 0.5085 GB, free: 74.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.6722, allocations: 50.38 kB / 0.5085 GB, free: 74.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.6723, allocations: 14.75 kB / 0.5086 GB, free: 74.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.6723, allocations: 3.938 kB / 0.5086 GB, free: 74.02 MB / 362.7 MB Notification: Performance of Templates: time 0.00708/0.6794, allocations: 4.232 MB / 0.5127 GB, free: 72.43 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)