Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1171/0.1171, allocations: 17.68 MB / 33.63 MB, free: 1.781 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.001433/0.001433, allocations: 183.4 kB / 38.91 MB, free: 20 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.718/1.718, allocations: 205.4 MB / 249.5 MB, free: 2.352 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.0007772/0.0007772, allocations: 99.42 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006003/0.0006004, allocations: 15.98 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.287, allocations: 51.97 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.3933, allocations: 79.21 MB / 498.1 MB, free: 9.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.3936, allocations: 75.95 kB / 498.2 MB, free: 8.996 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009903/0.4035, allocations: 3.248 MB / 0.4897 GB, free: 5.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.4036, allocations: 11.81 kB / 0.4897 GB, free: 5.734 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.4036, allocations: 4 kB / 0.4897 GB, free: 5.73 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.000995/0.4046, allocations: 0.4911 MB / 0.4902 GB, free: 5.184 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4047, allocations: 12.03 kB / 0.4902 GB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.11e-05/0.4048, allocations: 20.66 kB / 0.4902 GB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005498/0.4053, allocations: 284.8 kB / 0.4905 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.4054, allocations: 12.61 kB / 0.4905 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.4054, allocations: 12.38 kB / 0.4905 GB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.4057, allocations: 166.9 kB / 0.4907 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.4058, allocations: 192 / 0.4907 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.4058, allocations: 7.938 kB / 0.4907 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4058, allocations: 7.938 kB / 0.4907 GB, free: 4.621 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.4061, allocations: 132.6 kB / 0.4908 GB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009314/0.4071, allocations: 0.5241 MB / 0.4913 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.4076, allocations: 198.6 kB / 0.4915 GB, free: 3.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.4078, allocations: 72.81 kB / 0.4916 GB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.4078, allocations: 3.938 kB / 0.4916 GB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.4079, allocations: 38.56 kB / 0.4916 GB, free: 3.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.4079, allocations: 0 / 0.4916 GB, free: 3.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.001645/0.4095, allocations: 0.5971 MB / 0.4922 GB, free: 2.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.4096, allocations: 77.11 kB / 0.4923 GB, free: 2.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.41, allocations: 219.1 kB / 0.4925 GB, free: 2.648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.41, allocations: 25.7 kB / 0.4925 GB, free: 2.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.4102, allocations: 135.9 kB / 0.4927 GB, free: 2.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.4102, allocations: 47.28 kB / 0.4927 GB, free: 2.434 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.4102, allocations: 8 kB / 0.4927 GB, free: 2.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4104, allocations: 326.8 kB / 0.493 GB, free: 2.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.4105, allocations: 63.97 kB / 0.4931 GB, free: 2.035 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.4107, allocations: 94.98 kB / 0.4932 GB, free: 1.938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.411, allocations: 149.6 kB / 0.4933 GB, free: 1.785 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.411, allocations: 0 / 0.4933 GB, free: 1.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003554/0.4113, allocations: 197.4 kB / 0.4935 GB, free: 1.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.68e-05/0.4114, allocations: 98.7 kB / 0.4936 GB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4114, allocations: 3.938 kB / 0.4936 GB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.4115, allocations: 4 kB / 0.4936 GB, free: 1.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.4117, allocations: 39.97 kB / 0.4936 GB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.4117, allocations: 11.97 kB / 0.4937 GB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.4119, allocations: 31.81 kB / 0.4937 GB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.412, allocations: 4 kB / 0.4937 GB, free: 1.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/0.412, allocations: 4 kB / 0.4937 GB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002177/0.4122, allocations: 130.4 kB / 0.4938 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-06/0.4122, allocations: 0 / 0.4938 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-06/0.4122, allocations: 0 / 0.4938 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.4124, allocations: 40 kB / 0.4939 GB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.4124, allocations: 4 kB / 0.4939 GB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.4126, allocations: 19.92 kB / 0.4939 GB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.4126, allocations: 4 kB / 0.4939 GB, free: 1.191 MB / 362.7 MB 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 (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001695/0.4128, allocations: 217 kB / 0.4941 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.4128, allocations: 19.75 kB / 0.4941 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/0.4135, allocations: 308.4 kB / 0.4944 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4136, allocations: 0 / 0.4944 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4136, allocations: 4 kB / 0.4944 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4136, allocations: 3.984 kB / 0.4944 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/0.4139, allocations: 261.5 kB / 0.4947 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4139, allocations: 0 / 0.4947 GB, free: 332 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.701e-05/0.414, allocations: 15.98 kB / 0.4947 GB, free: 316 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003944/0.4144, allocations: 100.7 kB / 0.4948 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.4145, allocations: 7.938 kB / 0.4948 GB, free: 204 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2511/0.6656, allocations: 1.759 MB / 0.4965 GB, free: 81.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.6656, allocations: 0 / 0.4965 GB, free: 81.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000977/0.6666, allocations: 459.9 kB / 0.4969 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.6667, allocations: 98 kB / 0.497 GB, free: 81.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.6667, allocations: 8.969 kB / 0.497 GB, free: 81.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.6669, allocations: 27.41 kB / 0.4971 GB, free: 81.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.667, allocations: 9.797 kB / 0.4971 GB, free: 81.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.667, allocations: 2.844 kB / 0.4971 GB, free: 81.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003038/0.6673, allocations: 173.2 kB / 0.4972 GB, free: 81.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6674, allocations: 1.406 kB / 0.4972 GB, free: 81.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003901/0.6678, allocations: 63.08 kB / 0.4973 GB, free: 81.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * 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 (8): * Single equations (assignments): 7 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001633/0.6679, allocations: 115.8 kB / 0.4974 GB, free: 81.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004816/0.6684, allocations: 212.4 kB / 0.4976 GB, free: 81.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6684, allocations: 0 / 0.4976 GB, free: 81.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004024/0.6688, allocations: 213 kB / 0.4978 GB, free: 81.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.6692, allocations: 35.38 kB / 0.4978 GB, free: 81.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008415/0.6701, allocations: 459.4 kB / 0.4983 GB, free: 80.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.6703, allocations: 0.732 MB / 0.499 GB, free: 80.22 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.6705, allocations: 36.39 kB / 0.499 GB, free: 80.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.6706, allocations: 16.25 kB / 0.499 GB, free: 80.21 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.6706, allocations: 0 / 0.499 GB, free: 80.21 MB / 362.7 MB Notification: Performance of Templates: time 0.006227/0.6768, allocations: 2.204 MB / 0.5012 GB, free: 80.09 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)