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.001148/0.001148, allocations: 108.7 kB / 16.36 MB, free: 6.336 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.001155/0.001155, allocations: 193.8 kB / 17.29 MB, free: 5.883 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09179/0.09179, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.44 kB / 382.9 MB, free: 40.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09814/0.09964, allocations: 54.96 MB / 437.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003506/0.1032, allocations: 2.053 MB / 440 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.1044, allocations: 0.6935 MB / 440.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1046, allocations: 4 kB / 440.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003389/0.1049, allocations: 43.59 kB / 440.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.1051, allocations: 43.59 kB / 440.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.1055, allocations: 191 kB / 440.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.1059, allocations: 319.4 kB / 441.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1061, allocations: 104.2 kB / 441.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.1062, allocations: 119.6 kB / 441.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1064, allocations: 147.3 kB / 441.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.623e-05/0.1065, allocations: 24 kB / 441.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.353e-05/0.1065, allocations: 28 kB / 441.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1066, allocations: 75.8 kB / 441.7 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1067, allocations: 119.3 kB / 441.8 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.1071, allocations: 298.9 kB / 442.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1071, allocations: 0 / 442.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1071, allocations: 0 / 442.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.1071, allocations: 0 / 442.1 MB, free: 7.312 MB / 318.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.001192/0.1083, allocations: 0.6273 MB / 442.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1084, allocations: 8.031 kB / 442.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.715e-05/0.1084, allocations: 32.56 kB / 442.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/0.109, allocations: 310.7 kB / 443.1 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.109, allocations: 16.75 kB / 443.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.1091, allocations: 24.38 kB / 443.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004429/0.1095, allocations: 254.3 kB / 443.4 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1095, allocations: 7.938 kB / 443.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.1096, allocations: 8 kB / 443.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1096, allocations: 4 kB / 443.4 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.11, allocations: 187.9 kB / 443.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1112, allocations: 0.6992 MB / 444.3 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/0.1119, allocations: 250.4 kB / 444.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.1121, allocations: 101.1 kB / 444.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1122, allocations: 11.89 kB / 444.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.1122, allocations: 34.56 kB / 444.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.1122, allocations: 0 / 444.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.002528/0.1148, allocations: 0.8173 MB / 445.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/0.1148, allocations: 110.8 kB / 445.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.1152, allocations: 260.9 kB / 445.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.1153, allocations: 33.64 kB / 445.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1154, allocations: 164.2 kB / 446.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.544e-05/0.1154, allocations: 71.16 kB / 446.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.179e-05/0.1155, allocations: 41.7 kB / 446.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1157, allocations: 330.8 kB / 446.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.1159, allocations: 92.81 kB / 446.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.1161, allocations: 138.3 kB / 446.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.1165, allocations: 208.4 kB / 446.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1165, allocations: 4.031 kB / 446.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004837/0.117, allocations: 270.7 kB / 447.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.117, allocations: 8 kB / 447.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.117, allocations: 0 / 447.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.117, allocations: 3.938 kB / 447.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.1173, allocations: 63.89 kB / 447.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.1174, allocations: 4.062 kB / 447.3 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.1176, allocations: 39.75 kB / 447.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.1176, allocations: 8 kB / 447.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001848/0.1178, allocations: 172.1 kB / 447.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001368/0.118, allocations: 104.2 kB / 447.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002175/0.1182, allocations: 165.3 kB / 447.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.082e-06/0.1182, allocations: 0 / 447.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003146/0.1185, allocations: 221.2 kB / 448 MB, free: 1.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.749e-06/0.1185, allocations: 8 kB / 448 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.1185, allocations: 3.938 kB / 448 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-06/0.1185, allocations: 0 / 448 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.1188, allocations: 47.97 kB / 448 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.1188, allocations: 0 / 448 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.119, allocations: 31.98 kB / 448 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.119, allocations: 4 kB / 448 MB, free: 1.062 MB / 318.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.0001177/0.1192, allocations: 200.1 kB / 448.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.1192, allocations: 23.66 kB / 448.3 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009351/0.1202, allocations: 408.1 kB / 448.7 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1202, allocations: 4 kB / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1202, allocations: 0 / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1202, allocations: 0 / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003572/0.1206, allocations: 333.3 kB / 449 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1206, allocations: 0 / 449 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.1207, allocations: 16 kB / 449 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005427/0.1213, allocations: 148.5 kB / 449.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1213, allocations: 8 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/0.1245, allocations: 2.424 MB / 451.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1245, allocations: 0 / 451.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.1257, allocations: 0.5883 MB / 452.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.532e-05/0.1258, allocations: 96.77 kB / 452.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.1258, allocations: 15.97 kB / 452.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.1261, allocations: 27.97 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.1261, allocations: 19.91 kB / 452.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1261, allocations: 4 kB / 452.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003143/0.1265, allocations: 196.4 kB / 452.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1265, allocations: 0 / 452.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.1269, allocations: 91.69 kB / 452.6 MB, free: 12.25 MB / 334.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.0001321/0.1271, allocations: 103.3 kB / 452.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006197/0.1277, allocations: 305.3 kB / 453 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1277, allocations: 4.062 kB / 453 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005364/0.1283, allocations: 278.4 kB / 453.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.1287, allocations: 55.66 kB / 453.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1297, allocations: 0.5306 MB / 453.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.1301, allocations: 0.7673 MB / 454.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.1302, allocations: 37.52 kB / 454.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.1303, allocations: 27.44 kB / 454.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1303, allocations: 0 / 454.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Templates: time 0.007321/0.1376, allocations: 3.605 MB / 458.3 MB, free: 6.5 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)