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.006055/0.006056, allocations: 100 kB / 15.73 MB, free: 6.035 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.001339/0.001339, allocations: 196.4 kB / 16.67 MB, free: 5.965 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2844/0.2844, allocations: 22.35 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 61.19 kB / 437.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 54.97 MB / 492.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003025/0.117, allocations: 2.068 MB / 494.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.1182, allocations: 0.6858 MB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1183, allocations: 7.938 kB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003072/0.1186, allocations: 43.64 kB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.1188, allocations: 39.61 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.1192, allocations: 191.7 kB / 495.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003448/0.1195, allocations: 323.3 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1198, allocations: 106.8 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1199, allocations: 123.5 kB / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.1201, allocations: 135.4 kB / 496.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.608e-05/0.1202, allocations: 24 kB / 496.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.872e-05/0.1202, allocations: 28 kB / 496.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1203, allocations: 79.75 kB / 496.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.1205, allocations: 127.2 kB / 496.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002899/0.1208, allocations: 287 kB / 497 MB, free: 12.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1208, allocations: 3.938 kB / 497 MB, free: 12.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1208, allocations: 0 / 497 MB, free: 12.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1208, allocations: 4 kB / 497 MB, free: 12.26 MB / 366.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.001186/0.122, allocations: 0.6157 MB / 497.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.122, allocations: 8.031 kB / 497.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.252e-05/0.1221, allocations: 28.66 kB / 497.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.1227, allocations: 322.6 kB / 497.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.1227, allocations: 12.75 kB / 497.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.1227, allocations: 24.28 kB / 498 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.1232, allocations: 254.4 kB / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1232, allocations: 0 / 498.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.1233, allocations: 11.94 kB / 498.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1233, allocations: 4 kB / 498.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004149/0.1237, allocations: 195.8 kB / 498.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.1249, allocations: 0.703 MB / 499.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007496/0.1256, allocations: 246.5 kB / 499.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.1259, allocations: 100.8 kB / 499.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.1259, allocations: 7.938 kB / 499.5 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.1259, allocations: 34.56 kB / 499.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.1259, allocations: 0 / 499.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.00271/0.1286, allocations: 0.8229 MB / 0.4886 GB, free: 8.691 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.1287, allocations: 106.8 kB / 0.4887 GB, free: 8.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.1291, allocations: 260.9 kB / 0.489 GB, free: 8.301 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1292, allocations: 29.7 kB / 0.489 GB, free: 8.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1293, allocations: 164.2 kB / 0.4891 GB, free: 8.098 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.1294, allocations: 71.16 kB / 0.4892 GB, free: 8.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.512e-05/0.1294, allocations: 41.7 kB / 0.4892 GB, free: 7.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1296, allocations: 330.8 kB / 0.4896 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1298, allocations: 92.81 kB / 0.4896 GB, free: 7.555 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.13, allocations: 140.2 kB / 0.4898 GB, free: 7.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/0.1304, allocations: 199.6 kB / 0.49 GB, free: 7.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1304, allocations: 4.031 kB / 0.49 GB, free: 7.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000485/0.1309, allocations: 262.5 kB / 0.4902 GB, free: 6.934 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.131, allocations: 8 kB / 0.4902 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.131, allocations: 0 / 0.4902 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.131, allocations: 3.938 kB / 0.4902 GB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.1313, allocations: 63.89 kB / 0.4903 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1313, allocations: 8.062 kB / 0.4903 GB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.1316, allocations: 35.81 kB / 0.4903 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.1316, allocations: 8 kB / 0.4903 GB, free: 6.809 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001923/0.1318, allocations: 172.1 kB / 0.4905 GB, free: 6.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001403/0.1319, allocations: 108.1 kB / 0.4906 GB, free: 6.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002241/0.1322, allocations: 168.8 kB / 0.4908 GB, free: 6.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.62e-07/0.1322, allocations: 0 / 0.4908 GB, free: 6.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003262/0.1325, allocations: 220.4 kB / 0.491 GB, free: 6.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.1325, allocations: 8 kB / 0.491 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1325, allocations: 7.922 kB / 0.491 GB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-06/0.1326, allocations: 0 / 0.491 GB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.1328, allocations: 51.91 kB / 0.4911 GB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-06/0.1328, allocations: 0 / 0.4911 GB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.133, allocations: 35.89 kB / 0.4911 GB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1331, allocations: 11.92 kB / 0.4911 GB, free: 6.012 MB / 366.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.000109/0.1332, allocations: 200.1 kB / 0.4913 GB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.1332, allocations: 23.66 kB / 0.4913 GB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.1343, allocations: 410.2 kB / 0.4917 GB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1343, allocations: 0 / 0.4917 GB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1343, allocations: 0 / 0.4917 GB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1343, allocations: 4 kB / 0.4917 GB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.1347, allocations: 325.4 kB / 0.492 GB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1347, allocations: 0 / 0.492 GB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.1348, allocations: 19.94 kB / 0.492 GB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000502/0.1353, allocations: 140.7 kB / 0.4922 GB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.1354, allocations: 8 kB / 0.4922 GB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.1387, allocations: 2.428 MB / 0.4945 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1388, allocations: 0 / 0.4945 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.14, allocations: 0.5817 MB / 0.4951 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.1401, allocations: 96.86 kB / 0.4952 GB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.1402, allocations: 15.94 kB / 0.4952 GB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.1404, allocations: 27.97 kB / 0.4953 GB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.1405, allocations: 15.97 kB / 0.4953 GB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.1405, allocations: 8 kB / 0.4953 GB, free: 1.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003158/0.1409, allocations: 196.4 kB / 0.4955 GB, free: 1.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1409, allocations: 4.125 kB / 0.4955 GB, free: 1.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004396/0.1413, allocations: 91.69 kB / 0.4956 GB, free: 1.203 MB / 366.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.0001182/0.1414, allocations: 99.19 kB / 0.4956 GB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006077/0.142, allocations: 305.7 kB / 0.4959 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1421, allocations: 0 / 0.4959 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005437/0.1426, allocations: 274.5 kB / 0.4962 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.143, allocations: 47.23 kB / 0.4962 GB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.1441, allocations: 0.5486 MB / 0.4968 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.1445, allocations: 0.7597 MB / 0.4975 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.1446, allocations: 37.52 kB / 0.4976 GB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.887e-05/0.1447, allocations: 23.44 kB / 0.4976 GB, free: 15.05 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1447, allocations: 4 kB / 0.4976 GB, free: 15.05 MB / 382.1 MB Notification: Performance of Templates: time 0.006778/0.1515, allocations: 3.645 MB / 0.5011 GB, free: 11.42 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)