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.001126/0.001126, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.001135/0.001135, allocations: 187 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.321/1.321, 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.08769/0.08769, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.91 kB / 438.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, allocations: 54.94 MB / 493.4 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003673/0.1214, allocations: 2.07 MB / 495.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1228, allocations: 0.6935 MB / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/0.1231, allocations: 4 kB / 496.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003813/0.1235, allocations: 31.67 kB / 496.2 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002897/0.1238, allocations: 51.52 kB / 496.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.1243, allocations: 183.4 kB / 496.4 MB, free: 1.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004695/0.1248, allocations: 327.4 kB / 496.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.1251, allocations: 108.1 kB / 496.8 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002376/0.1253, allocations: 123.5 kB / 496.9 MB, free: 484 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002597/0.1256, allocations: 147.3 kB / 497.1 MB, free: 336 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.25e-05/0.1257, allocations: 24 kB / 497.1 MB, free: 312 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.309e-05/0.1257, allocations: 28 kB / 497.1 MB, free: 284 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.1259, allocations: 67.83 kB / 497.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.126, allocations: 123.3 kB / 497.3 MB, free: 92 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003888/0.1264, allocations: 299.1 kB / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1264, allocations: 0 / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1264, allocations: 0 / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1264, allocations: 4 kB / 497.6 MB, free: 15.79 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.001452/0.1279, allocations: 0.6194 MB / 498.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.128, allocations: 8.031 kB / 498.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.964e-05/0.1281, allocations: 28.66 kB / 498.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.1287, allocations: 314.6 kB / 498.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1287, allocations: 20.69 kB / 498.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.1288, allocations: 24.38 kB / 498.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.1293, allocations: 254.3 kB / 498.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1293, allocations: 4 kB / 498.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1293, allocations: 8 kB / 498.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1293, allocations: 4 kB / 498.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004213/0.1298, allocations: 187.9 kB / 499.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.1311, allocations: 0.6992 MB / 499.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007609/0.1319, allocations: 250.4 kB / 0.4883 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.1321, allocations: 100.8 kB / 0.4884 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.1321, allocations: 8.062 kB / 0.4884 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.1322, allocations: 34.56 kB / 0.4884 GB, free: 13.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.1322, allocations: 0 / 0.4884 GB, free: 13.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002709/0.1349, allocations: 0.8171 MB / 0.4892 GB, free: 12.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.135, allocations: 106.8 kB / 0.4893 GB, free: 12.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.1354, allocations: 272.8 kB / 0.4896 GB, free: 11.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.1354, allocations: 33.7 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1356, allocations: 160.2 kB / 0.4898 GB, free: 11.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.1356, allocations: 63.09 kB / 0.4898 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.1357, allocations: 45.7 kB / 0.4899 GB, free: 11.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1358, allocations: 330.8 kB / 0.4902 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1361, allocations: 92.81 kB / 0.4903 GB, free: 11.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.1363, allocations: 133.8 kB / 0.4904 GB, free: 10.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.1367, allocations: 209.6 kB / 0.4906 GB, free: 10.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1367, allocations: 0 / 0.4906 GB, free: 10.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005217/0.1372, allocations: 265.2 kB / 0.4909 GB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.1373, allocations: 8 kB / 0.4909 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1373, allocations: 0 / 0.4909 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1373, allocations: 7.875 kB / 0.4909 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.1376, allocations: 63.89 kB / 0.4909 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.1377, allocations: 8.062 kB / 0.4909 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1379, allocations: 27.88 kB / 0.491 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.1379, allocations: 8 kB / 0.491 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002006/0.1381, allocations: 168.1 kB / 0.4911 GB, free: 10.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001511/0.1383, allocations: 111 kB / 0.4912 GB, free: 10.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000225/0.1385, allocations: 168 kB / 0.4914 GB, free: 9.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.292e-06/0.1385, allocations: 0 / 0.4914 GB, free: 9.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003498/0.1389, allocations: 222.9 kB / 0.4916 GB, free: 9.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1389, allocations: 11.98 kB / 0.4916 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.1389, allocations: 3.938 kB / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-06/0.1389, allocations: 0 / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.1392, allocations: 43.98 kB / 0.4917 GB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1392, allocations: 8.047 kB / 0.4917 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.1394, allocations: 31.83 kB / 0.4917 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1394, allocations: 8 kB / 0.4917 GB, free: 9.562 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.0001315/0.1396, allocations: 196.1 kB / 0.4919 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.1396, allocations: 27.64 kB / 0.4919 GB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.1407, allocations: 409.9 kB / 0.4923 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1407, allocations: 4 kB / 0.4923 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1407, allocations: 0 / 0.4923 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1407, allocations: 4 kB / 0.4923 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003698/0.1411, allocations: 329.3 kB / 0.4926 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1411, allocations: 3.984 kB / 0.4927 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.1412, allocations: 12 kB / 0.4927 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005158/0.1417, allocations: 152.5 kB / 0.4928 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.1418, allocations: 8 kB / 0.4928 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003682/0.1455, allocations: 2.42 MB / 0.4952 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1455, allocations: 0 / 0.4952 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1467, allocations: 0.5856 MB / 0.4958 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.1468, allocations: 100.7 kB / 0.4958 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.1469, allocations: 15.97 kB / 0.4959 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.1471, allocations: 23.97 kB / 0.4959 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.641e-05/0.1472, allocations: 19.97 kB / 0.4959 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.1472, allocations: 0 / 0.4959 GB, free: 5.031 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.1476, allocations: 200.4 kB / 0.4961 GB, free: 4.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1476, allocations: 0 / 0.4961 GB, free: 4.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004887/0.1481, allocations: 91.69 kB / 0.4962 GB, free: 4.746 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.000134/0.1482, allocations: 99.23 kB / 0.4963 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006542/0.1489, allocations: 312.9 kB / 0.4966 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1489, allocations: 0 / 0.4966 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005695/0.1495, allocations: 274.5 kB / 0.4968 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.1499, allocations: 44.48 kB / 0.4969 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.151, allocations: 0.5752 MB / 0.4974 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.1513, allocations: 0.7636 MB / 0.4982 GB, free: 2.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.212e-05/0.1514, allocations: 19.44 kB / 0.4982 GB, free: 2.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1514, allocations: 0 / 0.4982 GB, free: 2.59 MB / 382.1 MB Notification: Performance of Templates: time 0.2477/0.3991, allocations: 3.491 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)